kio Library API Documentation

kpasswdserver_skel.cpp

00001 /****************************************************************************
00002 **
00003 ** DCOP Skeleton created 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[4][3] = {
00015     { "KIO::AuthInfo", "checkAuthInfo(KIO::AuthInfo,long int)", "checkAuthInfo(KIO::AuthInfo,long int)" },
00016     { "KIO::AuthInfo", "queryAuthInfo(KIO::AuthInfo,QString,long int,long int)", "queryAuthInfo(KIO::AuthInfo,QString,long int,long int)" },
00017     { "void", "addAuthInfo(KIO::AuthInfo,long int)", "addAuthInfo(KIO::AuthInfo,long int)" },
00018     { 0, 0, 0 }
00019 };
00020 
00021 bool KPasswdServer::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
00022 {
00023     if ( fun == KPasswdServer_ftable[0][1] ) { // KIO::AuthInfo checkAuthInfo(KIO::AuthInfo,long int)
00024     KIO::AuthInfo arg0;
00025     long int arg1;
00026     QDataStream arg( data, IO_ReadOnly );
00027     arg >> arg0;
00028     arg >> arg1;
00029     replyType = KPasswdServer_ftable[0][0]; 
00030     QDataStream _replyStream( replyData, IO_WriteOnly );
00031     _replyStream << checkAuthInfo(arg0, arg1 );
00032     } else if ( fun == KPasswdServer_ftable[1][1] ) { // KIO::AuthInfo queryAuthInfo(KIO::AuthInfo,QString,long int,long int)
00033     KIO::AuthInfo arg0;
00034     QString arg1;
00035     long int arg2;
00036     long int arg3;
00037     QDataStream arg( data, IO_ReadOnly );
00038     arg >> arg0;
00039     arg >> arg1;
00040     arg >> arg2;
00041     arg >> arg3;
00042     replyType = KPasswdServer_ftable[1][0]; 
00043     QDataStream _replyStream( replyData, IO_WriteOnly );
00044     _replyStream << queryAuthInfo(arg0, arg1, arg2, arg3 );
00045     } else if ( fun == KPasswdServer_ftable[2][1] ) { // void addAuthInfo(KIO::AuthInfo,long int)
00046     KIO::AuthInfo arg0;
00047     long int arg1;
00048     QDataStream arg( data, IO_ReadOnly );
00049     arg >> arg0;
00050     arg >> arg1;
00051     replyType = KPasswdServer_ftable[2][0]; 
00052     addAuthInfo(arg0, arg1 );
00053     } else {
00054     return KDEDModule::process( fun, data, replyType, replyData );
00055     }
00056     return TRUE;
00057 }
00058 
00059 QCStringList KPasswdServer::interfaces()
00060 {
00061     QCStringList ifaces = KDEDModule::interfaces();
00062     ifaces += "KPasswdServer";
00063     return ifaces;
00064 }
00065 
00066 QCStringList KPasswdServer::functions()
00067 {
00068     QCStringList funcs = KDEDModule::functions();
00069     for ( int i = 0; KPasswdServer_ftable[i][2]; i++ ) {
00070     QCString func = KPasswdServer_ftable[i][0];
00071     func += ' ';
00072     func += KPasswdServer_ftable[i][2];
00073     funcs << func;
00074     }
00075     return funcs;
00076 }
00077 
00078 
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.0.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Oct 8 12:21:31 2003 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2001