[atlantik-cvs] CVS: kdegames/atlantik/client atlantik.cpp,1.146,1.147 atlantik.h,1.55,1.56
[email protected] Wed, 18 Jun 2003 02:58:42 +0200 (CEST)
Newsgroups
gmane.comp.kde.devel.atlantik
Message-ID
<[email protected] >
Update of /home/kde/kdegames/atlantik/client
In directory office:/tmp/cvs-serv21573/client
Modified Files:
atlantik.cpp atlantik.h
Log Message:
store reconnection cookie
Index: atlantik.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/client/atlantik.cpp,v
retrieving revision 1.146
retrieving revision 1.147
diff -u -d -r1.146 -r1.147
--- atlantik.cpp 17 Jun 2003 19:54:35 -0000 1.146
+++ atlantik.cpp 18 Jun 2003 00:58:39 -0000 1.147
@@ -583,6 +583,8 @@
connect(m_atlantikNetwork, SIGNAL(newTrade(Trade *)), this, SLOT(newTrade(Trade *)));
connect(m_atlantikNetwork, SIGNAL(newAuction(Auction *)), this, SLOT(newAuction(Auction *)));
+ connect(m_atlantikNetwork, SIGNAL(clientCookie(QString)), this, SLOT(clientCookie(QString)));
+
connect(this, SIGNAL(rollDice()), m_atlantikNetwork, SLOT(rollDice()));
connect(this, SIGNAL(buyEstate()), m_atlantikNetwork, SLOT(buyEstate()));
connect(this, SIGNAL(auctionEstate()), m_atlantikNetwork, SLOT(auctionEstate()));
@@ -590,6 +592,17 @@
connect(this, SIGNAL(jailCard()), m_atlantikNetwork, SLOT(jailCard()));
connect(this, SIGNAL(jailPay()), m_atlantikNetwork, SLOT(jailPay()));
connect(this, SIGNAL(jailRoll()), m_atlantikNetwork, SLOT(jailRoll()));
+}
+
+void Atlantik::clientCookie(QString cookie)
+{
+ KConfig *config = kapp->config();
+
+ config->setGroup("Reconnection");
+ config->writeEntry("Host", m_atlantikNetwork->host());
+ config->writeEntry("Port", m_atlantikNetwork->port());
+ config->writeEntry("Cookie", cookie);
+ config->sync();
}
void Atlantik::addPortfolioView(Player *player)
Index: atlantik.h
===================================================================
RCS file: /home/kde/kdegames/atlantik/client/atlantik.h,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -d -r1.55 -r1.56
--- atlantik.h 25 Feb 2003 04:20:38 -0000 1.55
+++ atlantik.h 18 Jun 2003 00:58:39 -0000 1.56
@@ -100,6 +100,7 @@
void initBoard();
void showBoard();
void freezeBoard();
+ void clientCookie(QString cookie);
public slots: