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 static const int KPasswdServer_ftable_hiddens[3] = {
00021     0,
00022     0,
00023     0,
00024 };
00025 
00026 bool KPasswdServer::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
00027 {
00028     if ( fun == KPasswdServer_ftable[0][1] ) { // KIO::AuthInfo checkAuthInfo(KIO::AuthInfo,long int)
00029     KIO::AuthInfo arg0;
00030     long int arg1;
00031     QDataStream arg( data, IO_ReadOnly );
00032     arg >> arg0;
00033     arg >> arg1;
00034     replyType = KPasswdServer_ftable[0][0]; 
00035     QDataStream _replyStream( replyData, IO_WriteOnly );
00036     _replyStream << checkAuthInfo(arg0, arg1 );
00037     } else if ( fun == KPasswdServer_ftable[1][1] ) { // KIO::AuthInfo queryAuthInfo(KIO::AuthInfo,QString,long int,long int)
00038     KIO::AuthInfo arg0;
00039     QString arg1;
00040     long int arg2;
00041     long int arg3;
00042     QDataStream arg( data, IO_ReadOnly );
00043     arg >> arg0;
00044     arg >> arg1;
00045     arg >> arg2;
00046     arg >> arg3;
00047     replyType = KPasswdServer_ftable[1][0]; 
00048     QDataStream _replyStream( replyData, IO_WriteOnly );
00049     _replyStream << queryAuthInfo(arg0, arg1, arg2, arg3 );
00050     } else if ( fun == KPasswdServer_ftable[2][1] ) { // void addAuthInfo(KIO::AuthInfo,long int)
00051     KIO::AuthInfo arg0;
00052     long int arg1;
00053     QDataStream arg( data, IO_ReadOnly );
00054     arg >> arg0;
00055     arg >> arg1;
00056     replyType = KPasswdServer_ftable[2][0]; 
00057     addAuthInfo(arg0, arg1 );
00058     } else {
00059     return KDEDModule::process( fun, data, replyType, replyData );
00060     }
00061     return true;
00062 }
00063 
00064 QCStringList KPasswdServer::interfaces()
00065 {
00066     QCStringList ifaces = KDEDModule::interfaces();
00067     ifaces += "KPasswdServer";
00068     return ifaces;
00069 }
00070 
00071 QCStringList KPasswdServer::functions()
00072 {
00073     QCStringList funcs = KDEDModule::functions();
00074     for ( int i = 0; KPasswdServer_ftable[i][2]; i++ ) {
00075     if (KPasswdServer_ftable_hiddens[i])
00076         continue;
00077     QCString func = KPasswdServer_ftable[i][0];
00078     func += ' ';
00079     func += KPasswdServer_ftable[i][2];
00080     funcs << func;
00081     }
00082     return funcs;
00083 }
00084 
00085 
KDE Logo
This file is part of the documentation for kio Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Jul 22 10:17:17 2005 by doxygen 1.3.6 written by Dimitri van Heesch, © 1997-2003