Logo Search packages:      
Sourcecode: kbear version File versions  Download package

sitemanagerdbiface_skel.cpp

/****************************************************************************
**
** DCOP Skeleton created by dcopidl2cpp from sitemanagerdbiface.kidl
**
** WARNING! All changes made in this file will be lost!
**
*****************************************************************************/

#include "./sitemanagerdbiface.h"

#include <kdatastream.h>
#include <qasciidict.h>


static const int SiteManagerDBIface_fhash = 19;
static const char* const SiteManagerDBIface_ftable[19][3] = {
    { "bool", "ping()", "ping()" },
    { "ASYNC", "regReferer()", "regReferer()" },
    { "ASYNC", "unregReferer()", "unregReferer()" },
    { "ASYNC", "saveSite(Site)", "saveSite(Site site)" },
    { "ASYNC", "changeSite(Site,QString)", "changeSite(Site site,QString oldLabel)" },
    { "ASYNC", "removeSite(Site)", "removeSite(Site site)" },
    { "ASYNC", "moveSite(Site,QString)", "moveSite(Site site,QString newParent)" },
    { "Site", "getSite(Site)", "getSite(Site site)" },
    { "ASYNC", "saveGroup(Group)", "saveGroup(Group group)" },
    { "ASYNC", "changeGroup(Group,QString)", "changeGroup(Group group,QString oldLabel)" },
    { "ASYNC", "removeGroup(Group)", "removeGroup(Group group)" },
    { "ASYNC", "moveGroup(Group,QString)", "moveGroup(Group group,QString newParent)" },
    { "QString", "getSiteDataBase()", "getSiteDataBase()" },
    { "QString", "encoding()", "encoding()" },
    { "ASYNC", "setEncoding(QString)", "setEncoding(QString encoding)" },
    { "ASYNC", "importDomDocument(QString)", "importDomDocument(QString domDocument)" },
    { "ASYNC", "showSystemTrayIcon(bool)", "showSystemTrayIcon(bool)" },
    { "ASYNC", "setPlugInKonq(bool)", "setPlugInKonq(bool)" },
    { 0, 0, 0 }
};

bool SiteManagerDBIface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
{
    static QAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
      fdict = new QAsciiDict<int>( SiteManagerDBIface_fhash, TRUE, FALSE );
      for ( int i = 0; SiteManagerDBIface_ftable[i][1]; i++ )
          fdict->insert( SiteManagerDBIface_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // bool ping()
      replyType = SiteManagerDBIface_ftable[0][0]; 
      QDataStream _replyStream( replyData, IO_WriteOnly );
      _replyStream << ping( );
    } break;
    case 1: { // void regReferer()
      replyType = SiteManagerDBIface_ftable[1][0]; 
      regReferer( );
    } break;
    case 2: { // void unregReferer()
      replyType = SiteManagerDBIface_ftable[2][0]; 
      unregReferer( );
    } break;
    case 3: { // void saveSite(Site)
      Site arg0;
      QDataStream arg( data, IO_ReadOnly );
      arg >> arg0;
      replyType = SiteManagerDBIface_ftable[3][0]; 
      saveSite(arg0 );
    } break;
    case 4: { // void changeSite(Site,QString)
      Site arg0;
      QString arg1;
      QDataStream arg( data, IO_ReadOnly );
      arg >> arg0;
      arg >> arg1;
      replyType = SiteManagerDBIface_ftable[4][0]; 
      changeSite(arg0, arg1 );
    } break;
    case 5: { // void removeSite(Site)
      Site arg0;
      QDataStream arg( data, IO_ReadOnly );
      arg >> arg0;
      replyType = SiteManagerDBIface_ftable[5][0]; 
      removeSite(arg0 );
    } break;
    case 6: { // void moveSite(Site,QString)
      Site arg0;
      QString arg1;
      QDataStream arg( data, IO_ReadOnly );
      arg >> arg0;
      arg >> arg1;
      replyType = SiteManagerDBIface_ftable[6][0]; 
      moveSite(arg0, arg1 );
    } break;
    case 7: { // Site getSite(Site)
      Site arg0;
      QDataStream arg( data, IO_ReadOnly );
      arg >> arg0;
      replyType = SiteManagerDBIface_ftable[7][0]; 
      QDataStream _replyStream( replyData, IO_WriteOnly );
      _replyStream << getSite(arg0 );
    } break;
    case 8: { // void saveGroup(Group)
      Group arg0;
      QDataStream arg( data, IO_ReadOnly );
      arg >> arg0;
      replyType = SiteManagerDBIface_ftable[8][0]; 
      saveGroup(arg0 );
    } break;
    case 9: { // void changeGroup(Group,QString)
      Group arg0;
      QString arg1;
      QDataStream arg( data, IO_ReadOnly );
      arg >> arg0;
      arg >> arg1;
      replyType = SiteManagerDBIface_ftable[9][0]; 
      changeGroup(arg0, arg1 );
    } break;
    case 10: { // void removeGroup(Group)
      Group arg0;
      QDataStream arg( data, IO_ReadOnly );
      arg >> arg0;
      replyType = SiteManagerDBIface_ftable[10][0]; 
      removeGroup(arg0 );
    } break;
    case 11: { // void moveGroup(Group,QString)
      Group arg0;
      QString arg1;
      QDataStream arg( data, IO_ReadOnly );
      arg >> arg0;
      arg >> arg1;
      replyType = SiteManagerDBIface_ftable[11][0]; 
      moveGroup(arg0, arg1 );
    } break;
    case 12: { // QString getSiteDataBase()
      replyType = SiteManagerDBIface_ftable[12][0]; 
      QDataStream _replyStream( replyData, IO_WriteOnly );
      _replyStream << getSiteDataBase( );
    } break;
    case 13: { // QString encoding()
      replyType = SiteManagerDBIface_ftable[13][0]; 
      QDataStream _replyStream( replyData, IO_WriteOnly );
      _replyStream << encoding( );
    } break;
    case 14: { // void setEncoding(QString)
      QString arg0;
      QDataStream arg( data, IO_ReadOnly );
      arg >> arg0;
      replyType = SiteManagerDBIface_ftable[14][0]; 
      setEncoding(arg0 );
    } break;
    case 15: { // void importDomDocument(QString)
      QString arg0;
      QDataStream arg( data, IO_ReadOnly );
      arg >> arg0;
      replyType = SiteManagerDBIface_ftable[15][0]; 
      importDomDocument(arg0 );
    } break;
    case 16: { // void showSystemTrayIcon(bool)
      bool arg0;
      QDataStream arg( data, IO_ReadOnly );
      arg >> arg0;
      replyType = SiteManagerDBIface_ftable[16][0]; 
      showSystemTrayIcon(arg0 );
    } break;
    case 17: { // void setPlugInKonq(bool)
      bool arg0;
      QDataStream arg( data, IO_ReadOnly );
      arg >> arg0;
      replyType = SiteManagerDBIface_ftable[17][0]; 
      setPlugInKonq(arg0 );
    } break;
    default: 
      return DCOPObject::process( fun, data, replyType, replyData );
    }
    return TRUE;
}

