[atlantik-cvs] CVS: kdegames/atlantik/libatlantikclient atlantik_network.cpp,1.92,1.93

[email protected]
Newsgroups gmane.comp.kde.devel.atlantik
Message-ID <[email protected]>
Update of /home/kde/kdegames/atlantik/libatlantikclient
In directory office:/tmp/cvs-serv1068/libatlantikclient

Modified Files:
	atlantik_network.cpp 
Log Message:
make use of trade revisions

Index: atlantik_network.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikclient/atlantik_network.cpp,v
retrieving revision 1.92
retrieving revision 1.93
diff -u -d -r1.92 -r1.93
--- atlantik_network.cpp	29 Jun 2003 03:24:19 -0000	1.92
+++ atlantik_network.cpp	11 Jul 2003 07:29:11 -0000	1.93
@@ -192,10 +192,11 @@
 {
 	QString msg(".Ta");
 	msg.append(QString::number(trade ? trade->tradeId() : -1));
+	msg.append(":");
+	msg.append(QString::number(trade ? trade->revision() : -1));
 	writeData(msg);
 }
 
-
 void AtlantikNetwork::auctionBid(Auction *auction, int amount)
 {
 	QString msg(".ab");
@@ -679,6 +680,10 @@
 						QObject::connect(trade, SIGNAL(accept(Trade *)), this, SLOT(tradeAccept(Trade *)));
 						b_newTrade = true;
 					}
+
+					a = e.attributeNode(QString("revision"));
+					if (trade && !a.isNull())
+						trade->setRevision(a.value().toInt());
 
 					QString type = e.attributeNode(QString("type")).value();
 					if (type=="new")
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.