summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeva <deva>2009-05-11 11:55:58 +0000
committerdeva <deva>2009-05-11 11:55:58 +0000
commit3f638606243a76f2d2115ea0ed87aa7366b59587 (patch)
tree36bfe3abe50392175555cf9a1b80de3f8c66405a
parent17d50336f9b53e639fdf8b00c3fb25bcaeacdc8d (diff)
Included 'course' in the commits.
-rw-r--r--client/netcom.cc3
-rw-r--r--client/netcom.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/client/netcom.cc b/client/netcom.cc
index f71876a..38b8b48 100644
--- a/client/netcom.cc
+++ b/client/netcom.cc
@@ -96,7 +96,7 @@ void NetCom::readyRead()
buffer.append(socket.readAll());
}
-void NetCom::send(QVector< Widget* > widgets, QString macro, QString version)
+void NetCom::send(QVector< Widget* > widgets, QString course, 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,6 +115,7 @@ void NetCom::send(QVector< Widget* > widgets, QString macro, QString version)
doc.appendChild(pracro_elem);
QDomElement commit_elem = doc.createElement("commit");
+ commit_elem.setAttribute("course", course);
commit_elem.setAttribute("macro", macro);
commit_elem.setAttribute("version", version);
pracro_elem.appendChild(commit_elem);
diff --git a/client/netcom.h b/client/netcom.h
index 81fb147..13f3ac8 100644
--- a/client/netcom.h
+++ b/client/netcom.h
@@ -42,7 +42,7 @@ public:
~NetCom();
QDomDocument send(QString course, QString macro = "");
- void send(QVector< Widget* > widgets, QString macro, QString version);
+ void send(QVector< Widget* > widgets, QString course, QString macro, QString version);
public slots:
void readyRead();