summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/sms/smsaccount.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kopete/protocols/sms/smsaccount.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/protocols/sms/smsaccount.cpp')
-rw-r--r--kopete/protocols/sms/smsaccount.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kopete/protocols/sms/smsaccount.cpp b/kopete/protocols/sms/smsaccount.cpp
index 5a13dca2..8fea6a12 100644
--- a/kopete/protocols/sms/smsaccount.cpp
+++ b/kopete/protocols/sms/smsaccount.cpp
@@ -34,24 +34,24 @@
#include "smsprotocol.h"
#include "smscontact.h"
-SMSAccount::SMSAccount( SMSProtocol *parent, const QString &accountID, const char *name )
+SMSAccount::SMSAccount( SMSProtocol *parent, const TQString &accountID, const char *name )
: Kopete::Account( parent, accountID, name )
{
setMyself( new SMSContact(this, accountID, accountID, Kopete::ContactList::self()->myself()) );
loadConfig();
myself()->setOnlineStatus( SMSProtocol::protocol()->SMSOffline );
- QString sName = configGroup()->readEntry("ServiceName", QString::null);
+ TQString sName = configGroup()->readEntry("ServiceName", TQString::null);
theService = ServiceLoader::loadService(sName, this);
if( theService )
{
- QObject::connect (theService, SIGNAL(messageSent(const Kopete::Message &)),
- this, SLOT(slotSendingSuccess(const Kopete::Message &)));
- QObject::connect (theService, SIGNAL(messageNotSent(const Kopete::Message &, const QString &)),
- this, SLOT(slotSendingFailure(const Kopete::Message &, const QString &)));
- QObject::connect (theService, SIGNAL(connected()), this, SLOT(slotConnected()));
- QObject::connect (theService, SIGNAL(disconnected()), this, SLOT(slotDisconnected()));
+ TQObject::connect (theService, TQT_SIGNAL(messageSent(const Kopete::Message &)),
+ this, TQT_SLOT(slotSendingSuccess(const Kopete::Message &)));
+ TQObject::connect (theService, TQT_SIGNAL(messageNotSent(const Kopete::Message &, const TQString &)),
+ this, TQT_SLOT(slotSendingFailure(const Kopete::Message &, const TQString &)));
+ TQObject::connect (theService, TQT_SIGNAL(connected()), this, TQT_SLOT(slotConnected()));
+ TQObject::connect (theService, TQT_SIGNAL(disconnected()), this, TQT_SLOT(slotDisconnected()));
}
}
@@ -65,13 +65,13 @@ SMSAccount::~SMSAccount()
void SMSAccount::loadConfig()
{
theSubEnable = configGroup()->readBoolEntry("SubEnable", false);
- theSubCode = configGroup()->readEntry("SubCode", QString::null);
+ theSubCode = configGroup()->readEntry("SubCode", TQString::null);
theLongMsgAction = (SMSMsgAction)configGroup()->readNumEntry("MsgAction", 0);
}
-void SMSAccount::translateNumber(QString &theNumber)
+void SMSAccount::translateNumber(TQString &theNumber)
{
- if(theNumber[0] == QChar('0') && theSubEnable)
+ if(theNumber[0] == TQChar('0') && theSubEnable)
theNumber.replace(0, 1, theSubCode);
}
@@ -90,7 +90,7 @@ const bool SMSAccount::splitNowMsgTooLong(int msgLength)
return false;
}
-void SMSAccount::setAway( bool /*away*/, const QString &)
+void SMSAccount::setAway( bool /*away*/, const TQString &)
{
}
@@ -138,7 +138,7 @@ void SMSAccount::slotSendMessage(Kopete::Message &msg)
{
for (int i=0; i < msgLength / theService->maxSize() + 1; i++)
{
- QString text = msg.plainBody();
+ TQString text = msg.plainBody();
text = text.mid( theService->maxSize() * i, theService->maxSize() );
Kopete::Message m( msg.from(), msg.to(), text, Kopete::Message::Outbound);
@@ -162,14 +162,14 @@ void SMSAccount::slotSendingSuccess(const Kopete::Message &msg)
c->slotSendingSuccess(msg);
}
-void SMSAccount::slotSendingFailure(const Kopete::Message &msg, const QString &error)
+void SMSAccount::slotSendingFailure(const Kopete::Message &msg, const TQString &error)
{
SMSContact* c = dynamic_cast<SMSContact*>(msg.to().first());
if( c )
c->slotSendingFailure(msg, error);
}
-bool SMSAccount::createContact( const QString &contactId,
+bool SMSAccount::createContact( const TQString &contactId,
Kopete::MetaContact * parentContact )
{
if (new SMSContact(this, contactId, parentContact->displayName(), parentContact))
@@ -184,7 +184,7 @@ KActionMenu* SMSAccount::actionMenu()
return theActionMenu;
}
-void SMSAccount::setOnlineStatus( const Kopete::OnlineStatus & status , const QString &reason)
+void SMSAccount::setOnlineStatus( const Kopete::OnlineStatus & status , const TQString &reason)
{
if ( myself()->onlineStatus().status() == Kopete::OnlineStatus::Offline && status.status() == Kopete::OnlineStatus::Online )
connect();