diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
commit | 5f5ee2367157176ed223b86343eb0a9e4022e020 (patch) | |
tree | 6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /ksim/monitors/snmp/identifier.cpp | |
parent | 4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff) | |
download | tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.tar.gz tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksim/monitors/snmp/identifier.cpp')
-rw-r--r-- | ksim/monitors/snmp/identifier.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ksim/monitors/snmp/identifier.cpp b/ksim/monitors/snmp/identifier.cpp index 25c188e..32d6d8b 100644 --- a/ksim/monitors/snmp/identifier.cpp +++ b/ksim/monitors/snmp/identifier.cpp @@ -62,7 +62,7 @@ Identifier::~Identifier() delete d; } -Identifier Identifier::fromString( const QString &name, bool *ok ) +Identifier Identifier::fromString( const TQString &name, bool *ok ) { Identifier res; res.d->length = MAX_OID_LEN; @@ -79,7 +79,7 @@ Identifier Identifier::fromString( const QString &name, bool *ok ) return res; } -QString Identifier::toString( PrintFlags flags ) const +TQString Identifier::toString( PrintFlags flags ) const { size_t buflen = 256; size_t outlen = 0; @@ -87,7 +87,7 @@ QString Identifier::toString( PrintFlags flags ) const u_char *buf = ( u_char* )calloc( buflen, 1 ); if ( !buf ) - return QString::null; + return TQString::null; int oldOutpuFormat = SnmpLib::self()->netsnmp_ds_get_int( NETSNMP_DS_LIBRARY_ID, NETSNMP_DS_LIB_OID_OUTPUT_FORMAT ); SnmpLib::self()->netsnmp_ds_set_int( NETSNMP_DS_LIBRARY_ID, NETSNMP_DS_LIB_OID_OUTPUT_FORMAT, @@ -100,10 +100,10 @@ QString Identifier::toString( PrintFlags flags ) const if ( overflow ) { free( buf ); - return QString::null; + return TQString::null; } - QString result = QString::fromAscii( ( char* )buf ); + TQString result = TQString::fromAscii( ( char* )buf ); free( buf ); |