diff options
author | deva <deva> | 2009-07-30 08:36:12 +0000 |
---|---|---|
committer | deva <deva> | 2009-07-30 08:36:12 +0000 |
commit | 77272458e7a8906d871b241b5385bbd0f783d861 (patch) | |
tree | 7e32f988654c042be251c4ba31b72902402059f3 /client/netcom.cc | |
parent | 1f8c58836dfd8dc8c9a0abeeaef6789325189f1b (diff) |
Removed the term 'course' everywhere, and replaced it by 'template'. This reduced/simplified the Template class structure a bit.
Diffstat (limited to 'client/netcom.cc')
-rw-r--r-- | client/netcom.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/netcom.cc b/client/netcom.cc index 38b8b48..0da19f8 100644 --- a/client/netcom.cc +++ b/client/netcom.cc @@ -46,7 +46,7 @@ NetCom::~NetCom() socket.disconnectFromHost(); } -QDomDocument NetCom::send(QString course, QString macro) +QDomDocument NetCom::send(QString templ, QString macro) { printf("Socket state: %d\n", socket.state()); if(socket.state() != 3) printf("Socket state not connected: %s\n", socket.errorString().toStdString().c_str()); @@ -66,7 +66,7 @@ QDomDocument NetCom::send(QString course, QString macro) doc.appendChild(pracro_elem); QDomElement request_elem = doc.createElement("request"); - request_elem.setAttribute("course", course); + request_elem.setAttribute("template", templ); if(macro != "") request_elem.setAttribute("macro", macro); pracro_elem.appendChild(request_elem); @@ -96,7 +96,7 @@ void NetCom::readyRead() buffer.append(socket.readAll()); } -void NetCom::send(QVector< Widget* > widgets, QString course, QString macro, QString version) +void NetCom::send(QVector< Widget* > widgets, QString templ, QString macro, QString version) { printf("Socket state: %d\n", socket.state()); if(socket.state() != 3) printf("Socket state not connected: %s\n", socket.errorString().toStdString().c_str()); @@ -115,7 +115,7 @@ void NetCom::send(QVector< Widget* > widgets, QString course, QString macro, QSt doc.appendChild(pracro_elem); QDomElement commit_elem = doc.createElement("commit"); - commit_elem.setAttribute("course", course); + commit_elem.setAttribute("template", templ); commit_elem.setAttribute("macro", macro); commit_elem.setAttribute("version", version); pracro_elem.appendChild(commit_elem); |