kdecore Library API Documentation

kappdcopiface_skel.cpp

00001 /**************************************************************************** 00002 ** 00003 ** DCOP Skeleton created by dcopidl2cpp from kappdcopiface.kidl 00004 ** 00005 ** WARNING! All changes made in this file will be lost! 00006 ** 00007 *****************************************************************************/ 00008 00009 #include "./kappdcopiface.h" 00010 00011 #include <kdatastream.h> 00012 00013 00014 static const char* const KAppDCOPInterface_ftable[6][3] = { 00015 { "void", "disableSessionManagement()", "disableSessionManagement()" }, 00016 { "QCString", "startupId()", "startupId()" }, 00017 { "QCString", "caption()", "caption()" }, 00018 { "void", "quit()", "quit()" }, 00019 { "void", "updateUserTimestamp(ulong)", "updateUserTimestamp(ulong time)" }, 00020 { 0, 0, 0 } 00021 }; 00022 static const int KAppDCOPInterface_ftable_hiddens[5] = { 00023 0, 00024 0, 00025 0, 00026 0, 00027 0, 00028 }; 00029 00030 bool KAppDCOPInterface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData) 00031 { 00032 if ( fun == KAppDCOPInterface_ftable[0][1] ) { // void disableSessionManagement() 00033 replyType = KAppDCOPInterface_ftable[0][0]; 00034 disableSessionManagement( ); 00035 } else if ( fun == KAppDCOPInterface_ftable[1][1] ) { // QCString startupId() 00036 replyType = KAppDCOPInterface_ftable[1][0]; 00037 QDataStream _replyStream( replyData, IO_WriteOnly ); 00038 _replyStream << startupId( ); 00039 } else if ( fun == KAppDCOPInterface_ftable[2][1] ) { // QCString caption() 00040 replyType = KAppDCOPInterface_ftable[2][0]; 00041 QDataStream _replyStream( replyData, IO_WriteOnly ); 00042 _replyStream << caption( ); 00043 } else if ( fun == KAppDCOPInterface_ftable[3][1] ) { // void quit() 00044 replyType = KAppDCOPInterface_ftable[3][0]; 00045 quit( ); 00046 } else if ( fun == KAppDCOPInterface_ftable[4][1] ) { // void updateUserTimestamp(ulong) 00047 ulong arg0; 00048 QDataStream arg( data, IO_ReadOnly ); 00049 arg >> arg0; 00050 replyType = KAppDCOPInterface_ftable[4][0]; 00051 updateUserTimestamp(arg0 ); 00052 } else { 00053 return DCOPObject::process( fun, data, replyType, replyData ); 00054 } 00055 return true; 00056 } 00057 00058 QCStringList KAppDCOPInterface::interfaces() 00059 { 00060 QCStringList ifaces = DCOPObject::interfaces(); 00061 ifaces += "KAppDCOPInterface"; 00062 return ifaces; 00063 } 00064 00065 QCStringList KAppDCOPInterface::functions() 00066 { 00067 QCStringList funcs = DCOPObject::functions(); 00068 for ( int i = 0; KAppDCOPInterface_ftable[i][2]; i++ ) { 00069 if (KAppDCOPInterface_ftable_hiddens[i]) 00070 continue; 00071 QCString func = KAppDCOPInterface_ftable[i][0]; 00072 func += ' '; 00073 func += KAppDCOPInterface_ftable[i][2]; 00074 funcs << func; 00075 } 00076 return funcs; 00077 } 00078 00079
KDE Logo
This file is part of the documentation for kdecore Library Version 3.3.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sun Oct 17 11:26:05 2004 by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2003