lib Library API Documentation

KoDocumentIface_skel.cc

00001 /****************************************************************************
00002 **
00003 ** DCOP Skeleton created by dcopidl2cpp from KoDocumentIface.kidl
00004 **
00005 ** WARNING! All changes made in this file will be lost!
00006 **
00007 *****************************************************************************/
00008 
00009 #include "./KoDocumentIface.h"
00010 
00011 #include <kdatastream.h>
00012 #include <qasciidict.h>
00013 
00014 
00015 static const int KoDocumentIface_fhash = 37;
00016 static const char* const KoDocumentIface_ftable[35][3] = {
00017     { "QString", "url()", "url()" },
00018     { "void", "openURL(QString)", "openURL(QString url)" },
00019     { "bool", "isModified()", "isModified()" },
00020     { "int", "viewCount()", "viewCount()" },
00021     { "DCOPRef", "view(int)", "view(int idx)" },
00022     { "DCOPRef", "action(QCString)", "action(QCString name)" },
00023     { "QCStringList", "actions()", "actions()" },
00024     { "QMap<QCString,DCOPRef>", "actionMap()", "actionMap()" },
00025     { "void", "saveAs(QString)", "saveAs(QString url)" },
00026     { "void", "setOutputMimeType(QCString)", "setOutputMimeType(QCString mimetype)" },
00027     { "QString", "documentInfoAuthorName()", "documentInfoAuthorName()" },
00028     { "QString", "documentInfoEmail()", "documentInfoEmail()" },
00029     { "QString", "documentInfoCompanyName()", "documentInfoCompanyName()" },
00030     { "QString", "documentInfoTitle()", "documentInfoTitle()" },
00031     { "QString", "documentInfoAbstract()", "documentInfoAbstract()" },
00032     { "QString", "documentInfoTelephone()", "documentInfoTelephone()" },
00033     { "QString", "documentInfoFax()", "documentInfoFax()" },
00034     { "QString", "documentInfoCountry()", "documentInfoCountry()" },
00035     { "QString", "documentInfoPostalCode()", "documentInfoPostalCode()" },
00036     { "QString", "documentInfoCity()", "documentInfoCity()" },
00037     { "QString", "documentInfoStreet()", "documentInfoStreet()" },
00038     { "QString", "documentInfoInitial()", "documentInfoInitial()" },
00039     { "void", "setDocumentInfoAuthorName(QString)", "setDocumentInfoAuthorName(QString text)" },
00040     { "void", "setDocumentInfoEmail(QString)", "setDocumentInfoEmail(QString text)" },
00041     { "void", "setDocumentInfoCompanyName(QString)", "setDocumentInfoCompanyName(QString text)" },
00042     { "void", "setDocumentInfoTelephone(QString)", "setDocumentInfoTelephone(QString text)" },
00043     { "void", "setDocumentInfoFax(QString)", "setDocumentInfoFax(QString text)" },
00044     { "void", "setDocumentInfoCountry(QString)", "setDocumentInfoCountry(QString text)" },
00045     { "void", "setDocumentInfoTitle(QString)", "setDocumentInfoTitle(QString text)" },
00046     { "void", "setDocumentInfoPostalCode(QString)", "setDocumentInfoPostalCode(QString text)" },
00047     { "void", "setDocumentInfoCity(QString)", "setDocumentInfoCity(QString text)" },
00048     { "void", "setDocumentInfoStreet(QString)", "setDocumentInfoStreet(QString text)" },
00049     { "void", "setDocumentInfoAbstract(QString)", "setDocumentInfoAbstract(QString text)" },
00050     { "void", "setDocumentInfoInitial(QString)", "setDocumentInfoInitial(QString text)" },
00051     { 0, 0, 0 }
00052 };
00053 static const int KoDocumentIface_ftable_hiddens[34] = {
00054     0,
00055     0,
00056     0,
00057     0,
00058     0,
00059     0,
00060     0,
00061     0,
00062     0,
00063     0,
00064     0,
00065     0,
00066     0,
00067     0,
00068     0,
00069     0,
00070     0,
00071     0,
00072     0,
00073     0,
00074     0,
00075     0,
00076     0,
00077     0,
00078     0,
00079     0,
00080     0,
00081     0,
00082     0,
00083     0,
00084     0,
00085     0,
00086     0,
00087     0,
00088 };
00089 
00090 bool KoDocumentIface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
00091 {
00092     static QAsciiDict<int>* fdict = 0;
00093     if ( !fdict ) {
00094     fdict = new QAsciiDict<int>( KoDocumentIface_fhash, true, false );
00095     for ( int i = 0; KoDocumentIface_ftable[i][1]; i++ )
00096         fdict->insert( KoDocumentIface_ftable[i][1],  new int( i ) );
00097     }
00098     int* fp = fdict->find( fun );
00099     switch ( fp?*fp:-1) {
00100     case 0: { // QString url()
00101     replyType = KoDocumentIface_ftable[0][0]; 
00102     QDataStream _replyStream( replyData, IO_WriteOnly );
00103     _replyStream << url( );
00104     } break;
00105     case 1: { // void openURL(QString)
00106     QString arg0;
00107     QDataStream arg( data, IO_ReadOnly );
00108     arg >> arg0;
00109     replyType = KoDocumentIface_ftable[1][0]; 
00110     openURL(arg0 );
00111     } break;
00112     case 2: { // bool isModified()
00113     replyType = KoDocumentIface_ftable[2][0]; 
00114     QDataStream _replyStream( replyData, IO_WriteOnly );
00115     _replyStream << isModified( );
00116     } break;
00117     case 3: { // int viewCount()
00118     replyType = KoDocumentIface_ftable[3][0]; 
00119     QDataStream _replyStream( replyData, IO_WriteOnly );
00120     _replyStream << viewCount( );
00121     } break;
00122     case 4: { // DCOPRef view(int)
00123     int arg0;
00124     QDataStream arg( data, IO_ReadOnly );
00125     arg >> arg0;
00126     replyType = KoDocumentIface_ftable[4][0]; 
00127     QDataStream _replyStream( replyData, IO_WriteOnly );
00128     _replyStream << view(arg0 );
00129     } break;
00130     case 5: { // DCOPRef action(QCString)
00131     QCString arg0;
00132     QDataStream arg( data, IO_ReadOnly );
00133     arg >> arg0;
00134     replyType = KoDocumentIface_ftable[5][0]; 
00135     QDataStream _replyStream( replyData, IO_WriteOnly );
00136     _replyStream << action(arg0 );
00137     } break;
00138     case 6: { // QCStringList actions()
00139     replyType = KoDocumentIface_ftable[6][0]; 
00140     QDataStream _replyStream( replyData, IO_WriteOnly );
00141     _replyStream << actions( );
00142     } break;
00143     case 7: { // QMap<QCString,DCOPRef> actionMap()
00144     replyType = KoDocumentIface_ftable[7][0]; 
00145     QDataStream _replyStream( replyData, IO_WriteOnly );
00146     _replyStream << actionMap( );
00147     } break;
00148     case 8: { // void saveAs(QString)
00149     QString arg0;
00150     QDataStream arg( data, IO_ReadOnly );
00151     arg >> arg0;
00152     replyType = KoDocumentIface_ftable[8][0]; 
00153     saveAs(arg0 );
00154     } break;
00155     case 9: { // void setOutputMimeType(QCString)
00156     QCString arg0;
00157     QDataStream arg( data, IO_ReadOnly );
00158     arg >> arg0;
00159     replyType = KoDocumentIface_ftable[9][0]; 
00160     setOutputMimeType(arg0 );
00161     } break;
00162     case 10: { // QString documentInfoAuthorName()
00163     replyType = KoDocumentIface_ftable[10][0]; 
00164     QDataStream _replyStream( replyData, IO_WriteOnly );
00165     _replyStream << documentInfoAuthorName( );
00166     } break;
00167     case 11: { // QString documentInfoEmail()
00168     replyType = KoDocumentIface_ftable[11][0]; 
00169     QDataStream _replyStream( replyData, IO_WriteOnly );
00170     _replyStream << documentInfoEmail( );
00171     } break;
00172     case 12: { // QString documentInfoCompanyName()
00173     replyType = KoDocumentIface_ftable[12][0]; 
00174     QDataStream _replyStream( replyData, IO_WriteOnly );
00175     _replyStream << documentInfoCompanyName( );
00176     } break;
00177     case 13: { // QString documentInfoTitle()
00178     replyType = KoDocumentIface_ftable[13][0]; 
00179     QDataStream _replyStream( replyData, IO_WriteOnly );
00180     _replyStream << documentInfoTitle( );
00181     } break;
00182     case 14: { // QString documentInfoAbstract()
00183     replyType = KoDocumentIface_ftable[14][0]; 
00184     QDataStream _replyStream( replyData, IO_WriteOnly );
00185     _replyStream << documentInfoAbstract( );
00186     } break;
00187     case 15: { // QString documentInfoTelephone()
00188     replyType = KoDocumentIface_ftable[15][0]; 
00189     QDataStream _replyStream( replyData, IO_WriteOnly );
00190     _replyStream << documentInfoTelephone( );
00191     } break;
00192     case 16: { // QString documentInfoFax()
00193     replyType = KoDocumentIface_ftable[16][0]; 
00194     QDataStream _replyStream( replyData, IO_WriteOnly );
00195     _replyStream << documentInfoFax( );
00196     } break;
00197     case 17: { // QString documentInfoCountry()
00198     replyType = KoDocumentIface_ftable[17][0]; 
00199     QDataStream _replyStream( replyData, IO_WriteOnly );
00200     _replyStream << documentInfoCountry( );
00201     } break;
00202     case 18: { // QString documentInfoPostalCode()
00203     replyType = KoDocumentIface_ftable[18][0]; 
00204     QDataStream _replyStream( replyData, IO_WriteOnly );
00205     _replyStream << documentInfoPostalCode( );
00206     } break;
00207     case 19: { // QString documentInfoCity()
00208     replyType = KoDocumentIface_ftable[19][0]; 
00209     QDataStream _replyStream( replyData, IO_WriteOnly );
00210     _replyStream << documentInfoCity( );
00211     } break;
00212     case 20: { // QString documentInfoStreet()
00213     replyType = KoDocumentIface_ftable[20][0]; 
00214     QDataStream _replyStream( replyData, IO_WriteOnly );
00215     _replyStream << documentInfoStreet( );
00216     } break;
00217     case 21: { // QString documentInfoInitial()
00218     replyType = KoDocumentIface_ftable[21][0]; 
00219     QDataStream _replyStream( replyData, IO_WriteOnly );
00220     _replyStream << documentInfoInitial( );
00221     } break;
00222     case 22: { // void setDocumentInfoAuthorName(QString)
00223     QString arg0;
00224     QDataStream arg( data, IO_ReadOnly );
00225     arg >> arg0;
00226     replyType = KoDocumentIface_ftable[22][0]; 
00227     setDocumentInfoAuthorName(arg0 );
00228     } break;
00229     case 23: { // void setDocumentInfoEmail(QString)
00230     QString arg0;
00231     QDataStream arg( data, IO_ReadOnly );
00232     arg >> arg0;
00233     replyType = KoDocumentIface_ftable[23][0]; 
00234     setDocumentInfoEmail(arg0 );
00235     } break;
00236     case 24: { // void setDocumentInfoCompanyName(QString)
00237     QString arg0;
00238     QDataStream arg( data, IO_ReadOnly );
00239     arg >> arg0;
00240     replyType = KoDocumentIface_ftable[24][0]; 
00241     setDocumentInfoCompanyName(arg0 );
00242     } break;
00243     case 25: { // void setDocumentInfoTelephone(QString)
00244     QString arg0;
00245     QDataStream arg( data, IO_ReadOnly );
00246     arg >> arg0;
00247     replyType = KoDocumentIface_ftable[25][0]; 
00248     setDocumentInfoTelephone(arg0 );
00249     } break;
00250     case 26: { // void setDocumentInfoFax(QString)
00251     QString arg0;
00252     QDataStream arg( data, IO_ReadOnly );
00253     arg >> arg0;
00254     replyType = KoDocumentIface_ftable[26][0]; 
00255     setDocumentInfoFax(arg0 );
00256     } break;
00257     case 27: { // void setDocumentInfoCountry(QString)
00258     QString arg0;
00259     QDataStream arg( data, IO_ReadOnly );
00260     arg >> arg0;
00261     replyType = KoDocumentIface_ftable[27][0]; 
00262     setDocumentInfoCountry(arg0 );
00263     } break;
00264     case 28: { // void setDocumentInfoTitle(QString)
00265     QString arg0;
00266     QDataStream arg( data, IO_ReadOnly );
00267     arg >> arg0;
00268     replyType = KoDocumentIface_ftable[28][0]; 
00269     setDocumentInfoTitle(arg0 );
00270     } break;
00271     case 29: { // void setDocumentInfoPostalCode(QString)
00272     QString arg0;
00273     QDataStream arg( data, IO_ReadOnly );
00274     arg >> arg0;
00275     replyType = KoDocumentIface_ftable[29][0]; 
00276     setDocumentInfoPostalCode(arg0 );
00277     } break;
00278     case 30: { // void setDocumentInfoCity(QString)
00279     QString arg0;
00280     QDataStream arg( data, IO_ReadOnly );
00281     arg >> arg0;
00282     replyType = KoDocumentIface_ftable[30][0]; 
00283     setDocumentInfoCity(arg0 );
00284     } break;
00285     case 31: { // void setDocumentInfoStreet(QString)
00286     QString arg0;
00287     QDataStream arg( data, IO_ReadOnly );
00288     arg >> arg0;
00289     replyType = KoDocumentIface_ftable[31][0]; 
00290     setDocumentInfoStreet(arg0 );
00291     } break;
00292     case 32: { // void setDocumentInfoAbstract(QString)
00293     QString arg0;
00294     QDataStream arg( data, IO_ReadOnly );
00295     arg >> arg0;
00296     replyType = KoDocumentIface_ftable[32][0]; 
00297     setDocumentInfoAbstract(arg0 );
00298     } break;
00299     case 33: { // void setDocumentInfoInitial(QString)
00300     QString arg0;
00301     QDataStream arg( data, IO_ReadOnly );
00302     arg >> arg0;
00303     replyType = KoDocumentIface_ftable[33][0]; 
00304     setDocumentInfoInitial(arg0 );
00305     } break;
00306     default: 
00307     return DCOPObject::process( fun, data, replyType, replyData );
00308     }
00309     return true;
00310 }
00311 
00312 QCStringList KoDocumentIface::interfaces()
00313 {
00314     QCStringList ifaces = DCOPObject::interfaces();
00315     ifaces += "KoDocumentIface";
00316     return ifaces;
00317 }
00318 
00319 QCStringList KoDocumentIface::functions()
00320 {
00321     QCStringList funcs = DCOPObject::functions();
00322     for ( int i = 0; KoDocumentIface_ftable[i][2]; i++ ) {
00323     if (KoDocumentIface_ftable_hiddens[i])
00324         continue;
00325     QCString func = KoDocumentIface_ftable[i][0];
00326     func += ' ';
00327     func += KoDocumentIface_ftable[i][2];
00328     funcs << func;
00329     }
00330     return funcs;
00331 }
00332 
00333 
KDE Logo
This file is part of the documentation for lib Library Version 1.3.5.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Mar 11 11:47:41 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003