/****************************************************************************
**
** DCOP Skeleton generated by dcopidl2cpp from kssld.kidl
**
** WARNING! All changes made in this file will be lost!
**
*****************************************************************************/

#include "/usr/src/ports/kdelibs3/kdelibs3-3.5.10-11.i686/src/kdelibs-3.5.10/kio/misc/kssld/kssld.h"

#include <kdatastream.h>
#include <qasciidict.h>


static const int KSSLD_fhash = 37;
static const char* const KSSLD_ftable[36][3] = {
    { "void", "cacheAddCertificate(KSSLCertificate,KSSLCertificateCache::KSSLCertificatePolicy,bool)", "cacheAddCertificate(KSSLCertificate cert,KSSLCertificateCache::KSSLCertificatePolicy policy,bool permanent)" },
    { "KSSLCertificateCache::KSSLCertificatePolicy", "cacheGetPolicyByCN(QString)", "cacheGetPolicyByCN(QString cn)" },
    { "KSSLCertificateCache::KSSLCertificatePolicy", "cacheGetPolicyByCertificate(KSSLCertificate)", "cacheGetPolicyByCertificate(KSSLCertificate cert)" },
    { "bool", "cacheSeenCN(QString)", "cacheSeenCN(QString cn)" },
    { "bool", "cacheSeenCertificate(KSSLCertificate)", "cacheSeenCertificate(KSSLCertificate cert)" },
    { "bool", "cacheRemoveByCN(QString)", "cacheRemoveByCN(QString cn)" },
    { "bool", "cacheRemoveBySubject(QString)", "cacheRemoveBySubject(QString subject)" },
    { "bool", "cacheRemoveByCertificate(KSSLCertificate)", "cacheRemoveByCertificate(KSSLCertificate cert)" },
    { "bool", "cacheIsPermanent(KSSLCertificate)", "cacheIsPermanent(KSSLCertificate cert)" },
    { "void", "cacheReload()", "cacheReload()" },
    { "bool", "cacheModifyByCN(QString,KSSLCertificateCache::KSSLCertificatePolicy,bool,QDateTime)", "cacheModifyByCN(QString cn,KSSLCertificateCache::KSSLCertificatePolicy policy,bool permanent,QDateTime expires)" },
    { "bool", "cacheModifyByCertificate(KSSLCertificate,KSSLCertificateCache::KSSLCertificatePolicy,bool,QDateTime)", "cacheModifyByCertificate(KSSLCertificate cert,KSSLCertificateCache::KSSLCertificatePolicy policy,bool permanent,QDateTime expires)" },
    { "QStringList", "cacheGetHostList(KSSLCertificate)", "cacheGetHostList(KSSLCertificate cert)" },
    { "bool", "cacheAddHost(KSSLCertificate,QString)", "cacheAddHost(KSSLCertificate cert,QString host)" },
    { "bool", "cacheRemoveHost(KSSLCertificate,QString)", "cacheRemoveHost(KSSLCertificate cert,QString host)" },
    { "void", "caVerifyUpdate()", "caVerifyUpdate()" },
    { "bool", "caRegenerate()", "caRegenerate()" },
    { "QStringList", "caList()", "caList()" },
    { "bool", "caUseForSSL(QString)", "caUseForSSL(QString subject)" },
    { "bool", "caUseForEmail(QString)", "caUseForEmail(QString subject)" },
    { "bool", "caUseForCode(QString)", "caUseForCode(QString subject)" },
    { "bool", "caAdd(QString,bool,bool,bool)", "caAdd(QString certificate,bool ssl,bool email,bool code)" },
    { "bool", "caAddFromFile(QString,bool,bool,bool)", "caAddFromFile(QString filename,bool ssl,bool email,bool code)" },
    { "bool", "caRemove(QString)", "caRemove(QString subject)" },
    { "bool", "caRemoveFromFile(QString)", "caRemoveFromFile(QString filename)" },
    { "QString", "caGetCert(QString)", "caGetCert(QString subject)" },
    { "bool", "caSetUse(QString,bool,bool,bool)", "caSetUse(QString subject,bool ssl,bool email,bool code)" },
    { "QStringList", "getKDEKeyByEmail(QString)", "getKDEKeyByEmail(QString email)" },
    { "KSSLCertificate", "getCertByMD5Digest(QString)", "getCertByMD5Digest(QString key)" },
    { "QStringList", "getHomeCertificateList()", "getHomeCertificateList()" },
    { "bool", "addHomeCertificateFile(QString,QString,bool)", "addHomeCertificateFile(QString filename,QString password,bool storePass)" },
    { "bool", "addHomeCertificatePKCS12(QString,QString)", "addHomeCertificatePKCS12(QString base64cert,QString passToStore)" },
    { "bool", "deleteHomeCertificateByFile(QString,QString)", "deleteHomeCertificateByFile(QString filename,QString password)" },
    { "bool", "deleteHomeCertificateByPKCS12(QString,QString)", "deleteHomeCertificateByPKCS12(QString base64cert,QString password)" },
    { "bool", "deleteHomeCertificateByName(QString)", "deleteHomeCertificateByName(QString name)" },
    { 0, 0, 0 }
};
static const int KSSLD_ftable_hiddens[35] = {
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
};

