kontact

summarywidget_skel.cpp

00001 /****************************************************************************
00002 **
00003 ** DCOP Skeleton generated by dcopidl2cpp from summarywidget.kidl
00004 **
00005 ** WARNING! All changes made in this file will be lost!
00006 **
00007 *****************************************************************************/
00008 
00009 #include "./summarywidget.h"
00010 
00011 #include <kdatastream.h>
00012 
00013 
00014 static const char* const SummaryWidget_ftable[5][3] = {
00015     { "void", "documentUpdated(DCOPRef)", "documentUpdated(DCOPRef)" },
00016     { "void", "documentAdded(QString)", "documentAdded(QString)" },
00017     { "void", "documentRemoved(QString)", "documentRemoved(QString)" },
00018     { "void", "documentUpdateError(DCOPRef,int)", "documentUpdateError(DCOPRef ref,int errorCode)" },
00019     { 0, 0, 0 }
00020 };
00021 static const int SummaryWidget_ftable_hiddens[4] = {
00022     0,
00023     0,
00024     0,
00025     0,
00026 };
00027 
00028 bool SummaryWidget::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
00029 {
00030     if ( fun == SummaryWidget_ftable[0][1] ) { // void documentUpdated(DCOPRef)
00031     DCOPRef arg0;
00032     QDataStream arg( data, IO_ReadOnly );
00033     if (arg.atEnd()) return false;
00034     arg >> arg0;
00035     replyType = SummaryWidget_ftable[0][0]; 
00036     documentUpdated(arg0 );
00037     } else if ( fun == SummaryWidget_ftable[1][1] ) { // void documentAdded(QString)
00038     QString arg0;
00039     QDataStream arg( data, IO_ReadOnly );
00040     if (arg.atEnd()) return false;
00041     arg >> arg0;
00042     replyType = SummaryWidget_ftable[1][0]; 
00043     documentAdded(arg0 );
00044     } else if ( fun == SummaryWidget_ftable[2][1] ) { // void documentRemoved(QString)
00045     QString arg0;
00046     QDataStream arg( data, IO_ReadOnly );
00047     if (arg.atEnd()) return false;
00048     arg >> arg0;
00049     replyType = SummaryWidget_ftable[2][0]; 
00050     documentRemoved(arg0 );
00051     } else if ( fun == SummaryWidget_ftable[3][1] ) { // void documentUpdateError(DCOPRef,int)
00052     DCOPRef arg0;
00053     int arg1;
00054     QDataStream arg( data, IO_ReadOnly );
00055     if (arg.atEnd()) return false;
00056     arg >> arg0;
00057     if (arg.atEnd()) return false;
00058     arg >> arg1;
00059     replyType = SummaryWidget_ftable[3][0]; 
00060     documentUpdateError(arg0, arg1 );
00061     } else {
00062     return DCOPObject::process( fun, data, replyType, replyData );
00063     }
00064     return true;
00065 }
00066 
00067 QCStringList SummaryWidget::interfaces()
00068 {
00069     QCStringList ifaces = DCOPObject::interfaces();
00070     ifaces += "SummaryWidget";
00071     return ifaces;
00072 }
00073 
00074 QCStringList SummaryWidget::functions()
00075 {
00076     QCStringList funcs = DCOPObject::functions();
00077     for ( int i = 0; SummaryWidget_ftable[i][2]; i++ ) {
00078     if (SummaryWidget_ftable_hiddens[i])
00079         continue;
00080     QCString func = SummaryWidget_ftable[i][0];
00081     func += ' ';
00082     func += SummaryWidget_ftable[i][2];
00083     funcs << func;
00084     }
00085     return funcs;
00086 }
00087 
00088 
KDE Home | KDE Accessibility Home | Description of Access Keys