kmainwindowiface_skel.cpp

00001 /****************************************************************************
00002 **
00003 ** DCOP Skeleton generated 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[22][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     { "void", "close()", "close()" },
00038     { 0, 0, 0 }
00039 };
00040 static const int KMainWindowInterface_ftable_hiddens[21] = {
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     0,
00061     0,
00062 };
00063 
00064 bool KMainWindowInterface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
00065 {
00066     static QAsciiDict<int>* fdict = 0;
00067     if ( !fdict ) {
00068     fdict = new QAsciiDict<int>( KMainWindowInterface_fhash, true, false );
00069     for ( int i = 0; KMainWindowInterface_ftable[i][1]; i++ )
00070         fdict->insert( KMainWindowInterface_ftable[i][1],  new int( i ) );
00071     }
00072     int* fp = fdict->find( fun );
00073     switch ( fp?*fp:-1) {
00074     case 0: { // QCStringList actions()
00075     replyType = KMainWindowInterface_ftable[0][0]; 
00076     QDataStream _replyStream( replyData, IO_WriteOnly );
00077     _replyStream << actions( );
00078     } break;
00079     case 1: { // bool activateAction(QCString)
00080     QCString arg0;
00081     QDataStream arg( data, IO_ReadOnly );
00082     if (arg.atEnd()) return false;
00083     arg >> arg0;
00084     replyType = KMainWindowInterface_ftable[1][0]; 
00085     QDataStream _replyStream( replyData, IO_WriteOnly );
00086     _replyStream << activateAction(arg0 );
00087     } break;
00088     case 2: { // bool disableAction(QCString)
00089     QCString arg0;
00090     QDataStream arg( data, IO_ReadOnly );
00091     if (arg.atEnd()) return false;
00092     arg >> arg0;
00093     replyType = KMainWindowInterface_ftable[2][0]; 
00094     QDataStream _replyStream( replyData, IO_WriteOnly );
00095     _replyStream << disableAction(arg0 );
00096     } break;
00097     case 3: { // bool enableAction(QCString)
00098     QCString arg0;
00099     QDataStream arg( data, IO_ReadOnly );
00100     if (arg.atEnd()) return false;
00101     arg >> arg0;
00102     replyType = KMainWindowInterface_ftable[3][0]; 
00103     QDataStream _replyStream( replyData, IO_WriteOnly );
00104     _replyStream << enableAction(arg0 );
00105     } break;
00106     case 4: { // bool actionIsEnabled(QCString)
00107     QCString arg0;
00108     QDataStream arg( data, IO_ReadOnly );
00109     if (arg.atEnd()) return false;
00110     arg >> arg0;
00111     replyType = KMainWindowInterface_ftable[4][0]; 
00112     QDataStream _replyStream( replyData, IO_WriteOnly );
00113     _replyStream << actionIsEnabled(arg0 );
00114     } break;
00115     case 5: { // QCString actionToolTip(QCString)
00116     QCString arg0;
00117     QDataStream arg( data, IO_ReadOnly );
00118     if (arg.atEnd()) return false;
00119     arg >> arg0;
00120     replyType = KMainWindowInterface_ftable[5][0]; 
00121     QDataStream _replyStream( replyData, IO_WriteOnly );
00122     _replyStream << actionToolTip(arg0 );
00123     } break;
00124     case 6: { // DCOPRef action(QCString)
00125     QCString arg0;
00126     QDataStream arg( data, IO_ReadOnly );
00127     if (arg.atEnd()) return false;
00128     arg >> arg0;
00129     replyType = KMainWindowInterface_ftable[6][0]; 
00130     QDataStream _replyStream( replyData, IO_WriteOnly );
00131     _replyStream << action(arg0 );
00132     } break;
00133     case 7: { // QMap<QCString,DCOPRef> actionMap()
00134     replyType = KMainWindowInterface_ftable[7][0]; 
00135     QDataStream _replyStream( replyData, IO_WriteOnly );
00136     _replyStream << actionMap( );
00137     } break;
00138     case 8: { // int getWinID()
00139     replyType = KMainWindowInterface_ftable[8][0]; 
00140     QDataStream _replyStream( replyData, IO_WriteOnly );
00141     _replyStream << getWinID( );
00142     } break;
00143     case 9: { // void grabWindowToClipBoard()
00144     replyType = KMainWindowInterface_ftable[9][0]; 
00145     grabWindowToClipBoard( );
00146     } break;
00147     case 10: { // void hide()
00148     replyType = KMainWindowInterface_ftable[10][0]; 
00149     hide( );
00150     } break;
00151     case 11: { // void maximize()
00152     replyType = KMainWindowInterface_ftable[11][0]; 
00153     maximize( );
00154     } break;
00155     case 12: { // void minimize()
00156     replyType = KMainWindowInterface_ftable[12][0]; 
00157     minimize( );
00158     } break;
00159     case 13: { // void resize(int,int)
00160     int arg0;
00161     int arg1;
00162     QDataStream arg( data, IO_ReadOnly );
00163     if (arg.atEnd()) return false;
00164     arg >> arg0;
00165     if (arg.atEnd()) return false;
00166     arg >> arg1;
00167     replyType = KMainWindowInterface_ftable[13][0]; 
00168     resize(arg0, arg1 );
00169     } break;
00170     case 14: { // void move(int,int)
00171     int arg0;
00172     int arg1;
00173     QDataStream arg( data, IO_ReadOnly );
00174     if (arg.atEnd()) return false;
00175     arg >> arg0;
00176     if (arg.atEnd()) return false;
00177     arg >> arg1;
00178     replyType = KMainWindowInterface_ftable[14][0]; 
00179     move(arg0, arg1 );
00180     } break;
00181     case 15: { // void setGeometry(int,int,int,int)
00182     int arg0;
00183     int arg1;
00184     int arg2;
00185     int arg3;
00186     QDataStream arg( data, IO_ReadOnly );
00187     if (arg.atEnd()) return false;
00188     arg >> arg0;
00189     if (arg.atEnd()) return false;
00190     arg >> arg1;
00191     if (arg.atEnd()) return false;
00192     arg >> arg2;
00193     if (arg.atEnd()) return false;
00194     arg >> arg3;
00195     replyType = KMainWindowInterface_ftable[15][0]; 
00196     setGeometry(arg0, arg1, arg2, arg3 );
00197     } break;
00198     case 16: { // void raise()
00199     replyType = KMainWindowInterface_ftable[16][0]; 
00200     raise( );
00201     } break;
00202     case 17: { // void lower()
00203     replyType = KMainWindowInterface_ftable[17][0]; 
00204     lower( );
00205     } break;
00206     case 18: { // void restore()
00207     replyType = KMainWindowInterface_ftable[18][0]; 
00208     restore( );
00209     } break;
00210     case 19: { // void show()
00211     replyType = KMainWindowInterface_ftable[19][0]; 
00212     show( );
00213     } break;
00214     case 20: { // void close()
00215     replyType = KMainWindowInterface_ftable[20][0]; 
00216     close( );
00217     } break;
00218     default: 
00219     return DCOPObject::process( fun, data, replyType, replyData );
00220     }
00221     return true;
00222 }
00223 
00224 QCStringList KMainWindowInterface::interfaces()
00225 {
00226     QCStringList ifaces = DCOPObject::interfaces();
00227     ifaces += "KMainWindowInterface";
00228     return ifaces;
00229 }
00230 
00231 QCStringList KMainWindowInterface::functions()
00232 {
00233     QCStringList funcs = DCOPObject::functions();
00234     for ( int i = 0; KMainWindowInterface_ftable[i][2]; i++ ) {
00235     if (KMainWindowInterface_ftable_hiddens[i])
00236         continue;
00237     QCString func = KMainWindowInterface_ftable[i][0];
00238     func += ' ';
00239     func += KMainWindowInterface_ftable[i][2];
00240     funcs << func;
00241     }
00242     return funcs;
00243 }
00244 
00245 
KDE Home | KDE Accessibility Home | Description of Access Keys