summaryrefslogtreecommitdiffstats
path: root/ksmserver/client.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
commitc663b6440964f6ac48027143ac9e63298991f9d0 (patch)
tree6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /ksmserver/client.cpp
parenta061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff)
downloadtdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz
tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksmserver/client.cpp')
-rw-r--r--ksmserver/client.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/ksmserver/client.cpp b/ksmserver/client.cpp
index 784de496c..2f6708963 100644
--- a/ksmserver/client.cpp
+++ b/ksmserver/client.cpp
@@ -63,7 +63,7 @@ KSMClient::~KSMClient()
SmProp* KSMClient::property( const char* name ) const
{
- for ( QPtrListIterator<SmProp> it( properties ); it.current(); ++it ) {
+ for ( TQPtrListIterator<SmProp> it( properties ); it.current(); ++it ) {
if ( !qstrcmp( it.current()->name, name ) )
return it.current();
}
@@ -83,17 +83,17 @@ void KSMClient::resetState()
* In this case SmsGenerateClientID() returns NULL, but we really want a
* client ID, so we fake one.
*/
-static KStaticDeleter<QString> smy_addr;
+static KStaticDeleter<TQString> smy_addr;
static char * safeSmsGenerateClientID( SmsConn /*c*/ )
{
// Causes delays with misconfigured network :-/.
// char *ret = SmsGenerateClientID(c);
char* ret = NULL;
if (!ret) {
- static QString *my_addr = 0;
+ static TQString *my_addr = 0;
if (!my_addr) {
// qWarning("Can't get own host name. Your system is severely misconfigured\n");
- smy_addr.setObject(my_addr,new QString);
+ smy_addr.setObject(my_addr,new TQString);
/* Faking our IP address, the 0 below is "unknown" address format
(1 would be IP, 2 would be DEC-NET format) */
@@ -112,7 +112,7 @@ static char * safeSmsGenerateClientID( SmsConn /*c*/ )
for( int i = 0;
i < 4;
++i )
- *my_addr += QString::number( addr[ i ], 16 );
+ *my_addr += TQString::number( addr[ i ], 16 );
}
}
/* Needs to be malloc(), to look the same as libSM */
@@ -141,33 +141,33 @@ void KSMClient::registerClient( const char* previousId )
}
-QString KSMClient::program() const
+TQString KSMClient::program() const
{
SmProp* p = property( SmProgram );
if ( !p || qstrcmp( p->type, SmARRAY8) || p->num_vals < 1)
- return QString::null;
- return QString::fromLatin1( (const char*) p->vals[0].value );
+ return TQString::null;
+ return TQString::fromLatin1( (const char*) p->vals[0].value );
}
-QStringList KSMClient::restartCommand() const
+TQStringList KSMClient::restartCommand() const
{
- QStringList result;
+ TQStringList result;
SmProp* p = property( SmRestartCommand );
if ( !p || qstrcmp( p->type, SmLISTofARRAY8) || p->num_vals < 1)
return result;
for ( int i = 0; i < p->num_vals; i++ )
- result +=QString::fromLatin1( (const char*) p->vals[i].value );
+ result +=TQString::fromLatin1( (const char*) p->vals[i].value );
return result;
}
-QStringList KSMClient::discardCommand() const
+TQStringList KSMClient::discardCommand() const
{
- QStringList result;
+ TQStringList result;
SmProp* p = property( SmDiscardCommand );
if ( !p || qstrcmp( p->type, SmLISTofARRAY8) || p->num_vals < 1)
return result;
for ( int i = 0; i < p->num_vals; i++ )
- result +=QString::fromLatin1( (const char*) p->vals[i].value );
+ result +=TQString::fromLatin1( (const char*) p->vals[i].value );
return result;
}
@@ -179,12 +179,12 @@ int KSMClient::restartStyleHint() const
return *((int*)p->vals[0].value);
}
-QString KSMClient::userId() const
+TQString KSMClient::userId() const
{
SmProp* p = property( SmUserID );
if ( !p || qstrcmp( p->type, SmARRAY8) || p->num_vals < 1)
- return QString::null;
- return QString::fromLatin1( (const char*) p->vals[0].value );
+ return TQString::null;
+ return TQString::fromLatin1( (const char*) p->vals[0].value );
}