libkdepim Library API Documentation

AddressBookServiceIface_skel.cpp

00001 /**************************************************************************** 00002 ** 00003 ** DCOP Skeleton created by dcopidl2cpp from AddressBookServiceIface.kidl 00004 ** 00005 ** WARNING! All changes made in this file will be lost! 00006 ** 00007 *****************************************************************************/ 00008 00009 #include "./interfaces/AddressBookServiceIface.h" 00010 00011 #include <kdatastream.h> 00012 00013 namespace KPIM { 00014 00015 static const char* const AddressBookServiceIface_ftable[3][3] = { 00016 { "void", "importVCard(QString)", "importVCard(QString vCard)" }, 00017 { "void", "importVCard(KURL)", "importVCard(KURL url)" }, 00018 { 0, 0, 0 } 00019 }; 00020 static const int AddressBookServiceIface_ftable_hiddens[2] = { 00021 0, 00022 0, 00023 }; 00024 00025 bool AddressBookServiceIface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData) 00026 { 00027 if ( fun == AddressBookServiceIface_ftable[0][1] ) { // void importVCard(QString) 00028 QString arg0; 00029 QDataStream arg( data, IO_ReadOnly ); 00030 arg >> arg0; 00031 replyType = AddressBookServiceIface_ftable[0][0]; 00032 importVCard(arg0 ); 00033 } else if ( fun == AddressBookServiceIface_ftable[1][1] ) { // void importVCard(KURL) 00034 KURL arg0; 00035 QDataStream arg( data, IO_ReadOnly ); 00036 arg >> arg0; 00037 replyType = AddressBookServiceIface_ftable[1][0]; 00038 importVCard(arg0 ); 00039 } else { 00040 return DCOPObject::process( fun, data, replyType, replyData ); 00041 } 00042 return true; 00043 } 00044 00045 QCStringList AddressBookServiceIface::interfaces() 00046 { 00047 QCStringList ifaces = DCOPObject::interfaces(); 00048 ifaces += "KPIM::AddressBookServiceIface"; 00049 return ifaces; 00050 } 00051 00052 QCStringList AddressBookServiceIface::functions() 00053 { 00054 QCStringList funcs = DCOPObject::functions(); 00055 for ( int i = 0; AddressBookServiceIface_ftable[i][2]; i++ ) { 00056 if (AddressBookServiceIface_ftable_hiddens[i]) 00057 continue; 00058 QCString func = AddressBookServiceIface_ftable[i][0]; 00059 func += ' '; 00060 func += AddressBookServiceIface_ftable[i][2]; 00061 funcs << func; 00062 } 00063 return funcs; 00064 } 00065 00066 } // namespace 00067
KDE Logo
This file is part of the documentation for libkdepim Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Oct 1 15:18:54 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003