kdeui Library API Documentation

kmainwindowiface_skel.cpp

00001 /****************************************************************************
00002 **
00003 ** DCOP Skeleton created by dcopidl2cpp from kmainwindowiface.kidl
00004 **
00005 ** WARNING! All changes made in this file will be lost!
00006 **
00007 *****************************************************************************/
00008 
00009 #include "./kmainwindowiface.h"
00010 
00011 #include <kdatastream.h>
00012 #include <qasciidict.h>
00013 
00014 
00015 static const int KMainWindowInterface_fhash = 23;
00016 static const char* const KMainWindowInterface_ftable[21][3] = {
00017     { "QCStringList", "actions()", "actions()" },
00018     { "bool", "activateAction(QCString)", "activateAction(QCString action)" },
00019     { "bool", "disableAction(QCString)", "disableAction(QCString action)" },
00020     { "bool", "enableAction(QCString)", "enableAction(QCString action)" },
00021     { "bool", "actionIsEnabled(QCString)", "actionIsEnabled(QCString action)" },
00022     { "QCString", "actionToolTip(QCString)", "actionToolTip(QCString action)" },
00023     { "DCOPRef", "action(QCString)", "action(QCString name)" },
00024     { "QMap<QCString,DCOPRef>", "actionMap()", "actionMap()" },
00025     { "int", "getWinID()", "getWinID()" },
00026     { "void", "grabWindowToClipBoard()", "grabWindowToClipBoard()" },
00027     { "void", "hide()", "hide()" },
00028     { "void", "maximize()", "maximize()" },
00029     { "void", "minimize()", "minimize()" },
00030     { "void", "resize(int,int)", "resize(int newWidth,int newHeight)" },
00031     { "void", "move(int,int)", "move(int newX,int newY)" },
00032     { "void", "setGeometry(int,int,int,int)", "setGeometry(int newX,int newY,int newWidth,int newHeight)" },
00033     { "void", "raise()", "raise()" },
00034     { "void", "lower()", "lower()" },
00035     { "void", "restore()", "restore()" },
00036     { "void", "show()", "show()" },
00037     { 0, 0, 0 }
00038 };
00039 static const int KMainWindowInterface_ftable_hiddens[20] = {
00040     0,
00041     0,
00042     0,
00043     0,
00044     0,
00045     0,
00046     0,
00047     0,
00048     0,
00049     0,
00050     0,
00051     0,
00052     0,
00053     0,
00054     0,
00055     0,
00056     0,
00057     0,
00058     0,
00059     0,
00060 };
00061 
00062 bool KMainWindowInterface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
00063 {
00064     static QAsciiDict<int>* fdict = 0;
00065     if ( !fdict ) {
00066     fdict = new QAsciiDict<int>( KMainWindowInterface_fhash, true, false );
00067     for ( int i = 0; KMainWindowInterface_ftable[i][1]; i++ )
00068         fdict->insert( KMainWindowInterface_ftable[i][1],  new int( i ) );
00069     }
00070     int* fp = fdict->find( fun );
00071     switch ( fp?*fp:-1) {
00072     case 0: { // QCStringList actions()
00073     replyType = KMainWindowInterface_ftable[0][0]; 
00074     QDataStream _replyStream( replyData, IO_WriteOnly );
00075     _replyStream << actions( );
00076     } break;
00077     case 1: { // bool activateAction(QCString)
00078     QCString arg0;
00079     QDataStream arg( data, IO_ReadOnly );
00080     arg >> arg0;
00081     replyType = KMainWindowInterface_ftable[1][0]; 
00082     QDataStream _replyStream( replyData, IO_WriteOnly );
00083     _replyStream << activateAction(arg0 );
00084     } break;
00085     case 2: { // bool disableAction(QCString)
00086     QCString arg0;
00087     QDataStream arg( data, IO_ReadOnly );
00088     arg >> arg0;
00089     replyType = KMainWindowInterface_ftable[2][0]; 
00090     QDataStream _replyStream( replyData, IO_WriteOnly );
00091     _replyStream << disableAction(arg0 );
00092     } break;
00093     case 3: { // bool enableAction(QCString)
00094     QCString arg0;
00095     QDataStream arg( data, IO_ReadOnly );
00096     arg >> arg0;
00097     replyType = KMainWindowInterface_ftable[3][0]; 
00098     QDataStream _replyStream( replyData, IO_WriteOnly );
00099     _replyStream << enableAction(arg0 );
00100     } break;
00101     case 4: { // bool actionIsEnabled(QCString)
00102     QCString arg0;
00103     QDataStream arg( data, IO_ReadOnly );
00104     arg >> arg0;
00105     replyType = KMainWindowInterface_ftable[4][0]; 
00106     QDataStream _replyStream( replyData, IO_WriteOnly );
00107     _replyStream << actionIsEnabled(arg0 );
00108     } break;
00109     case 5: { // QCString actionToolTip(QCString)
00110     QCString arg0;
00111     QDataStream arg( data, IO_ReadOnly );
00112     arg >> arg0;
00113     replyType = KMainWindowInterface_ftable[5][0]; 
00114     QDataStream _replyStream( replyData, IO_WriteOnly );
00115     _replyStream << actionToolTip(arg0 );
00116     } break;
00117     case 6: { // DCOPRef action(QCString)
00118     QCString arg0;
00119     QDataStream arg( data, IO_ReadOnly );
00120     arg >> arg0;
00121     replyType = KMainWindowInterface_ftable[6][0]; 
00122     QDataStream _replyStream( replyData, IO_WriteOnly );
00123     _replyStream << action(arg0 );
00124     } break;
00125     case 7: { // QMap<QCString,DCOPRef> actionMap()
00126     replyType = KMainWindowInterface_ftable[7][0]; 
00127     QDataStream _replyStream( replyData, IO_WriteOnly );
00128     _replyStream << actionMap( );
00129     } break;
00130     case 8: { // int getWinID()
00131     replyType = KMainWindowInterface_ftable[8][0]; 
00132     QDataStream _replyStream( replyData, IO_WriteOnly );
00133     _replyStream << getWinID( );
00134     } break;
00135     case 9: { // void grabWindowToClipBoard()
00136     replyType = KMainWindowInterface_ftable[9][0]; 
00137     grabWindowToClipBoard( );
00138     } break;
00139     case 10: { // void hide()
00140     replyType = KMainWindowInterface_ftable[10][0]; 
00141     hide( );
00142     } break;
00143     case 11: { // void maximize()
00144     replyType = KMainWindowInterface_ftable[11][0]; 
00145     maximize( );
00146     } break;
00147     case 12: { // void minimize()
00148     replyType = KMainWindowInterface_ftable[12][0]; 
00149     minimize( );
00150     } break;
00151     case 13: { // void resize(int,int)
00152     int arg0;
00153     int arg1;
00154     QDataStream arg( data, IO_ReadOnly );
00155     arg >> arg0;
00156     arg >> arg1;
00157     replyType = KMainWindowInterface_ftable[13][0]; 
00158     resize(arg0, arg1 );
00159     } break;
00160     case 14: { // void move(int,int)
00161     int arg0;
00162     int arg1;
00163     QDataStream arg( data, IO_ReadOnly );
00164     arg >> arg0;
00165     arg >> arg1;
00166     replyType = KMainWindowInterface_ftable[14][0]; 
00167     move(arg0, arg1 );
00168     } break;
00169     case 15: { // void setGeometry(int,int,int,int)
00170     int arg0;
00171     int arg1;
00172     int arg2;
00173     int arg3;
00174     QDataStream arg( data, IO_ReadOnly );
00175     arg >> arg0;
00176     arg >> arg1;
00177     arg >> arg2;
00178     arg >> arg3;
00179     replyType = KMainWindowInterface_ftable[15][0]; 
00180     setGeometry(arg0, arg1, arg2, arg3 );
00181     } break;
00182     case 16: { // void raise()
00183     replyType = KMainWindowInterface_ftable[16][0]; 
00184     raise( );
00185     } break;
00186     case 17: { // void lower()
00187     replyType = KMainWindowInterface_ftable[17][0]; 
00188     lower( );
00189     } break;
00190     case 18: { // void restore()
00191     replyType = KMainWindowInterface_ftable[18][0]; 
00192     restore( );
00193     } break;
00194     case 19: { // void show()
00195     replyType = KMainWindowInterface_ftable[19][0]; 
00196     show( );
00197     } break;
00198     default: 
00199     return DCOPObject::process( fun, data, replyType, replyData );
00200     }
00201     return true;
00202 }
00203 
00204 QCStringList KMainWindowInterface::interfaces()
00205 {
00206     QCStringList ifaces = DCOPObject::interfaces();
00207     ifaces += "KMainWindowInterface";
00208     return ifaces;
00209 }
00210 
00211 QCStringList KMainWindowInterface::functions()
00212 {
00213     QCStringList funcs = DCOPObject::functions();
00214     for ( int i = 0; KMainWindowInterface_ftable[i][2]; i++ ) {
00215     if (KMainWindowInterface_ftable_hiddens[i])
00216         continue;
00217     QCString func = KMainWindowInterface_ftable[i][0];
00218     func += ' ';
00219     func += KMainWindowInterface_ftable[i][2];
00220     funcs << func;
00221     }
00222     return funcs;
00223 }
00224 
00225 
KDE Logo
This file is part of the documentation for kdeui Library Version 3.3.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Feb 18 15:10:19 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003