diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/macro.cc | 8 | ||||
-rw-r--r-- | client/main.cc | 2 |
2 files changed, 5 insertions, 5 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>"); diff --git a/client/main.cc b/client/main.cc index 84701c8..da806bf 100644 --- a/client/main.cc +++ b/client/main.cc @@ -26,7 +26,7 @@ */ #include "macro.h" -#include "xmlacquire.h" +#include "sendrecieve.h" #include <QApplication> #include <QDomDocument> #include <QXmlSimpleReader> |