summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/kopeteonlinestatus.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/libkopete/kopeteonlinestatus.cpp')
-rw-r--r--kopete/libkopete/kopeteonlinestatus.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/kopete/libkopete/kopeteonlinestatus.cpp b/kopete/libkopete/kopeteonlinestatus.cpp
index 8872f28b..da9bb5d5 100644
--- a/kopete/libkopete/kopeteonlinestatus.cpp
+++ b/kopete/libkopete/kopeteonlinestatus.cpp
@@ -43,13 +43,13 @@ public:
unsigned weight;
Protocol *protocol;
unsigned internalStatus;
- QStringList overlayIcons;
- QString description;
+ TQStringList overlayIcons;
+ TQString description;
unsigned refCount;
- QString protocolIcon() const
+ TQString protocolIcon() const
{
- return protocol ? protocol->pluginIcon() : QString::fromLatin1( "unknown" );
+ return protocol ? protocol->pluginIcon() : TQString::fromLatin1( "unknown" );
}
};
@@ -71,7 +71,7 @@ static struct
{ OnlineStatus::Away, "Away" } };
OnlineStatus::OnlineStatus( StatusType status, unsigned weight, Protocol *protocol,
- unsigned internalStatus, const QStringList &overlayIcons, const QString &description )
+ unsigned internalStatus, const TQStringList &overlayIcons, const TQString &description )
: d( new Private )
{
d->status = status;
@@ -83,7 +83,7 @@ OnlineStatus::OnlineStatus( StatusType status, unsigned weight, Protocol *protoc
}
OnlineStatus::OnlineStatus( StatusType status, unsigned weight, Protocol *protocol, unsigned internalStatus,
- const QStringList &overlayIcons, const QString &description, const QString &caption, unsigned int categories , unsigned int options )
+ const TQStringList &overlayIcons, const TQString &description, const TQString &caption, unsigned int categories , unsigned int options )
: d( new Private )
{
d->status = status;
@@ -124,7 +124,7 @@ OnlineStatus::OnlineStatus( StatusType status )
case Unknown:
default:
d->description = i18n( "Unknown" );
- d->overlayIcons = QString::fromLatin1("status_unknown");
+ d->overlayIcons = TQString::fromLatin1("status_unknown");
break;
}
@@ -137,7 +137,7 @@ OnlineStatus::OnlineStatus()
d->internalStatus = 0;
d->weight = 0;
d->protocol = 0L;
- d->overlayIcons = QString::fromLatin1( "status_unknown" );
+ d->overlayIcons = TQString::fromLatin1( "status_unknown" );
}
OnlineStatus::OnlineStatus( const OnlineStatus &other )
@@ -204,12 +204,12 @@ unsigned OnlineStatus::weight() const
return d->weight;
}
-QStringList OnlineStatus::overlayIcons() const
+TQStringList OnlineStatus::overlayIcons() const
{
return d->overlayIcons;
}
-QString OnlineStatus::description() const
+TQString OnlineStatus::description() const
{
return d->description;
}
@@ -226,16 +226,16 @@ bool OnlineStatus::isDefinitelyOnline() const
return true;
}
-QPixmap OnlineStatus::iconFor( const Contact *contact, int size ) const
+TQPixmap OnlineStatus::iconFor( const Contact *contact, int size ) const
{
return OnlineStatusManager::self()->cacheLookupByMimeSource( mimeSourceFor( contact, size ) );
}
-QString OnlineStatus::mimeSourceFor( const Contact *contact, int size ) const
+TQString OnlineStatus::mimeSourceFor( const Contact *contact, int size ) const
{
// figure out what icon we should use for this contact
- QString iconName = contact->icon();
+ TQString iconName = contact->icon();
if ( iconName.isNull() )
iconName = contact->account()->customIcon();
if ( iconName.isNull() )
@@ -245,31 +245,31 @@ QString OnlineStatus::mimeSourceFor( const Contact *contact, int size ) const
return mimeSource( iconName, size, contact->account()->color(),contact->idleTime() >= 10*60 );
}
-QPixmap OnlineStatus::iconFor( const Account *account, int size ) const
+TQPixmap OnlineStatus::iconFor( const Account *account, int size ) const
{
return OnlineStatusManager::self()->cacheLookupByMimeSource( mimeSourceFor( account, size ) );
}
-QString OnlineStatus::mimeSourceFor( const Account *account, int size ) const
+TQString OnlineStatus::mimeSourceFor( const Account *account, int size ) const
{
- QString iconName = account->customIcon();
+ TQString iconName = account->customIcon();
if ( iconName.isNull() )
iconName = d->protocolIcon();
return mimeSource( iconName, size, account->color(), false );
}
-QPixmap OnlineStatus::iconFor( const QString &mimeSource ) const
+TQPixmap OnlineStatus::iconFor( const TQString &mimeSource ) const
{
return OnlineStatusManager::self()->cacheLookupByMimeSource( mimeSource );
}
-QPixmap OnlineStatus::protocolIcon() const
+TQPixmap OnlineStatus::protocolIcon() const
{
- return OnlineStatusManager::self()->cacheLookupByObject( *this, d->protocolIcon() , 16, QColor() );
+ return OnlineStatusManager::self()->cacheLookupByObject( *this, d->protocolIcon() , 16, TQColor() );
}
-QString OnlineStatus::mimeSource( const QString& icon, int size, QColor color, bool idle) const
+TQString OnlineStatus::mimeSource( const TQString& icon, int size, TQColor color, bool idle) const
{
// make sure the item is in the cache
OnlineStatusManager::self()->cacheLookupByObject( *this, icon, size, color, idle );
@@ -277,23 +277,23 @@ QString OnlineStatus::mimeSource( const QString& icon, int size, QColor color, b
return OnlineStatusManager::self()->fingerprint( *this, icon, size, color, idle );
}
-QString OnlineStatus::statusTypeToString(OnlineStatus::StatusType statusType)
+TQString OnlineStatus::statusTypeToString(OnlineStatus::StatusType statusType)
{
const int size = sizeof(statusNames) / sizeof(statusNames[0]);
for (int i=0; i< size; i++)
if (statusNames[i].status == statusType)
- return QString::fromLatin1(statusNames[i].name);
+ return TQString::fromLatin1(statusNames[i].name);
- return QString::fromLatin1(statusNames[0].name); // Unknown
+ return TQString::fromLatin1(statusNames[0].name); // Unknown
}
-OnlineStatus::StatusType OnlineStatus::statusStringToType(QString& string)
+OnlineStatus::StatusType OnlineStatus::statusStringToType(TQString& string)
{
int size = sizeof(statusNames) / sizeof(statusNames[0]);
for (int i=0; i< size; i++)
- if (QString::fromLatin1(statusNames[i].name) == string)
+ if (TQString::fromLatin1(statusNames[i].name) == string)
return statusNames[i].status;
return OnlineStatus::Unknown;