kontact Library API Documentation

newsticker/summarywidget_skel.cpp

00001 /****************************************************************************
00002 **
00003 ** DCOP Skeleton created 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[4][3] = {
00015     { "void", "documentUpdated(DCOPRef)", "documentUpdated(DCOPRef)" },
00016     { "void", "documentAdded(QString)", "documentAdded(QString)" },
00017     { "void", "documentRemoved(QString)", "documentRemoved(QString)" },
00018     { 0, 0, 0 }
00019 };
00020 static const int SummaryWidget_ftable_hiddens[3] = {
00021     0,
00022     0,
00023     0,
00024 };
00025 
00026 bool SummaryWidget::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
00027 {
00028     if ( fun == SummaryWidget_ftable[0][1] ) { // void documentUpdated(DCOPRef)
00029     DCOPRef arg0;
00030     QDataStream arg( data, IO_ReadOnly );
00031     arg >> arg0;
00032     replyType = SummaryWidget_ftable[0][0]; 
00033     documentUpdated(arg0 );
00034     } else if ( fun == SummaryWidget_ftable[1][1] ) { // void documentAdded(QString)
00035     QString arg0;
00036     QDataStream arg( data, IO_ReadOnly );
00037     arg >> arg0;
00038     replyType = SummaryWidget_ftable[1][0]; 
00039     documentAdded(arg0 );
00040     } else if ( fun == SummaryWidget_ftable[2][1] ) { // void documentRemoved(QString)
00041     QString arg0;
00042     QDataStream arg( data, IO_ReadOnly );
00043     arg >> arg0;
00044     replyType = SummaryWidget_ftable[2][0]; 
00045     documentRemoved(arg0 );
00046     } else {
00047     return DCOPObject::process( fun, data, replyType, replyData );
00048     }
00049     return true;
00050 }
00051 
00052 QCStringList SummaryWidget::interfaces()
00053 {
00054     QCStringList ifaces = DCOPObject::interfaces();
00055     ifaces += "SummaryWidget";
00056     return ifaces;
00057 }
00058 
00059 QCStringList SummaryWidget::functions()
00060 {
00061     QCStringList funcs = DCOPObject::functions();
00062     for ( int i = 0; SummaryWidget_ftable[i][2]; i++ ) {
00063     if (SummaryWidget_ftable_hiddens[i])
00064         continue;
00065     QCString func = SummaryWidget_ftable[i][0];
00066     func += ' ';
00067     func += SummaryWidget_ftable[i][2];
00068     funcs << func;
00069     }
00070     return funcs;
00071 }
00072 
00073 
KDE Logo
This file is part of the documentation for kontact Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 22:46:48 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003