summaryrefslogtreecommitdiff
path: root/server/src/widgetgenerator.cc
diff options
context:
space:
mode:
authordeva <deva>2008-05-23 14:55:39 +0000
committerdeva <deva>2008-05-23 14:55:39 +0000
commit158915fafe286df69a68374032187ae283eb4ded (patch)
tree2f5b593ed9413039bb2b3b0828cb59cb226a39ba /server/src/widgetgenerator.cc
parent5dac0856cb400a4f40280e7caae188781dac7b85 (diff)
Did a lot of work on the database class.
Diffstat (limited to 'server/src/widgetgenerator.cc')
-rw-r--r--server/src/widgetgenerator.cc13
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 &macro, Widget &widget, TCPSocket &socket, std::string tabs, LUAQueryMapper &mapper)
+static void send_macro_widget(Macro &macro,
+ 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 &macro, 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 &macro, LUAQueryMapper &mapper)
+void widgetgenerator(TCPSocket &socket, Macro &macro, LUAQueryMapper &mapper, Database &db)
{
- send_macro_widget(macro, macro.window, socket, " ", mapper);
+ send_macro_widget(macro, macro.window, socket, " ", mapper, db);
}