kio Library API Documentation

kssld_skel.cpp

00001 /****************************************************************************
00002 **
00003 ** DCOP Skeleton created by dcopidl2cpp from kssld.kidl
00004 **
00005 ** WARNING! All changes made in this file will be lost!
00006 **
00007 *****************************************************************************/
00008 
00009 #include "./kssld.h"
00010 
00011 #include <kdatastream.h>
00012 #include <qasciidict.h>
00013 
00014 
00015 static const int KSSLD_fhash = 29;
00016 static const char* const KSSLD_ftable[24][3] = {
00017     { "void", "cacheAddCertificate(KSSLCertificate,KSSLCertificateCache::KSSLCertificatePolicy,bool)", "cacheAddCertificate(KSSLCertificate cert,KSSLCertificateCache::KSSLCertificatePolicy policy,bool permanent)" },
00018     { "KSSLCertificateCache::KSSLCertificatePolicy", "cacheGetPolicyByCN(QString)", "cacheGetPolicyByCN(QString cn)" },
00019     { "KSSLCertificateCache::KSSLCertificatePolicy", "cacheGetPolicyByCertificate(KSSLCertificate)", "cacheGetPolicyByCertificate(KSSLCertificate cert)" },
00020     { "bool", "cacheSeenCN(QString)", "cacheSeenCN(QString cn)" },
00021     { "bool", "cacheSeenCertificate(KSSLCertificate)", "cacheSeenCertificate(KSSLCertificate cert)" },
00022     { "bool", "cacheRemoveByCN(QString)", "cacheRemoveByCN(QString cn)" },
00023     { "bool", "cacheRemoveByCertificate(KSSLCertificate)", "cacheRemoveByCertificate(KSSLCertificate cert)" },
00024     { "bool", "cacheIsPermanent(KSSLCertificate)", "cacheIsPermanent(KSSLCertificate cert)" },
00025     { "void", "cacheReload()", "cacheReload()" },
00026     { "bool", "cacheModifyByCN(QString,KSSLCertificateCache::KSSLCertificatePolicy,bool,QDateTime)", "cacheModifyByCN(QString cn,KSSLCertificateCache::KSSLCertificatePolicy policy,bool permanent,QDateTime expires)" },
00027     { "bool", "cacheModifyByCertificate(KSSLCertificate,KSSLCertificateCache::KSSLCertificatePolicy,bool,QDateTime)", "cacheModifyByCertificate(KSSLCertificate cert,KSSLCertificateCache::KSSLCertificatePolicy policy,bool permanent,QDateTime expires)" },
00028     { "QStringList", "cacheGetHostList(KSSLCertificate)", "cacheGetHostList(KSSLCertificate cert)" },
00029     { "bool", "cacheAddHost(KSSLCertificate,QString)", "cacheAddHost(KSSLCertificate cert,QString host)" },
00030     { "bool", "cacheRemoveHost(KSSLCertificate,QString)", "cacheRemoveHost(KSSLCertificate cert,QString host)" },
00031     { "bool", "caRegenerate()", "caRegenerate()" },
00032     { "QStringList", "caList()", "caList()" },
00033     { "bool", "caUseForSSL(QString)", "caUseForSSL(QString subject)" },
00034     { "bool", "caUseForEmail(QString)", "caUseForEmail(QString subject)" },
00035     { "bool", "caUseForCode(QString)", "caUseForCode(QString subject)" },
00036     { "bool", "caAdd(QString,bool,bool,bool)", "caAdd(QString certificate,bool ssl,bool email,bool code)" },
00037     { "bool", "caRemove(QString)", "caRemove(QString subject)" },
00038     { "QString", "caGetCert(QString)", "caGetCert(QString subject)" },
00039     { "bool", "caSetUse(QString,bool,bool,bool)", "caSetUse(QString subject,bool ssl,bool email,bool code)" },
00040     { 0, 0, 0 }
00041 };
00042 
00043 bool KSSLD::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
00044 {
00045     static QAsciiDict<int>* fdict = 0;
00046     if ( !fdict ) {
00047     fdict = new QAsciiDict<int>( KSSLD_fhash, TRUE, FALSE );
00048     for ( int i = 0; KSSLD_ftable[i][1]; i++ )
00049         fdict->insert( KSSLD_ftable[i][1],  new int( i ) );
00050     }
00051     int* fp = fdict->find( fun );
00052     switch ( fp?*fp:-1) {
00053     case 0: { // void cacheAddCertificate(KSSLCertificate,KSSLCertificateCache::KSSLCertificatePolicy,bool)
00054     KSSLCertificate arg0;
00055     KSSLCertificateCache::KSSLCertificatePolicy arg1;
00056     bool arg2;
00057     QDataStream arg( data, IO_ReadOnly );
00058     arg >> arg0;
00059     arg >> arg1;
00060     arg >> arg2;
00061     replyType = KSSLD_ftable[0][0]; 
00062     cacheAddCertificate(arg0, arg1, arg2 );
00063     } break;
00064     case 1: { // KSSLCertificateCache::KSSLCertificatePolicy cacheGetPolicyByCN(QString)
00065     QString arg0;
00066     QDataStream arg( data, IO_ReadOnly );
00067     arg >> arg0;
00068     replyType = KSSLD_ftable[1][0]; 
00069     QDataStream _replyStream( replyData, IO_WriteOnly );
00070     _replyStream << cacheGetPolicyByCN(arg0 );
00071     } break;
00072     case 2: { // KSSLCertificateCache::KSSLCertificatePolicy cacheGetPolicyByCertificate(KSSLCertificate)
00073     KSSLCertificate arg0;
00074     QDataStream arg( data, IO_ReadOnly );
00075     arg >> arg0;
00076     replyType = KSSLD_ftable[2][0]; 
00077     QDataStream _replyStream( replyData, IO_WriteOnly );
00078     _replyStream << cacheGetPolicyByCertificate(arg0 );
00079     } break;
00080     case 3: { // bool cacheSeenCN(QString)
00081     QString arg0;
00082     QDataStream arg( data, IO_ReadOnly );
00083     arg >> arg0;
00084     replyType = KSSLD_ftable[3][0]; 
00085     QDataStream _replyStream( replyData, IO_WriteOnly );
00086     _replyStream << cacheSeenCN(arg0 );
00087     } break;
00088     case 4: { // bool cacheSeenCertificate(KSSLCertificate)
00089     KSSLCertificate arg0;
00090     QDataStream arg( data, IO_ReadOnly );
00091     arg >> arg0;
00092     replyType = KSSLD_ftable[4][0]; 
00093     QDataStream _replyStream( replyData, IO_WriteOnly );
00094     _replyStream << cacheSeenCertificate(arg0 );
00095     } break;
00096     case 5: { // bool cacheRemoveByCN(QString)
00097     QString arg0;
00098     QDataStream arg( data, IO_ReadOnly );
00099     arg >> arg0;
00100     replyType = KSSLD_ftable[5][0]; 
00101     QDataStream _replyStream( replyData, IO_WriteOnly );
00102     _replyStream << cacheRemoveByCN(arg0 );
00103     } break;
00104     case 6: { // bool cacheRemoveByCertificate(KSSLCertificate)
00105     KSSLCertificate arg0;
00106     QDataStream arg( data, IO_ReadOnly );
00107     arg >> arg0;
00108     replyType = KSSLD_ftable[6][0]; 
00109     QDataStream _replyStream( replyData, IO_WriteOnly );
00110     _replyStream << cacheRemoveByCertificate(arg0 );
00111     } break;
00112     case 7: { // bool cacheIsPermanent(KSSLCertificate)
00113     KSSLCertificate arg0;
00114     QDataStream arg( data, IO_ReadOnly );
00115     arg >> arg0;
00116     replyType = KSSLD_ftable[7][0]; 
00117     QDataStream _replyStream( replyData, IO_WriteOnly );
00118     _replyStream << cacheIsPermanent(arg0 );
00119     } break;
00120     case 8: { // void cacheReload()
00121     replyType = KSSLD_ftable[8][0]; 
00122     cacheReload( );
00123     } break;
00124     case 9: { // bool cacheModifyByCN(QString,KSSLCertificateCache::KSSLCertificatePolicy,bool,QDateTime)
00125     QString arg0;
00126     KSSLCertificateCache::KSSLCertificatePolicy arg1;
00127     bool arg2;
00128     QDateTime arg3;
00129     QDataStream arg( data, IO_ReadOnly );
00130     arg >> arg0;
00131     arg >> arg1;
00132     arg >> arg2;
00133     arg >> arg3;
00134     replyType = KSSLD_ftable[9][0]; 
00135     QDataStream _replyStream( replyData, IO_WriteOnly );
00136     _replyStream << cacheModifyByCN(arg0, arg1, arg2, arg3 );
00137     } break;
00138     case 10: { // bool cacheModifyByCertificate(KSSLCertificate,KSSLCertificateCache::KSSLCertificatePolicy,bool,QDateTime)
00139     KSSLCertificate arg0;
00140     KSSLCertificateCache::KSSLCertificatePolicy arg1;
00141     bool arg2;
00142     QDateTime arg3;
00143     QDataStream arg( data, IO_ReadOnly );
00144     arg >> arg0;
00145     arg >> arg1;
00146     arg >> arg2;
00147     arg >> arg3;
00148     replyType = KSSLD_ftable[10][0]; 
00149     QDataStream _replyStream( replyData, IO_WriteOnly );
00150     _replyStream << cacheModifyByCertificate(arg0, arg1, arg2, arg3 );
00151     } break;
00152     case 11: { // QStringList cacheGetHostList(KSSLCertificate)
00153     KSSLCertificate arg0;
00154     QDataStream arg( data, IO_ReadOnly );
00155     arg >> arg0;
00156     replyType = KSSLD_ftable[11][0]; 
00157     QDataStream _replyStream( replyData, IO_WriteOnly );
00158     _replyStream << cacheGetHostList(arg0 );
00159     } break;
00160     case 12: { // bool cacheAddHost(KSSLCertificate,QString)
00161     KSSLCertificate arg0;
00162     QString arg1;
00163     QDataStream arg( data, IO_ReadOnly );
00164     arg >> arg0;
00165     arg >> arg1;
00166     replyType = KSSLD_ftable[12][0]; 
00167     QDataStream _replyStream( replyData, IO_WriteOnly );
00168     _replyStream << cacheAddHost(arg0, arg1 );
00169     } break;
00170     case 13: { // bool cacheRemoveHost(KSSLCertificate,QString)
00171     KSSLCertificate arg0;
00172     QString arg1;
00173     QDataStream arg( data, IO_ReadOnly );
00174     arg >> arg0;
00175     arg >> arg1;
00176     replyType = KSSLD_ftable[13][0]; 
00177     QDataStream _replyStream( replyData, IO_WriteOnly );
00178     _replyStream << cacheRemoveHost(arg0, arg1 );
00179     } break;
00180     case 14: { // bool caRegenerate()
00181     replyType = KSSLD_ftable[14][0]; 
00182     QDataStream _replyStream( replyData, IO_WriteOnly );
00183     _replyStream << caRegenerate( );
00184     } break;
00185     case 15: { // QStringList caList()
00186     replyType = KSSLD_ftable[15][0]; 
00187     QDataStream _replyStream( replyData, IO_WriteOnly );
00188     _replyStream << caList( );
00189     } break;
00190     case 16: { // bool caUseForSSL(QString)
00191     QString arg0;
00192     QDataStream arg( data, IO_ReadOnly );
00193     arg >> arg0;
00194     replyType = KSSLD_ftable[16][0]; 
00195     QDataStream _replyStream( replyData, IO_WriteOnly );
00196     _replyStream << caUseForSSL(arg0 );
00197     } break;
00198     case 17: { // bool caUseForEmail(QString)
00199     QString arg0;
00200     QDataStream arg( data, IO_ReadOnly );
00201     arg >> arg0;
00202     replyType = KSSLD_ftable[17][0]; 
00203     QDataStream _replyStream( replyData, IO_WriteOnly );
00204     _replyStream << caUseForEmail(arg0 );
00205     } break;
00206     case 18: { // bool caUseForCode(QString)
00207     QString arg0;
00208     QDataStream arg( data, IO_ReadOnly );
00209     arg >> arg0;
00210     replyType = KSSLD_ftable[18][0]; 
00211     QDataStream _replyStream( replyData, IO_WriteOnly );
00212     _replyStream << caUseForCode(arg0 );
00213     } break;
00214     case 19: { // bool caAdd(QString,bool,bool,bool)
00215     QString arg0;
00216     bool arg1;
00217     bool arg2;
00218     bool arg3;
00219     QDataStream arg( data, IO_ReadOnly );
00220     arg >> arg0;
00221     arg >> arg1;
00222     arg >> arg2;
00223     arg >> arg3;
00224     replyType = KSSLD_ftable[19][0]; 
00225     QDataStream _replyStream( replyData, IO_WriteOnly );
00226     _replyStream << caAdd(arg0, arg1, arg2, arg3 );
00227     } break;
00228     case 20: { // bool caRemove(QString)
00229     QString arg0;
00230     QDataStream arg( data, IO_ReadOnly );
00231     arg >> arg0;
00232     replyType = KSSLD_ftable[20][0]; 
00233     QDataStream _replyStream( replyData, IO_WriteOnly );
00234     _replyStream << caRemove(arg0 );
00235     } break;
00236     case 21: { // QString caGetCert(QString)
00237     QString arg0;
00238     QDataStream arg( data, IO_ReadOnly );
00239     arg >> arg0;
00240     replyType = KSSLD_ftable[21][0]; 
00241     QDataStream _replyStream( replyData, IO_WriteOnly );
00242     _replyStream << caGetCert(arg0 );
00243     } break;
00244     case 22: { // bool caSetUse(QString,bool,bool,bool)
00245     QString arg0;
00246     bool arg1;
00247     bool arg2;
00248     bool arg3;
00249     QDataStream arg( data, IO_ReadOnly );
00250     arg >> arg0;
00251     arg >> arg1;
00252     arg >> arg2;
00253     arg >> arg3;
00254     replyType = KSSLD_ftable[22][0]; 
00255     QDataStream _replyStream( replyData, IO_WriteOnly );
00256     _replyStream << caSetUse(arg0, arg1, arg2, arg3 );
00257     } break;
00258     default: 
00259     return KDEDModule::process( fun, data, replyType, replyData );
00260     }
00261     return TRUE;
00262 }
00263 
00264 QCStringList KSSLD::interfaces()
00265 {
00266     QCStringList ifaces = KDEDModule::interfaces();
00267     ifaces += "KSSLD";
00268     return ifaces;
00269 }
00270 
00271 QCStringList KSSLD::functions()
00272 {
00273     QCStringList funcs = KDEDModule::functions();
00274     for ( int i = 0; KSSLD_ftable[i][2]; i++ ) {
00275     QCString func = KSSLD_ftable[i][0];
00276     func += ' ';
00277     func += KSSLD_ftable[i][2];
00278     funcs << func;
00279     }
00280     return funcs;
00281 }
00282 
00283 
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sun Feb 27 22:15:32 2005 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001