QCStringList SiteManagerDBIface::interfaces()
{
    QCStringList ifaces = DCOPObject::interfaces();
    ifaces += "SiteManagerDBIface";
    return ifaces;
}

QCStringList SiteManagerDBIface::functions()
{
    QCStringList funcs = DCOPObject::functions();
    for ( int i = 0; SiteManagerDBIface_ftable[i][2]; i++ ) {
      QCString func = SiteManagerDBIface_ftable[i][0];
      func += ' ';
      func += SiteManagerDBIface_ftable[i][2];
      funcs << func;
    }
    return funcs;
}

void SiteManagerDBIface::initialize()
{
    QByteArray data;
    emitDCOPSignal( "initialize()", data );
}

00202 void SiteManagerDBIface::newSite( Site arg0 )
{
    QByteArray data;
    QDataStream arg( data, IO_WriteOnly );
    arg << arg0;
    emitDCOPSignal( "newSite(Site)", data );
}

00210 void SiteManagerDBIface::siteChanged( Site arg0, QString arg1 )
{
    QByteArray data;
    QDataStream arg( data, IO_WriteOnly );
    arg << arg0;
    arg << arg1;
    emitDCOPSignal( "siteChanged(Site,QString)", data );
}

00219 void SiteManagerDBIface::siteRemoved( Site arg0 )
{
    QByteArray data;
    QDataStream arg( data, IO_WriteOnly );
    arg << arg0;
    emitDCOPSignal( "siteRemoved(Site)", data );
}

00227 void SiteManagerDBIface::siteMoved( Site arg0, QString arg1, QString arg2 )
{
    QByteArray data;
    QDataStream arg( data, IO_WriteOnly );
    arg << arg0;
    arg << arg1;
    arg << arg2;
    emitDCOPSignal( "siteMoved(Site,QString,QString)", data );
}

00237 void SiteManagerDBIface::newGroup( Group arg0 )
{
    QByteArray data;
    QDataStream arg( data, IO_WriteOnly );
    arg << arg0;
    emitDCOPSignal( "newGroup(Group)", data );
}

00245 void SiteManagerDBIface::groupChanged( Group arg0, QString arg1 )
{
    QByteArray data;
    QDataStream arg( data, IO_WriteOnly );
    arg << arg0;
    arg << arg1;
    emitDCOPSignal( "groupChanged(Group,QString)", data );
}

00254 void SiteManagerDBIface::groupRemoved( Group arg0 )
{
    QByteArray data;
    QDataStream arg( data, IO_WriteOnly );
    arg << arg0;
    emitDCOPSignal( "groupRemoved(Group)", data );
}

00262 void SiteManagerDBIface::groupMoved( Group arg0, QString arg1 )
{
    QByteArray data;
    QDataStream arg( data, IO_WriteOnly );
    arg << arg0;
    arg << arg1;
    emitDCOPSignal( "groupMoved(Group,QString)", data );
}

00271 void SiteManagerDBIface::newEncoding( QString arg0 )
{
    QByteArray data;
    QDataStream arg( data, IO_WriteOnly );
    arg << arg0;
    emitDCOPSignal( "newEncoding(QString)", data );
}

00279 void SiteManagerDBIface::updateDatabase( QString arg0 )
{
    QByteArray data;
    QDataStream arg( data, IO_WriteOnly );
    arg << arg0;
    emitDCOPSignal( "updateDatabase(QString)", data );
}

00287 void SiteManagerDBIface::importOldSitemanager( QString arg0 )
{
    QByteArray data;
    QDataStream arg( data, IO_WriteOnly );
    arg << arg0;
    emitDCOPSignal( "importOldSitemanager(QString)", data );
}

00295 void SiteManagerDBIface::showSystemTray( bool arg0 )
{
    QByteArray data;
    QDataStream arg( data, IO_WriteOnly );
    arg << arg0;
    emitDCOPSignal( "showSystemTray(bool)", data );
}

00303 void SiteManagerDBIface::plugInKonq( bool arg0 )
{
    QByteArray data;
    QDataStream arg( data, IO_WriteOnly );
    arg << arg0;
    emitDCOPSignal( "plugInKonq(bool)", data );
}



Generated by  Doxygen 1.6.0   Back to index