kio Library API Documentation

kpasswdserver_skel.cpp

00001 /**************************************************************************** 00002 ** 00003 ** DCOP Skeleton generated 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 if (arg.atEnd()) return false; 00033 arg >> arg0; 00034 if (arg.atEnd()) return false; 00035 arg >> arg1; 00036 replyType = KPasswdServer_ftable[0][0]; 00037 QDataStream _replyStream( replyData, IO_WriteOnly ); 00038 _replyStream << checkAuthInfo(arg0, arg1 ); 00039 } else if ( fun == KPasswdServer_ftable[1][1] ) { // KIO::AuthInfo queryAuthInfo(KIO::AuthInfo,QString,long int,long int) 00040 KIO::AuthInfo arg0; 00041 QString arg1; 00042 long int arg2; 00043 long int arg3; 00044 QDataStream arg( data, IO_ReadOnly ); 00045 if (arg.atEnd()) return false; 00046 arg >> arg0; 00047 if (arg.atEnd()) return false; 00048 arg >> arg1; 00049 if (arg.atEnd()) return false; 00050 arg >> arg2; 00051 if (arg.atEnd()) return false; 00052 arg >> arg3; 00053 replyType = KPasswdServer_ftable[1][0]; 00054 QDataStream _replyStream( replyData, IO_WriteOnly ); 00055 _replyStream << queryAuthInfo(arg0, arg1, arg2, arg3 ); 00056 } else if ( fun == KPasswdServer_ftable[2][1] ) { // void addAuthInfo(KIO::AuthInfo,long int) 00057 KIO::AuthInfo arg0; 00058 long int arg1; 00059 QDataStream arg( data, IO_ReadOnly ); 00060 if (arg.atEnd()) return false; 00061 arg >> arg0; 00062 if (arg.atEnd()) return false; 00063 arg >> arg1; 00064 replyType = KPasswdServer_ftable[2][0]; 00065 addAuthInfo(arg0, arg1 ); 00066 } else { 00067 return KDEDModule::process( fun, data, replyType, replyData ); 00068 } 00069 return true; 00070 } 00071 00072 QCStringList KPasswdServer::interfaces() 00073 { 00074 QCStringList ifaces = KDEDModule::interfaces(); 00075 ifaces += "KPasswdServer"; 00076 return ifaces; 00077 } 00078 00079 QCStringList KPasswdServer::functions() 00080 { 00081 QCStringList funcs = KDEDModule::functions(); 00082 for ( int i = 0; KPasswdServer_ftable[i][2]; i++ ) { 00083 if (KPasswdServer_ftable_hiddens[i]) 00084 continue; 00085 QCString func = KPasswdServer_ftable[i][0]; 00086 func += ' '; 00087 func += KPasswdServer_ftable[i][2]; 00088 funcs << func; 00089 } 00090 return funcs; 00091 } 00092 00093
KDE Logo
This file is part of the documentation for kio Library Version 3.4.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Apr 14 00:20:27 2005 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003