[atlantik-cvs] CVS: kdegames/atlantik/libatlantikclient atlantik_network.cpp,1.65.4.17,1.65.4.18

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

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

Index: atlantik_network.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikclient/atlantik_network.cpp,v
retrieving revision 1.65.4.17
retrieving revision 1.65.4.18
diff -u -d -r1.65.4.17 -r1.65.4.18
--- atlantik_network.cpp	23 Jun 2003 02:54:54 -0000	1.65.4.17
+++ atlantik_network.cpp	11 Jul 2003 07:31:11 -0000	1.65.4.18
@@ -181,10 +181,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");
@@ -653,6 +654,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.