diff options
Diffstat (limited to 'atlantik/libatlantikclient')
-rw-r--r-- | atlantik/libatlantikclient/atlantik_network.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/atlantik/libatlantikclient/atlantik_network.cpp b/atlantik/libatlantikclient/atlantik_network.cpp index 3dad4bda..ed5505f2 100644 --- a/atlantik/libatlantikclient/atlantik_network.cpp +++ b/atlantik/libatlantikclient/atlantik_network.cpp @@ -43,13 +43,13 @@ AtlantikNetwork::AtlantikNetwork(AtlanticCore *atlanticCore) : KExtendedSocket(0 m_playerId = -1; m_serverVersion = ""; - TQObject::connect(this, TQT_SIGNAL(readyRead()), this, TQT_SLOT(slotRead())); - TQObject::connect(this, TQT_SIGNAL(lookupFinished(int)), - this, TQT_SLOT(slotLookupFinished(int))); - TQObject::connect(this, TQT_SIGNAL(connectionSuccess()), - this, TQT_SLOT(slotConnectionSuccess())); - TQObject::connect(this, TQT_SIGNAL(connectionFailed(int)), - this, TQT_SLOT(slotConnectionFailed(int))); + TQObject::connect(this, TQ_SIGNAL(readyRead()), this, TQ_SLOT(slotRead())); + TQObject::connect(this, TQ_SIGNAL(lookupFinished(int)), + this, TQ_SLOT(slotLookupFinished(int))); + TQObject::connect(this, TQ_SIGNAL(connectionSuccess()), + this, TQ_SLOT(slotConnectionSuccess())); + TQObject::connect(this, TQ_SIGNAL(connectionFailed(int)), + this, TQ_SLOT(slotConnectionFailed(int))); } AtlantikNetwork::~AtlantikNetwork(void) @@ -212,7 +212,7 @@ void AtlantikNetwork::slotRead() { processMsg(m_textStream->readLine()); // There might be more data - TQTimer::singleShot(0, this, TQT_SLOT(slotRead())); + TQTimer::singleShot(0, this, TQ_SLOT(slotRead())); } else { @@ -614,10 +614,10 @@ void AtlantikNetwork::processNode(TQDomNode n) estate = m_atlanticCore->newEstate(estateId); b_newEstate = true; - TQObject::connect(estate, TQT_SIGNAL(estateToggleMortgage(Estate *)), this, TQT_SLOT(estateToggleMortgage(Estate *))); - TQObject::connect(estate, TQT_SIGNAL(estateHouseBuy(Estate *)), this, TQT_SLOT(estateHouseBuy(Estate *))); - TQObject::connect(estate, TQT_SIGNAL(estateHouseSell(Estate *)), this, TQT_SLOT(estateHouseSell(Estate *))); - TQObject::connect(estate, TQT_SIGNAL(newTrade(Player *)), this, TQT_SLOT(newTrade(Player *))); + TQObject::connect(estate, TQ_SIGNAL(estateToggleMortgage(Estate *)), this, TQ_SLOT(estateToggleMortgage(Estate *))); + TQObject::connect(estate, TQ_SIGNAL(estateHouseBuy(Estate *)), this, TQ_SLOT(estateHouseBuy(Estate *))); + TQObject::connect(estate, TQ_SIGNAL(estateHouseSell(Estate *)), this, TQ_SLOT(estateHouseSell(Estate *))); + TQObject::connect(estate, TQ_SIGNAL(newTrade(Player *)), this, TQ_SLOT(newTrade(Player *))); // Players without estate should get one Player *player = 0; @@ -723,10 +723,10 @@ void AtlantikNetwork::processNode(TQDomNode n) // Create trade object trade = m_atlanticCore->newTrade(tradeId); - TQObject::connect(trade, TQT_SIGNAL(updateEstate(Trade *, Estate *, Player *)), this, TQT_SLOT(tradeUpdateEstate(Trade *, Estate *, Player *))); - TQObject::connect(trade, TQT_SIGNAL(updateMoney(Trade *, unsigned int, Player *, Player *)), this, TQT_SLOT(tradeUpdateMoney(Trade *, unsigned int, Player *, Player *))); - TQObject::connect(trade, TQT_SIGNAL(reject(Trade *)), this, TQT_SLOT(tradeReject(Trade *))); - TQObject::connect(trade, TQT_SIGNAL(accept(Trade *)), this, TQT_SLOT(tradeAccept(Trade *))); + TQObject::connect(trade, TQ_SIGNAL(updateEstate(Trade *, Estate *, Player *)), this, TQ_SLOT(tradeUpdateEstate(Trade *, Estate *, Player *))); + TQObject::connect(trade, TQ_SIGNAL(updateMoney(Trade *, unsigned int, Player *, Player *)), this, TQ_SLOT(tradeUpdateMoney(Trade *, unsigned int, Player *, Player *))); + TQObject::connect(trade, TQ_SIGNAL(reject(Trade *)), this, TQ_SLOT(tradeReject(Trade *))); + TQObject::connect(trade, TQ_SIGNAL(accept(Trade *)), this, TQ_SLOT(tradeAccept(Trade *))); } a = e.attributeNode(TQString("revision")); @@ -751,7 +751,7 @@ void AtlantikNetwork::processNode(TQDomNode n) if (trade && player) { trade->addPlayer(player); - TQObject::connect(m_atlanticCore, TQT_SIGNAL(removePlayer(Player *)), trade, TQT_SLOT(removePlayer(Player *))); + TQObject::connect(m_atlanticCore, TQ_SIGNAL(removePlayer(Player *)), trade, TQ_SLOT(removePlayer(Player *))); } } n_player = n_player.nextSibling(); @@ -854,7 +854,7 @@ void AtlantikNetwork::processNode(TQDomNode n) auction = m_atlanticCore->newAuction(auctionId, m_atlanticCore->findEstate(e.attributeNode(TQString("estateid")).value().toInt())); m_auctions[auctionId] = auction; - TQObject::connect(auction, TQT_SIGNAL(bid(Auction *, int)), this, TQT_SLOT(auctionBid(Auction *, int))); + TQObject::connect(auction, TQ_SIGNAL(bid(Auction *, int)), this, TQ_SLOT(auctionBid(Auction *, int))); b_newAuction = true; } |