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 = 37; 00016 static const char* const KSSLD_ftable[36][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", "cacheRemoveBySubject(QString)", "cacheRemoveBySubject(QString subject)" }, 00024 { "bool", "cacheRemoveByCertificate(KSSLCertificate)", "cacheRemoveByCertificate(KSSLCertificate cert)" }, 00025 { "bool", "cacheIsPermanent(KSSLCertificate)", "cacheIsPermanent(KSSLCertificate cert)" }, 00026 { "void", "cacheReload()", "cacheReload()" }, 00027 { "bool", "cacheModifyByCN(QString,KSSLCertificateCache::KSSLCertificatePolicy,bool,QDateTime)", "cacheModifyByCN(QString cn,KSSLCertificateCache::KSSLCertificatePolicy policy,bool permanent,QDateTime expires)" }, 00028 { "bool", "cacheModifyByCertificate(KSSLCertificate,KSSLCertificateCache::KSSLCertificatePolicy,bool,QDateTime)", "cacheModifyByCertificate(KSSLCertificate cert,KSSLCertificateCache::KSSLCertificatePolicy policy,bool permanent,QDateTime expires)" }, 00029 { "QStringList", "cacheGetHostList(KSSLCertificate)", "cacheGetHostList(KSSLCertificate cert)" }, 00030 { "bool", "cacheAddHost(KSSLCertificate,QString)", "cacheAddHost(KSSLCertificate cert,QString host)" }, 00031 { "bool", "cacheRemoveHost(KSSLCertificate,QString)", "cacheRemoveHost(KSSLCertificate cert,QString host)" }, 00032 { "void", "caVerifyUpdate()", "caVerifyUpdate()" }, 00033 { "bool", "caRegenerate()", "caRegenerate()" }, 00034 { "QStringList", "caList()", "caList()" }, 00035 { "bool", "caUseForSSL(QString)", "caUseForSSL(QString subject)" }, 00036 { "bool", "caUseForEmail(QString)", "caUseForEmail(QString subject)" }, 00037 { "bool", "caUseForCode(QString)", "caUseForCode(QString subject)" }, 00038 { "bool", "caAdd(QString,bool,bool,bool)", "caAdd(QString certificate,bool ssl,bool email,bool code)" }, 00039 { "bool", "caAddFromFile(QString,bool,bool,bool)", "caAddFromFile(QString filename,bool ssl,bool email,bool code)" }, 00040 { "bool", "caRemove(QString)", "caRemove(QString subject)" }, 00041 { "bool", "caRemoveFromFile(QString)", "caRemoveFromFile(QString filename)" }, 00042 { "QString", "caGetCert(QString)", "caGetCert(QString subject)" }, 00043 { "bool", "caSetUse(QString,bool,bool,bool)", "caSetUse(QString subject,bool ssl,bool email,bool code)" }, 00044 { "QStringList", "getKDEKeyByEmail(QString)", "getKDEKeyByEmail(QString email)" }, 00045 { "KSSLCertificate", "getCertByMD5Digest(QString)", "getCertByMD5Digest(QString key)" }, 00046 { "QStringList", "getHomeCertificateList()", "getHomeCertificateList()" }, 00047 { "bool", "addHomeCertificateFile(QString,QString,bool)", "addHomeCertificateFile(QString filename,QString password,bool storePass)" }, 00048 { "bool", "addHomeCertificatePKCS12(QString,QString)", "addHomeCertificatePKCS12(QString base64cert,QString passToStore)" }, 00049 { "bool", "deleteHomeCertificateByFile(QString,QString)", "deleteHomeCertificateByFile(QString filename,QString password)" }, 00050 { "bool", "deleteHomeCertificateByPKCS12(QString,QString)", "deleteHomeCertificateByPKCS12(QString base64cert,QString password)" }, 00051 { "bool", "deleteHomeCertificateByName(QString)", "deleteHomeCertificateByName(QString name)" }, 00052 { 0, 0, 0 } 00053 }; 00054 static const int KSSLD_ftable_hiddens[35] = { 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 0, 00089 0, 00090 }; 00091 00092 bool KSSLD::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData) 00093 { 00094 static QAsciiDict<int>* fdict = 0; 00095 if ( !fdict ) { 00096 fdict = new QAsciiDict<int>( KSSLD_fhash, true, false ); 00097 for ( int i = 0; KSSLD_ftable[i][1]; i++ ) 00098 fdict->insert( KSSLD_ftable[i][1], new int( i ) ); 00099 } 00100 int* fp = fdict->find( fun ); 00101 switch ( fp?*fp:-1) { 00102 case 0: { // void cacheAddCertificate(KSSLCertificate,KSSLCertificateCache::KSSLCertificatePolicy,bool) 00103 KSSLCertificate arg0; 00104 KSSLCertificateCache::KSSLCertificatePolicy arg1; 00105 bool arg2; 00106 QDataStream arg( data, IO_ReadOnly ); 00107 arg >> arg0; 00108 arg >> arg1; 00109 arg >> arg2; 00110 replyType = KSSLD_ftable[0][0]; 00111 cacheAddCertificate(arg0, arg1, arg2 ); 00112 } break; 00113 case 1: { // KSSLCertificateCache::KSSLCertificatePolicy cacheGetPolicyByCN(QString) 00114 QString arg0; 00115 QDataStream arg( data, IO_ReadOnly ); 00116 arg >> arg0; 00117 replyType = KSSLD_ftable[1][0]; 00118 QDataStream _replyStream( replyData, IO_WriteOnly ); 00119 _replyStream << cacheGetPolicyByCN(arg0 ); 00120 } break; 00121 case 2: { // KSSLCertificateCache::KSSLCertificatePolicy cacheGetPolicyByCertificate(KSSLCertificate) 00122 KSSLCertificate arg0; 00123 QDataStream arg( data, IO_ReadOnly ); 00124 arg >> arg0; 00125 replyType = KSSLD_ftable[2][0]; 00126 QDataStream _replyStream( replyData, IO_WriteOnly ); 00127 _replyStream << cacheGetPolicyByCertificate(arg0 ); 00128 } break; 00129 case 3: { // bool cacheSeenCN(QString) 00130 QString arg0; 00131 QDataStream arg( data, IO_ReadOnly ); 00132 arg >> arg0; 00133 replyType = KSSLD_ftable[3][0]; 00134 QDataStream _replyStream( replyData, IO_WriteOnly ); 00135 _replyStream << cacheSeenCN(arg0 ); 00136 } break; 00137 case 4: { // bool cacheSeenCertificate(KSSLCertificate) 00138 KSSLCertificate arg0; 00139 QDataStream arg( data, IO_ReadOnly ); 00140 arg >> arg0; 00141 replyType = KSSLD_ftable[4][0]; 00142 QDataStream _replyStream( replyData, IO_WriteOnly ); 00143 _replyStream << cacheSeenCertificate(arg0 ); 00144 } break; 00145 case 5: { // bool cacheRemoveByCN(QString) 00146 QString arg0; 00147 QDataStream arg( data, IO_ReadOnly ); 00148 arg >> arg0; 00149 replyType = KSSLD_ftable[5][0]; 00150 QDataStream _replyStream( replyData, IO_WriteOnly ); 00151 _replyStream << cacheRemoveByCN(arg0 ); 00152 } break; 00153 case 6: { // bool cacheRemoveBySubject(QString) 00154 QString arg0; 00155 QDataStream arg( data, IO_ReadOnly ); 00156 arg >> arg0; 00157 replyType = KSSLD_ftable[6][0]; 00158 QDataStream _replyStream( replyData, IO_WriteOnly ); 00159 _replyStream << cacheRemoveBySubject(arg0 ); 00160 } break; 00161 case 7: { // bool cacheRemoveByCertificate(KSSLCertificate) 00162 KSSLCertificate arg0; 00163 QDataStream arg( data, IO_ReadOnly ); 00164 arg >> arg0; 00165 replyType = KSSLD_ftable[7][0]; 00166 QDataStream _replyStream( replyData, IO_WriteOnly ); 00167 _replyStream << cacheRemoveByCertificate(arg0 ); 00168 } break; 00169 case 8: { // bool cacheIsPermanent(KSSLCertificate) 00170 KSSLCertificate arg0; 00171 QDataStream arg( data, IO_ReadOnly ); 00172 arg >> arg0; 00173 replyType = KSSLD_ftable[8][0]; 00174 QDataStream _replyStream( replyData, IO_WriteOnly ); 00175 _replyStream << cacheIsPermanent(arg0 ); 00176 } break; 00177 case 9: { // void cacheReload() 00178 replyType = KSSLD_ftable[9][0]; 00179 cacheReload( ); 00180 } break; 00181 case 10: { // bool cacheModifyByCN(QString,KSSLCertificateCache::KSSLCertificatePolicy,bool,QDateTime) 00182 QString arg0; 00183 KSSLCertificateCache::KSSLCertificatePolicy arg1; 00184 bool arg2; 00185 QDateTime arg3; 00186 QDataStream arg( data, IO_ReadOnly ); 00187 arg >> arg0; 00188 arg >> arg1; 00189 arg >> arg2; 00190 arg >> arg3; 00191 replyType = KSSLD_ftable[10][0]; 00192 QDataStream _replyStream( replyData, IO_WriteOnly ); 00193 _replyStream << cacheModifyByCN(arg0, arg1, arg2, arg3 ); 00194 } break; 00195 case 11: { // bool cacheModifyByCertificate(KSSLCertificate,KSSLCertificateCache::KSSLCertificatePolicy,bool,QDateTime) 00196 KSSLCertificate arg0; 00197 KSSLCertificateCache::KSSLCertificatePolicy arg1; 00198 bool arg2; 00199 QDateTime arg3; 00200 QDataStream arg( data, IO_ReadOnly ); 00201 arg >> arg0; 00202 arg >> arg1; 00203 arg >> arg2; 00204 arg >> arg3; 00205 replyType = KSSLD_ftable[11][0]; 00206 QDataStream _replyStream( replyData, IO_WriteOnly ); 00207 _replyStream << cacheModifyByCertificate(arg0, arg1, arg2, arg3 ); 00208 } break; 00209 case 12: { // QStringList cacheGetHostList(KSSLCertificate) 00210 KSSLCertificate arg0; 00211 QDataStream arg( data, IO_ReadOnly ); 00212 arg >> arg0; 00213 replyType = KSSLD_ftable[12][0]; 00214 QDataStream _replyStream( replyData, IO_WriteOnly ); 00215 _replyStream << cacheGetHostList(arg0 ); 00216 } break; 00217 case 13: { // bool cacheAddHost(KSSLCertificate,QString) 00218 KSSLCertificate arg0; 00219 QString arg1; 00220 QDataStream arg( data, IO_ReadOnly ); 00221 arg >> arg0; 00222 arg >> arg1; 00223 replyType = KSSLD_ftable[13][0]; 00224 QDataStream _replyStream( replyData, IO_WriteOnly ); 00225 _replyStream << cacheAddHost(arg0, arg1 ); 00226 } break; 00227 case 14: { // bool cacheRemoveHost(KSSLCertificate,QString) 00228 KSSLCertificate arg0; 00229 QString arg1; 00230 QDataStream arg( data, IO_ReadOnly ); 00231 arg >> arg0; 00232 arg >> arg1; 00233 replyType = KSSLD_ftable[14][0]; 00234 QDataStream _replyStream( replyData, IO_WriteOnly ); 00235 _replyStream << cacheRemoveHost(arg0, arg1 ); 00236 } break; 00237 case 15: { // void caVerifyUpdate() 00238 replyType = KSSLD_ftable[15][0]; 00239 caVerifyUpdate( ); 00240 } break; 00241 case 16: { // bool caRegenerate() 00242 replyType = KSSLD_ftable[16][0]; 00243 QDataStream _replyStream( replyData, IO_WriteOnly ); 00244 _replyStream << caRegenerate( ); 00245 } break; 00246 case 17: { // QStringList caList() 00247 replyType = KSSLD_ftable[17][0]; 00248 QDataStream _replyStream( replyData, IO_WriteOnly ); 00249 _replyStream << caList( ); 00250 } break; 00251 case 18: { // bool caUseForSSL(QString) 00252 QString arg0; 00253 QDataStream arg( data, IO_ReadOnly ); 00254 arg >> arg0; 00255 replyType = KSSLD_ftable[18][0]; 00256 QDataStream _replyStream( replyData, IO_WriteOnly ); 00257 _replyStream << caUseForSSL(arg0 ); 00258 } break; 00259 case 19: { // bool caUseForEmail(QString) 00260 QString arg0; 00261 QDataStream arg( data, IO_ReadOnly ); 00262 arg >> arg0; 00263 replyType = KSSLD_ftable[19][0]; 00264 QDataStream _replyStream( replyData, IO_WriteOnly ); 00265 _replyStream << caUseForEmail(arg0 ); 00266 } break; 00267 case 20: { // bool caUseForCode(QString) 00268 QString arg0; 00269 QDataStream arg( data, IO_ReadOnly ); 00270 arg >> arg0; 00271 replyType = KSSLD_ftable[20][0]; 00272 QDataStream _replyStream( replyData, IO_WriteOnly ); 00273 _replyStream << caUseForCode(arg0 ); 00274 } break; 00275 case 21: { // bool caAdd(QString,bool,bool,bool) 00276 QString arg0; 00277 bool arg1; 00278 bool arg2; 00279 bool arg3; 00280 QDataStream arg( data, IO_ReadOnly ); 00281 arg >> arg0; 00282 arg >> arg1; 00283 arg >> arg2; 00284 arg >> arg3; 00285 replyType = KSSLD_ftable[21][0]; 00286 QDataStream _replyStream( replyData, IO_WriteOnly ); 00287 _replyStream << caAdd(arg0, arg1, arg2, arg3 ); 00288 } break; 00289 case 22: { // bool caAddFromFile(QString,bool,bool,bool) 00290 QString arg0; 00291 bool arg1; 00292 bool arg2; 00293 bool arg3; 00294 QDataStream arg( data, IO_ReadOnly ); 00295 arg >> arg0; 00296 arg >> arg1; 00297 arg >> arg2; 00298 arg >> arg3; 00299 replyType = KSSLD_ftable[22][0]; 00300 QDataStream _replyStream( replyData, IO_WriteOnly ); 00301 _replyStream << caAddFromFile(arg0, arg1, arg2, arg3 ); 00302 } break; 00303 case 23: { // bool caRemove(QString) 00304 QString arg0; 00305 QDataStream arg( data, IO_ReadOnly ); 00306 arg >> arg0; 00307 replyType = KSSLD_ftable[23][0]; 00308 QDataStream _replyStream( replyData, IO_WriteOnly ); 00309 _replyStream << caRemove(arg0 ); 00310 } break; 00311 case 24: { // bool caRemoveFromFile(QString) 00312 QString arg0; 00313 QDataStream arg( data, IO_ReadOnly ); 00314 arg >> arg0; 00315 replyType = KSSLD_ftable[24][0]; 00316 QDataStream _replyStream( replyData, IO_WriteOnly ); 00317 _replyStream << caRemoveFromFile(arg0 ); 00318 } break; 00319 case 25: { // QString caGetCert(QString) 00320 QString arg0; 00321 QDataStream arg( data, IO_ReadOnly ); 00322 arg >> arg0; 00323 replyType = KSSLD_ftable[25][0]; 00324 QDataStream _replyStream( replyData, IO_WriteOnly ); 00325 _replyStream << caGetCert(arg0 ); 00326 } break; 00327 case 26: { // bool caSetUse(QString,bool,bool,bool) 00328 QString arg0; 00329 bool arg1; 00330 bool arg2; 00331 bool arg3; 00332 QDataStream arg( data, IO_ReadOnly ); 00333 arg >> arg0; 00334 arg >> arg1; 00335 arg >> arg2; 00336 arg >> arg3; 00337 replyType = KSSLD_ftable[26][0]; 00338 QDataStream _replyStream( replyData, IO_WriteOnly ); 00339 _replyStream << caSetUse(arg0, arg1, arg2, arg3 ); 00340 } break; 00341 case 27: { // QStringList getKDEKeyByEmail(QString) 00342 QString arg0; 00343 QDataStream arg( data, IO_ReadOnly ); 00344 arg >> arg0; 00345 replyType = KSSLD_ftable[27][0]; 00346 QDataStream _replyStream( replyData, IO_WriteOnly ); 00347 _replyStream << getKDEKeyByEmail(arg0 ); 00348 } break; 00349 case 28: { // KSSLCertificate getCertByMD5Digest(QString) 00350 QString arg0; 00351 QDataStream arg( data, IO_ReadOnly ); 00352 arg >> arg0; 00353 replyType = KSSLD_ftable[28][0]; 00354 QDataStream _replyStream( replyData, IO_WriteOnly ); 00355 _replyStream << getCertByMD5Digest(arg0 ); 00356 } break; 00357 case 29: { // QStringList getHomeCertificateList() 00358 replyType = KSSLD_ftable[29][0]; 00359 QDataStream _replyStream( replyData, IO_WriteOnly ); 00360 _replyStream << getHomeCertificateList( ); 00361 } break; 00362 case 30: { // bool addHomeCertificateFile(QString,QString,bool) 00363 QString arg0; 00364 QString arg1; 00365 bool arg2; 00366 QDataStream arg( data, IO_ReadOnly ); 00367 arg >> arg0; 00368 arg >> arg1; 00369 arg >> arg2; 00370 replyType = KSSLD_ftable[30][0]; 00371 QDataStream _replyStream( replyData, IO_WriteOnly ); 00372 _replyStream << addHomeCertificateFile(arg0, arg1, arg2 ); 00373 } break; 00374 case 31: { // bool addHomeCertificatePKCS12(QString,QString) 00375 QString arg0; 00376 QString arg1; 00377 QDataStream arg( data, IO_ReadOnly ); 00378 arg >> arg0; 00379 arg >> arg1; 00380 replyType = KSSLD_ftable[31][0]; 00381 QDataStream _replyStream( replyData, IO_WriteOnly ); 00382 _replyStream << addHomeCertificatePKCS12(arg0, arg1 ); 00383 } break; 00384 case 32: { // bool deleteHomeCertificateByFile(QString,QString) 00385 QString arg0; 00386 QString arg1; 00387 QDataStream arg( data, IO_ReadOnly ); 00388 arg >> arg0; 00389 arg >> arg1; 00390 replyType = KSSLD_ftable[32][0]; 00391 QDataStream _replyStream( replyData, IO_WriteOnly ); 00392 _replyStream << deleteHomeCertificateByFile(arg0, arg1 ); 00393 } break; 00394 case 33: { // bool deleteHomeCertificateByPKCS12(QString,QString) 00395 QString arg0; 00396 QString arg1; 00397 QDataStream arg( data, IO_ReadOnly ); 00398 arg >> arg0; 00399 arg >> arg1; 00400 replyType = KSSLD_ftable[33][0]; 00401 QDataStream _replyStream( replyData, IO_WriteOnly ); 00402 _replyStream << deleteHomeCertificateByPKCS12(arg0, arg1 ); 00403 } break; 00404 case 34: { // bool deleteHomeCertificateByName(QString) 00405 QString arg0; 00406 QDataStream arg( data, IO_ReadOnly ); 00407 arg >> arg0; 00408 replyType = KSSLD_ftable[34][0]; 00409 QDataStream _replyStream( replyData, IO_WriteOnly ); 00410 _replyStream << deleteHomeCertificateByName(arg0 ); 00411 } break; 00412 default: 00413 return KDEDModule::process( fun, data, replyType, replyData ); 00414 } 00415 return true; 00416 } 00417 00418 QCStringList KSSLD::interfaces() 00419 { 00420 QCStringList ifaces = KDEDModule::interfaces(); 00421 ifaces += "KSSLD"; 00422 return ifaces; 00423 } 00424 00425 QCStringList KSSLD::functions() 00426 { 00427 QCStringList funcs = KDEDModule::functions(); 00428 for ( int i = 0; KSSLD_ftable[i][2]; i++ ) { 00429 if (KSSLD_ftable_hiddens[i]) 00430 continue; 00431 QCString func = KSSLD_ftable[i][0]; 00432 func += ' '; 00433 func += KSSLD_ftable[i][2]; 00434 funcs << func; 00435 } 00436 return funcs; 00437 } 00438 00439
KDE Logo
This file is part of the documentation for kio Library Version 3.3.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sun Oct 17 11:29:29 2004 by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2003