summaryrefslogtreecommitdiffstats
path: root/libkdegames/kgame/kgameproperty.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
commit576eb4299a00bc053db35414406f46372a0f70f2 (patch)
tree4c030922d533821db464af566188e7d40cc8848c /libkdegames/kgame/kgameproperty.cpp
parent0718336b6017d1a4fc1d626544180a5a2a29ddec (diff)
downloadtdegames-576eb4299a00bc053db35414406f46372a0f70f2.tar.gz
tdegames-576eb4299a00bc053db35414406f46372a0f70f2.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkdegames/kgame/kgameproperty.cpp')
-rw-r--r--libkdegames/kgame/kgameproperty.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/libkdegames/kgame/kgameproperty.cpp b/libkdegames/kgame/kgameproperty.cpp
index 68a33bcb..3b8c3109 100644
--- a/libkdegames/kgame/kgameproperty.cpp
+++ b/libkdegames/kgame/kgameproperty.cpp
@@ -76,19 +76,19 @@ void KGamePropertyBase::init()
setPolicy(PolicyLocal);
}
-int KGamePropertyBase::registerData(int id, KGame* owner, QString name)
+int KGamePropertyBase::registerData(int id, KGame* owner, TQString name)
{ return registerData(id, owner->dataHandler(), name); }
-int KGamePropertyBase::registerData(int id, KPlayer* owner, QString name)
+int KGamePropertyBase::registerData(int id, KPlayer* owner, TQString name)
{ return registerData(id, owner->dataHandler(), name); }
-int KGamePropertyBase::registerData( KGamePropertyHandler* owner,PropertyPolicy p, QString name)
+int KGamePropertyBase::registerData( KGamePropertyHandler* owner,PropertyPolicy p, TQString name)
{ return registerData(-1, owner,p, name); }
-int KGamePropertyBase::registerData(int id, KGamePropertyHandler* owner, QString name)
+int KGamePropertyBase::registerData(int id, KGamePropertyHandler* owner, TQString name)
{ return registerData(id, owner,PolicyUndefined, name); }
-int KGamePropertyBase::registerData(int id, KGamePropertyHandler* owner,PropertyPolicy p, QString name)
+int KGamePropertyBase::registerData(int id, KGamePropertyHandler* owner,PropertyPolicy p, TQString name)
{
// we don't support changing the id
if (!owner) {
@@ -123,8 +123,8 @@ void KGamePropertyBase::unregisterData()
bool KGamePropertyBase::sendProperty()
{
- QByteArray b;
- QDataStream s(b, IO_WriteOnly);
+ TQByteArray b;
+ TQDataStream s(b, IO_WriteOnly);
KGameMessage::createPropertyHeader(s, id());
save(s);
if (mOwner) {
@@ -135,10 +135,10 @@ bool KGamePropertyBase::sendProperty()
}
}
-bool KGamePropertyBase::sendProperty(const QByteArray& data)
+bool KGamePropertyBase::sendProperty(const TQByteArray& data)
{
- QByteArray b;
- QDataStream s(b, IO_WriteOnly);
+ TQByteArray b;
+ TQDataStream s(b, IO_WriteOnly);
KGameMessage::createPropertyHeader(s, id());
s.writeRawBytes(data.data(), data.size());
if (mOwner) {
@@ -169,8 +169,8 @@ bool KGamePropertyBase::unlock(bool force)
void KGamePropertyBase::setLock(bool l)
{
- QByteArray b;
- QDataStream s(b, IO_WriteOnly);
+ TQByteArray b;
+ TQDataStream s(b, IO_WriteOnly);
KGameMessage::createPropertyCommand(s, IdCommand, id(), CmdLock);
s << (Q_INT8)l;
@@ -192,7 +192,7 @@ void KGamePropertyBase::emitSignal()
}
}
-void KGamePropertyBase::command(QDataStream& s, int cmd, bool isSender)
+void KGamePropertyBase::command(TQDataStream& s, int cmd, bool isSender)
{
switch (cmd) {
case CmdLock: