kpasswdserver_skel.cpp

00001 /****************************************************************************
00002 **
00003 ** DCOP Skeleton generated by dcopidl2cpp from kpasswdserver.kidl
00004 **
00005 ** WARNING! All changes made in this file will be lost!
00006 **
00007 *****************************************************************************/
00008 
00009 #include "./kpasswdserver.h"
00010 
00011 #include <kdatastream.h>
00012 
00013 
00014 static const char* const KPasswdServer_ftable[6][3] = {
00015     { "KIO::AuthInfo", "checkAuthInfo(KIO::AuthInfo,long int,unsigned long int)", "checkAuthInfo(KIO::AuthInfo,long int,unsigned long int)" },
00016     { "KIO::AuthInfo", "checkAuthInfo(KIO::AuthInfo,long int)", "checkAuthInfo(KIO::AuthInfo,long int)" },
00017     { "KIO::AuthInfo", "queryAuthInfo(KIO::AuthInfo,QString,long int,long int,unsigned long int)", "queryAuthInfo(KIO::AuthInfo,QString,long int,long int,unsigned long int)" },
00018     { "KIO::AuthInfo", "queryAuthInfo(KIO::AuthInfo,QString,long int,long int)", "queryAuthInfo(KIO::AuthInfo,QString,long int,long int)" },
00019     { "void", "addAuthInfo(KIO::AuthInfo,long int)", "addAuthInfo(KIO::AuthInfo,long int)" },
00020     { 0, 0, 0 }
00021 };
00022 static const int KPasswdServer_ftable_hiddens[5] = {
00023     0,
00024     0,
00025     0,
00026     0,
00027     0,
00028 };
00029 
00030 bool KPasswdServer::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
00031 {
00032     if ( fun == KPasswdServer_ftable[0][1] ) { // KIO::AuthInfo checkAuthInfo(KIO::AuthInfo,long int,unsigned long int)
00033     KIO::AuthInfo arg0;
00034     long int arg1;
00035     unsigned long int arg2;
00036     QDataStream arg( data, IO_ReadOnly );
00037     if (arg.atEnd()) return false;
00038     arg >> arg0;
00039     if (arg.atEnd()) return false;
00040     arg >> arg1;
00041     if (arg.atEnd()) return false;
00042     arg >> arg2;
00043     replyType = KPasswdServer_ftable[0][0]; 
00044     QDataStream _replyStream( replyData, IO_WriteOnly );
00045     _replyStream << checkAuthInfo(arg0, arg1, arg2 );
00046     } else if ( fun == KPasswdServer_ftable[1][1] ) { // KIO::AuthInfo checkAuthInfo(KIO::AuthInfo,long int)
00047     KIO::AuthInfo arg0;
00048     long int arg1;
00049     QDataStream arg( data, IO_ReadOnly );
00050     if (arg.atEnd()) return false;
00051     arg >> arg0;
00052     if (arg.atEnd()) return false;
00053     arg >> arg1;
00054     replyType = KPasswdServer_ftable[1][0]; 
00055     QDataStream _replyStream( replyData, IO_WriteOnly );
00056     _replyStream << checkAuthInfo(arg0, arg1 );
00057     } else if ( fun == KPasswdServer_ftable[2][1] ) { // KIO::AuthInfo queryAuthInfo(KIO::AuthInfo,QString,long int,long int,unsigned long int)
00058     KIO::AuthInfo arg0;
00059     QString arg1;
00060     long int arg2;
00061     long int arg3;
00062     unsigned long int arg4;
00063     QDataStream arg( data, IO_ReadOnly );
00064     if (arg.atEnd()) return false;
00065     arg >> arg0;
00066     if (arg.atEnd()) return false;
00067     arg >> arg1;
00068     if (arg.atEnd()) return false;
00069     arg >> arg2;
00070     if (arg.atEnd()) return false;
00071     arg >> arg3;
00072     if (arg.atEnd()) return false;
00073     arg >> arg4;
00074     replyType = KPasswdServer_ftable[2][0]; 
00075     QDataStream _replyStream( replyData, IO_WriteOnly );
00076     _replyStream << queryAuthInfo(arg0, arg1, arg2, arg3, arg4 );
00077     } else if ( fun == KPasswdServer_ftable[3][1] ) { // KIO::AuthInfo queryAuthInfo(KIO::AuthInfo,QString,long int,long int)
00078     KIO::AuthInfo arg0;
00079     QString arg1;
00080     long int arg2;
00081     long int arg3;
00082     QDataStream arg( data, IO_ReadOnly );
00083     if (arg.atEnd()) return false;
00084     arg >> arg0;
00085     if (arg.atEnd()) return false;
00086     arg >> arg1;
00087     if (arg.atEnd()) return false;
00088     arg >> arg2;
00089     if (arg.atEnd()) return false;
00090     arg >> arg3;
00091     replyType = KPasswdServer_ftable[3][0]; 
00092     QDataStream _replyStream( replyData, IO_WriteOnly );
00093     _replyStream << queryAuthInfo(arg0, arg1, arg2, arg3 );
00094     } else if ( fun == KPasswdServer_ftable[4][1] ) { // void addAuthInfo(KIO::AuthInfo,long int)
00095     KIO::AuthInfo arg0;
00096     long int arg1;
00097     QDataStream arg( data, IO_ReadOnly );
00098     if (arg.atEnd()) return false;
00099     arg >> arg0;
00100     if (arg.atEnd()) return false;
00101     arg >> arg1;
00102     replyType = KPasswdServer_ftable[4][0]; 
00103     addAuthInfo(arg0, arg1 );
00104     } else {
00105     return KDEDModule::process( fun, data, replyType, replyData );
00106     }
00107     return true;
00108 }
00109 
00110 QCStringList KPasswdServer::interfaces()
00111 {
00112     QCStringList ifaces = KDEDModule::interfaces();
00113     ifaces += "KPasswdServer";
00114     return ifaces;
00115 }
00116 
00117 QCStringList KPasswdServer::functions()
00118 {
00119     QCStringList funcs = KDEDModule::functions();
00120     for ( int i = 0; KPasswdServer_ftable[i][2]; i++ ) {
00121     if (KPasswdServer_ftable_hiddens[i])
00122         continue;
00123     QCString func = KPasswdServer_ftable[i][0];
00124     func += ' ';
00125     func += KPasswdServer_ftable[i][2];
00126     funcs << func;
00127     }
00128     return funcs;
00129 }
00130 
00131 
KDE Home | KDE Accessibility Home | Description of Access Keys