kcalendariface_skel.cpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
#include "./kcalendariface.h"
00010
00011
#include <kdatastream.h>
00012
#include <qasciidict.h>
00013
00014
00015
static const int KCalendarIface_fhash = 13;
00016
static const char*
const KCalendarIface_ftable[12][3] = {
00017 {
"KCalendarIface::ResourceRequestReply",
"resourceRequest(QValueList<QDateTimePair>,QCString,QString)",
"resourceRequest(QValueList<QDateTimePair> busy,QCString resource,QString vCalIn)" },
00018 {
"void",
"openEventEditor(QString)",
"openEventEditor(QString text)" },
00019 {
"void",
"openEventEditor(QString,QString,QString)",
"openEventEditor(QString summary,QString description,QString attachment)" },
00020 {
"void",
"openEventEditor(QString,QString,QString,QStringList)",
"openEventEditor(QString summary,QString description,QString attachment,QStringList attendees)" },
00021 {
"void",
"openTodoEditor(QString)",
"openTodoEditor(QString text)" },
00022 {
"void",
"openTodoEditor(QString,QString,QString)",
"openTodoEditor(QString summary,QString description,QString attachment)" },
00023 {
"void",
"openTodoEditor(QString,QString,QString,QStringList)",
"openTodoEditor(QString summary,QString description,QString attachment,QStringList attendees)" },
00024 {
"void",
"showTodoView()",
"showTodoView()" },
00025 {
"void",
"showEventView()",
"showEventView()" },
00026 {
"void",
"goDate(QDate)",
"goDate(QDate date)" },
00027 {
"void",
"goDate(QString)",
"goDate(QString date)" },
00028 { 0, 0, 0 }
00029 };
00030
static const int KCalendarIface_ftable_hiddens[11] = {
00031 0,
00032 0,
00033 0,
00034 0,
00035 0,
00036 0,
00037 0,
00038 0,
00039 0,
00040 0,
00041 0,
00042 };
00043
00044
bool KCalendarIface::process(
const QCString &fun,
const QByteArray &data,
QCString& replyType,
QByteArray &replyData)
00045 {
00046
static QAsciiDict<int>* fdict = 0;
00047
if ( !fdict ) {
00048 fdict =
new QAsciiDict<int>( KCalendarIface_fhash,
true,
false );
00049
for (
int i = 0; KCalendarIface_ftable[i][1]; i++ )
00050 fdict->insert( KCalendarIface_ftable[i][1],
new int( i ) );
00051 }
00052
int* fp = fdict->find( fun );
00053
switch ( fp?*fp:-1) {
00054
case 0: {
00055
QValueList<QDateTimePair> arg0;
00056
QCString arg1;
00057
QString arg2;
00058
QDataStream arg( data, IO_ReadOnly );
00059 arg >> arg0;
00060 arg >> arg1;
00061 arg >> arg2;
00062 replyType = KCalendarIface_ftable[0][0];
00063
QDataStream _replyStream( replyData, IO_WriteOnly );
00064 _replyStream << resourceRequest(arg0, arg1, arg2 );
00065 }
break;
00066
case 1: {
00067
QString arg0;
00068
QDataStream arg( data, IO_ReadOnly );
00069 arg >> arg0;
00070 replyType = KCalendarIface_ftable[1][0];
00071 openEventEditor(arg0 );
00072 }
break;
00073
case 2: {
00074
QString arg0;
00075
QString arg1;
00076
QString arg2;
00077
QDataStream arg( data, IO_ReadOnly );
00078 arg >> arg0;
00079 arg >> arg1;
00080 arg >> arg2;
00081 replyType = KCalendarIface_ftable[2][0];
00082 openEventEditor(arg0, arg1, arg2 );
00083 }
break;
00084
case 3: {
00085
QString arg0;
00086
QString arg1;
00087
QString arg2;
00088
QStringList arg3;
00089
QDataStream arg( data, IO_ReadOnly );
00090 arg >> arg0;
00091 arg >> arg1;
00092 arg >> arg2;
00093 arg >> arg3;
00094 replyType = KCalendarIface_ftable[3][0];
00095 openEventEditor(arg0, arg1, arg2, arg3 );
00096 }
break;
00097
case 4: {
00098
QString arg0;
00099
QDataStream arg( data, IO_ReadOnly );
00100 arg >> arg0;
00101 replyType = KCalendarIface_ftable[4][0];
00102 openTodoEditor(arg0 );
00103 }
break;
00104
case 5: {
00105
QString arg0;
00106
QString arg1;
00107
QString arg2;
00108
QDataStream arg( data, IO_ReadOnly );
00109 arg >> arg0;
00110 arg >> arg1;
00111 arg >> arg2;
00112 replyType = KCalendarIface_ftable[5][0];
00113 openTodoEditor(arg0, arg1, arg2 );
00114 }
break;
00115
case 6: {
00116
QString arg0;
00117
QString arg1;
00118
QString arg2;
00119
QStringList arg3;
00120
QDataStream arg( data, IO_ReadOnly );
00121 arg >> arg0;
00122 arg >> arg1;
00123 arg >> arg2;
00124 arg >> arg3;
00125 replyType = KCalendarIface_ftable[6][0];
00126 openTodoEditor(arg0, arg1, arg2, arg3 );
00127 }
break;
00128
case 7: {
00129 replyType = KCalendarIface_ftable[7][0];
00130 showTodoView( );
00131 }
break;
00132
case 8: {
00133 replyType = KCalendarIface_ftable[8][0];
00134 showEventView( );
00135 }
break;
00136
case 9: {
00137
QDate arg0;
00138
QDataStream arg( data, IO_ReadOnly );
00139 arg >> arg0;
00140 replyType = KCalendarIface_ftable[9][0];
00141 goDate(arg0 );
00142 }
break;
00143
case 10: {
00144
QString arg0;
00145
QDataStream arg( data, IO_ReadOnly );
00146 arg >> arg0;
00147 replyType = KCalendarIface_ftable[10][0];
00148 goDate(arg0 );
00149 }
break;
00150
default:
00151
return DCOPObject::process( fun, data, replyType, replyData );
00152 }
00153
return true;
00154 }
00155
00156 QCStringList KCalendarIface::interfaces()
00157 {
00158 QCStringList ifaces = DCOPObject::interfaces();
00159 ifaces +=
"KCalendarIface";
00160
return ifaces;
00161 }
00162
00163 QCStringList KCalendarIface::functions()
00164 {
00165 QCStringList funcs = DCOPObject::functions();
00166
for (
int i = 0; KCalendarIface_ftable[i][2]; i++ ) {
00167
if (KCalendarIface_ftable_hiddens[i])
00168
continue;
00169
QCString func = KCalendarIface_ftable[i][0];
00170 func +=
' ';
00171 func += KCalendarIface_ftable[i][2];
00172 funcs << func;
00173 }
00174
return funcs;
00175 }
00176
00177
This file is part of the documentation for korganizer Library Version 3.3.0.