summaryrefslogtreecommitdiff
path: root/client/macro.cc
diff options
context:
space:
mode:
authorsenator <senator>2007-10-02 10:04:59 +0000
committersenator <senator>2007-10-02 10:04:59 +0000
commit665db9f7d20b9deaf1e30d1efb06a7378813eeda (patch)
tree15eeab1a691e7ab2518c136737accc4de906a5a6 /client/macro.cc
parentc09b06d5e765955ea41c6b02891390ed6a714e55 (diff)
minor changes, as far as i remember
Diffstat (limited to 'client/macro.cc')
-rw-r--r--client/macro.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/client/macro.cc b/client/macro.cc
index 853b343..bc97d1c 100644
--- a/client/macro.cc
+++ b/client/macro.cc
@@ -26,7 +26,7 @@
*/
#include "macro.h"
#include "builder.h"
-#include "xmlacquire.h"
+#include "sendrecieve.h"
#include <QDomDocument>
static QDomDocument xml_request(QString name);
@@ -37,7 +37,7 @@ void macro(QString name)
QDomDocument xml_req = xml_request(name);
// Fetch the XML document
- XmlAcquire xml_acquire;
+ SendRecieve xml_acquire;
xml_acquire.makeConnection(&xml_req);
QByteArray ba = xml_acquire.getResult();
@@ -50,7 +50,7 @@ void macro(QString name)
printf("ERROR: Invalid XML recieved!\n");
}
- Builder builder(&xml_doc);
+ Builder *builder = new Builder(&xml_doc);
}
static QDomDocument xml_request(QString name)
@@ -58,7 +58,7 @@ static QDomDocument xml_request(QString name)
// Create the xml request document here
QByteArray xml_array;
xml_array.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
- xml_array.append("<pracro version=\"1.0\" cpr=\"1505050505\">\n");
+ xml_array.append("<pracro version=\"1.0\" cpr=\"1505050505\" user=\"tux\">\n");
xml_array.append(" <request macro=\"example\"/>\n");
xml_array.append("</pracro>");