diff options
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); } |