bool KSSLD::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
{
    static QAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new QAsciiDict<int>( KSSLD_fhash, true, false );
	for ( int i = 0; KSSLD_ftable[i][1]; i++ )
	    fdict->insert( KSSLD_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // void cacheAddCertificate(KSSLCertificate,KSSLCertificateCache::KSSLCertificatePolicy,bool)
	KSSLCertificate arg0;
	KSSLCertificateCache::KSSLCertificatePolicy arg1;
	bool arg2;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	if (arg.atEnd()) return false;
	arg >> arg2;
	replyType = KSSLD_ftable[0][0]; 
	cacheAddCertificate(arg0, arg1, arg2 );
    } break;
    case 1: { // KSSLCertificateCache::KSSLCertificatePolicy cacheGetPolicyByCN(QString)
	QString arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KSSLD_ftable[1][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << cacheGetPolicyByCN(arg0 );
    } break;
    case 2: { // KSSLCertificateCache::KSSLCertificatePolicy cacheGetPolicyByCertificate(KSSLCertificate)
	KSSLCertificate arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KSSLD_ftable[2][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << cacheGetPolicyByCertificate(arg0 );
    } break;
    case 3: { // bool cacheSeenCN(QString)
	QString arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KSSLD_ftable[3][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << cacheSeenCN(arg0 );
    } break;
    case 4: { // bool cacheSeenCertificate(KSSLCertificate)
	KSSLCertificate arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KSSLD_ftable[4][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << cacheSeenCertificate(arg0 );
    } break;
    case 5: { // bool cacheRemoveByCN(QString)
	QString arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KSSLD_ftable[5][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << cacheRemoveByCN(arg0 );
    } break;
    case 6: { // bool cacheRemoveBySubject(QString)
	QString arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KSSLD_ftable[6][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << cacheRemoveBySubject(arg0 );
    } break;
    case 7: { // bool cacheRemoveByCertificate(KSSLCertificate)
	KSSLCertificate arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KSSLD_ftable[7][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << cacheRemoveByCertificate(arg0 );
    } break;
    case 8: { // bool cacheIsPermanent(KSSLCertificate)
	KSSLCertificate arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KSSLD_ftable[8][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << cacheIsPermanent(arg0 );
    } break;
    case 9: { // void cacheReload()
	replyType = KSSLD_ftable[9][0]; 
	cacheReload( );
    } break;
    case 10: { // bool cacheModifyByCN(QString,KSSLCertificateCache::KSSLCertificatePolicy,bool,QDateTime)
	QString arg0;
	KSSLCertificateCache::KSSLCertificatePolicy arg1;
	bool arg2;
	QDateTime arg3;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	if (arg.atEnd()) return false;
	arg >> arg2;
	if (arg.atEnd()) return false;
	arg >> arg3;
	replyType = KSSLD_ftable[10][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << cacheModifyByCN(arg0, arg1, arg2, arg3 );
    } break;
    case 11: { // bool cacheModifyByCertificate(KSSLCertificate,KSSLCertificateCache::KSSLCertificatePolicy,bool,QDateTime)
	KSSLCertificate arg0;
	KSSLCertificateCache::KSSLCertificatePolicy arg1;
	bool arg2;
	QDateTime arg3;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	if (arg.atEnd()) return false;
	arg >> arg2;
	if (arg.atEnd()) return false;
	arg >> arg3;
	replyType = KSSLD_ftable[11][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << cacheModifyByCertificate(arg0, arg1, arg2, arg3 );
    } break;
    case 12: { // QStringList cacheGetHostList(KSSLCertificate)
	KSSLCertificate arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KSSLD_ftable[12][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << cacheGetHostList(arg0 );
    } break;
    case 13: { // bool cacheAddHost(KSSLCertificate,QString)
	KSSLCertificate arg0;
	QString arg1;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KSSLD_ftable[13][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << cacheAddHost(arg0, arg1 );
    } break;
    case 14: { // bool cacheRemoveHost(KSSLCertificate,QString)
	KSSLCertificate arg0;
	QString arg1;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KSSLD_ftable[14][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << cacheRemoveHost(arg0, arg1 );
    } break;
    case 15: { // void caVerifyUpdate()
	replyType = KSSLD_ftable[15][0]; 
	caVerifyUpdate( );
    } break;
    case 16: { // bool caRegenerate()
	replyType = KSSLD_ftable[16][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << caRegenerate( );
    } break;
    case 17: { // QStringList caList()
	replyType = KSSLD_ftable[17][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << caList( );
    } break;
    case 18: { // bool caUseForSSL(QString)
	QString arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KSSLD_ftable[18][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << caUseForSSL(arg0 );
    } break;
    case 19: { // bool caUseForEmail(QString)
	QString arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KSSLD_ftable[19][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << caUseForEmail(arg0 );
    } break;
    case 20: { // bool caUseForCode(QString)
	QString arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KSSLD_ftable[20][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << caUseForCode(arg0 );
    } break;
    case 21: { // bool caAdd(QString,bool,bool,bool)
	QString arg0;
	bool arg1;
	bool arg2;
	bool arg3;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	if (arg.atEnd()) return false;
	arg >> arg2;
	if (arg.atEnd()) return false;
	arg >> arg3;
	replyType = KSSLD_ftable[21][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << caAdd(arg0, arg1, arg2, arg3 );
    } break;
    case 22: { // bool caAddFromFile(QString,bool,bool,bool)
	QString arg0;
	bool arg1;
	bool arg2;
	bool arg3;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	if (arg.atEnd()) return false;
	arg >> arg2;
	if (arg.atEnd()) return false;
	arg >> arg3;
	replyType = KSSLD_ftable[22][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << caAddFromFile(arg0, arg1, arg2, arg3 );
    } break;
    case 23: { // bool caRemove(QString)
	QString arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KSSLD_ftable[23][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << caRemove(arg0 );
    } break;
    case 24: { // bool caRemoveFromFile(QString)
	QString arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KSSLD_ftable[24][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << caRemoveFromFile(arg0 );
    } break;
    case 25: { // QString caGetCert(QString)
	QString arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KSSLD_ftable[25][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << caGetCert(arg0 );
    } break;
    case 26: { // bool caSetUse(QString,bool,bool,bool)
	QString arg0;
	bool arg1;
	bool arg2;
	bool arg3;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	if (arg.atEnd()) return false;
	arg >> arg2;
	if (arg.atEnd()) return false;
	arg >> arg3;
	replyType = KSSLD_ftable[26][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << caSetUse(arg0, arg1, arg2, arg3 );
    } break;
    case 27: { // QStringList getKDEKeyByEmail(QString)
	QString arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KSSLD_ftable[27][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << getKDEKeyByEmail(arg0 );
    } break;
    case 28: { // KSSLCertificate getCertByMD5Digest(QString)
	QString arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KSSLD_ftable[28][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << getCertByMD5Digest(arg0 );
    } break;
    case 29: { // QStringList getHomeCertificateList()
	replyType = KSSLD_ftable[29][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << getHomeCertificateList( );
    } break;
    case 30: { // bool addHomeCertificateFile(QString,QString,bool)
	QString arg0;
	QString arg1;
	bool arg2;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	if (arg.atEnd()) return false;
	arg >> arg2;
	replyType = KSSLD_ftable[30][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << addHomeCertificateFile(arg0, arg1, arg2 );
    } break;
    case 31: { // bool addHomeCertificatePKCS12(QString,QString)
	QString arg0;
	QString arg1;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KSSLD_ftable[31][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << addHomeCertificatePKCS12(arg0, arg1 );
    } break;
    case 32: { // bool deleteHomeCertificateByFile(QString,QString)
	QString arg0;
	QString arg1;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KSSLD_ftable[32][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << deleteHomeCertificateByFile(arg0, arg1 );
    } break;
    case 33: { // bool deleteHomeCertificateByPKCS12(QString,QString)
	QString arg0;
	QString arg1;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KSSLD_ftable[33][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << deleteHomeCertificateByPKCS12(arg0, arg1 );
    } break;
    case 34: { // bool deleteHomeCertificateByName(QString)
	QString arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KSSLD_ftable[34][0]; 
	QDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << deleteHomeCertificateByName(arg0 );
    } break;
    default: 
	return KDEDModule::process( fun, data, replyType, replyData );
    }
    return true;
}

QCStringList KSSLD::interfaces()
{
    QCStringList ifaces = KDEDModule::interfaces();
    ifaces += "KSSLD";
    return ifaces;
}

QCStringList KSSLD::functions()
{
    QCStringList funcs = KDEDModule::functions();
    for ( int i = 0; KSSLD_ftable[i][2]; i++ ) {
	if (KSSLD_ftable_hiddens[i])
	    continue;
	QCString func = KSSLD_ftable[i][0];
	func += ' ';
	func += KSSLD_ftable[i][2];
	funcs << func;
    }
    return funcs;
}


