diff options
author | deva <deva> | 2008-05-23 14:55:39 +0000 |
---|---|---|
committer | deva <deva> | 2008-05-23 14:55:39 +0000 |
commit | 158915fafe286df69a68374032187ae283eb4ded (patch) | |
tree | 2f5b593ed9413039bb2b3b0828cb59cb226a39ba /server/src/widgetgenerator.cc | |
parent | 5dac0856cb400a4f40280e7caae188781dac7b85 (diff) |
Did a lot of work on the database class.
Diffstat (limited to 'server/src/widgetgenerator.cc')
-rw-r--r-- | server/src/widgetgenerator.cc | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/server/src/widgetgenerator.cc b/server/src/widgetgenerator.cc index 1aaca97..5211188 100644 --- a/server/src/widgetgenerator.cc +++ b/server/src/widgetgenerator.cc @@ -26,7 +26,12 @@ */ #include "widgetgenerator.h" -static void send_macro_widget(Macro ¯o, Widget &widget, TCPSocket &socket, std::string tabs, LUAQueryMapper &mapper) +static void send_macro_widget(Macro ¯o, + Widget &widget, + TCPSocket &socket, + std::string tabs, + LUAQueryMapper &mapper, + Database &db) { socket.write(tabs + "<" + widget.attributes["type"]); std::map< std::string, std::string >::iterator p = widget.attributes.begin(); @@ -65,13 +70,13 @@ static void send_macro_widget(Macro ¯o, Widget &widget, TCPSocket &socket, s std::vector< Widget >::iterator w = widget.widgets.begin(); while(w != widget.widgets.end()) { - send_macro_widget(macro, *w, socket, tabs + " ", mapper); + send_macro_widget(macro, *w, socket, tabs + " ", mapper, db); w++; } socket.write(tabs + "</" + widget.attributes["type"] + ">\n"); } -void widgetgenerator(TCPSocket &socket, Macro ¯o, LUAQueryMapper &mapper) +void widgetgenerator(TCPSocket &socket, Macro ¯o, LUAQueryMapper &mapper, Database &db) { - send_macro_widget(macro, macro.window, socket, " ", mapper); + send_macro_widget(macro, macro.window, socket, " ", mapper, db); } |