summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/sms/smsaccount.cpp
diff options
context:
space:
mode:
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();