diff options
Diffstat (limited to 'kshutdown/kshutdowniface_skel.cpp')
-rw-r--r-- | kshutdown/kshutdowniface_skel.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kshutdown/kshutdowniface_skel.cpp b/kshutdown/kshutdowniface_skel.cpp index d267d86..e0b169b 100644 --- a/kshutdown/kshutdowniface_skel.cpp +++ b/kshutdown/kshutdowniface_skel.cpp @@ -9,7 +9,7 @@ #include "kshutdowniface.h" #include <kdatastream.h> -#include <qasciidict.h> +#include <ntqasciidict.h> static const int KShutdownIface_fhash = 13; @@ -21,7 +21,7 @@ static const char* const KShutdownIface_ftable[12][3] = { { "bool", "lockScreen()", "lockScreen()" }, { "bool", "logout()", "logout()" }, { "ASYNC", "configure()", "configure()" }, - { "QString", "getStatusInfo()", "getStatusInfo()" }, + { "TQString", "getStatusInfo()", "getStatusInfo()" }, { "void", "makeInvisible()", "makeInvisible()" }, { "ASYNC", "makeVisible()", "makeVisible()" }, { "ASYNC", "setTestMode(bool)", "setTestMode(bool yes)" }, @@ -41,11 +41,11 @@ static const int KShutdownIface_ftable_hiddens[11] = { 0, }; -bool KShutdownIface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData) +bool KShutdownIface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData) { - static QAsciiDict<int>* fdict = 0; + static TQAsciiDict<int>* fdict = 0; if ( !fdict ) { - fdict = new QAsciiDict<int>( KShutdownIface_fhash, true, false ); + fdict = new TQAsciiDict<int>( KShutdownIface_fhash, true, false ); for ( int i = 0; KShutdownIface_ftable[i][1]; i++ ) fdict->insert( KShutdownIface_ftable[i][1], new int( i ) ); } @@ -57,36 +57,36 @@ bool KShutdownIface::process(const QCString &fun, const QByteArray &data, QCStri } break; case 1: { // bool shutDown() replyType = KShutdownIface_ftable[1][0]; - QDataStream _replyStream( replyData, IO_WriteOnly ); + TQDataStream _replyStream( replyData, IO_WriteOnly ); _replyStream << shutDown( ); } break; case 2: { // bool shutdown() replyType = KShutdownIface_ftable[2][0]; - QDataStream _replyStream( replyData, IO_WriteOnly ); + TQDataStream _replyStream( replyData, IO_WriteOnly ); _replyStream << shutdown( ); } break; case 3: { // bool reboot() replyType = KShutdownIface_ftable[3][0]; - QDataStream _replyStream( replyData, IO_WriteOnly ); + TQDataStream _replyStream( replyData, IO_WriteOnly ); _replyStream << reboot( ); } break; case 4: { // bool lockScreen() replyType = KShutdownIface_ftable[4][0]; - QDataStream _replyStream( replyData, IO_WriteOnly ); + TQDataStream _replyStream( replyData, IO_WriteOnly ); _replyStream << lockScreen( ); } break; case 5: { // bool logout() replyType = KShutdownIface_ftable[5][0]; - QDataStream _replyStream( replyData, IO_WriteOnly ); + TQDataStream _replyStream( replyData, IO_WriteOnly ); _replyStream << logout( ); } break; case 6: { // void configure() replyType = KShutdownIface_ftable[6][0]; configure( ); } break; - case 7: { // QString getStatusInfo() + case 7: { // TQString getStatusInfo() replyType = KShutdownIface_ftable[7][0]; - QDataStream _replyStream( replyData, IO_WriteOnly ); + TQDataStream _replyStream( replyData, IO_WriteOnly ); _replyStream << getStatusInfo( ); } break; case 8: { // void makeInvisible() @@ -99,7 +99,7 @@ bool KShutdownIface::process(const QCString &fun, const QByteArray &data, QCStri } break; case 10: { // void setTestMode(bool) bool arg0; - QDataStream arg( data, IO_ReadOnly ); + TQDataStream arg( data, IO_ReadOnly ); if (arg.atEnd()) return false; arg >> arg0; replyType = KShutdownIface_ftable[10][0]; @@ -124,7 +124,7 @@ QCStringList KShutdownIface::functions() for ( int i = 0; KShutdownIface_ftable[i][2]; i++ ) { if (KShutdownIface_ftable_hiddens[i]) continue; - QCString func = KShutdownIface_ftable[i][0]; + TQCString func = KShutdownIface_ftable[i][0]; func += ' '; func += KShutdownIface_ftable[i][2]; funcs << func; |