Logo Search packages:      
Sourcecode: kaffeine version File versions

kaffeineiface_skel.cpp

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

#include "./kaffeineiface.h"

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


static const int KaffeineIface_fhash = 29;
static const char* const KaffeineIface_ftable[28][3] = {
    { "void", "openURL(QString)", "openURL(QString url)" },
    { "void", "appendURL(QString)", "appendURL(QString url)" },
    { "void", "play()", "play()" },
    { "void", "playAudioCD()", "playAudioCD()" },
    { "void", "playVCD()", "playVCD()" },
    { "void", "playDVD()", "playDVD()" },
    { "void", "pause()", "pause()" },
    { "void", "stop()", "stop()" },
    { "void", "next()", "next()" },
    { "void", "previous()", "previous()" },
    { "bool", "isPlaying()", "isPlaying()" },
    { "QString", "title()", "title()" },
    { "QString", "getFileName()", "getFileName()" },
    { "void", "random()", "random()" },
    { "void", "fullscreen()", "fullscreen()" },
    { "int", "getLength()", "getLength()" },
    { "int", "getTimePos()", "getTimePos()" },
    { "void", "posPlus()", "posPlus()" },
    { "void", "posMinus()", "posMinus()" },
    { "void", "volUp()", "volUp()" },
    { "void", "volDown()", "volDown()" },
    { "void", "mute()", "mute()" },
    { "void", "quit()", "quit()" },
    { "void", "dvbSetChannelNumber(int)", "dvbSetChannelNumber(int num)" },
    { "void", "dvbNext()", "dvbNext()" },
    { "void", "dvbPrevious()", "dvbPrevious()" },
    { "void", "dvbOSD()", "dvbOSD()" },
    { 0, 0, 0 }
};
static const int KaffeineIface_ftable_hiddens[27] = {
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
};

bool KaffeineIface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
{
    static QAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
      fdict = new QAsciiDict<int>( KaffeineIface_fhash, true, false );
      for ( int i = 0; KaffeineIface_ftable[i][1]; i++ )
          fdict->insert( KaffeineIface_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // void openURL(QString)
      QString arg0;
      QDataStream arg( data, IO_ReadOnly );
      arg >> arg0;
      replyType = KaffeineIface_ftable[0][0]; 
      openURL(arg0 );
    } break;
    case 1: { // void appendURL(QString)
      QString arg0;
      QDataStream arg( data, IO_ReadOnly );
      arg >> arg0;
      replyType = KaffeineIface_ftable[1][0]; 
      appendURL(arg0 );
    } break;
    case 2: { // void play()
      replyType = KaffeineIface_ftable[2][0]; 
      play( );
    } break;
    case 3: { // void playAudioCD()
      replyType = KaffeineIface_ftable[3][0]; 
      playAudioCD( );
    } break;
    case 4: { // void playVCD()
      replyType = KaffeineIface_ftable[4][0]; 
      playVCD( );
    } break;
    case 5: { // void playDVD()
      replyType = KaffeineIface_ftable[5][0]; 
      playDVD( );
    } break;
    case 6: { // void pause()
      replyType = KaffeineIface_ftable[6][0]; 
      pause( );
    } break;
    case 7: { // void stop()
      replyType = KaffeineIface_ftable[7][0]; 
      stop( );
    } break;
    case 8: { // void next()
      replyType = KaffeineIface_ftable[8][0]; 
      next( );
    } break;
    case 9: { // void previous()
      replyType = KaffeineIface_ftable[9][0]; 
      previous( );
    } break;
    case 10: { // bool isPlaying()
      replyType = KaffeineIface_ftable[10][0]; 
      QDataStream _replyStream( replyData, IO_WriteOnly );
      _replyStream << isPlaying( );
    } break;
    case 11: { // QString title()
      replyType = KaffeineIface_ftable[11][0]; 
      QDataStream _replyStream( replyData, IO_WriteOnly );
      _replyStream << title( );
    } break;
    case 12: { // QString getFileName()
      replyType = KaffeineIface_ftable[12][0]; 
      QDataStream _replyStream( replyData, IO_WriteOnly );
      _replyStream << getFileName( );
    } break;
    case 13: { // void random()
      replyType = KaffeineIface_ftable[13][0]; 
      random( );
    } break;
    case 14: { // void fullscreen()
      replyType = KaffeineIface_ftable[14][0]; 
      fullscreen( );
    } break;
    case 15: { // int getLength()
      replyType = KaffeineIface_ftable[15][0]; 
      QDataStream _replyStream( replyData, IO_WriteOnly );
      _replyStream << getLength( );
    } break;
    case 16: { // int getTimePos()
      replyType = KaffeineIface_ftable[16][0]; 
      QDataStream _replyStream( replyData, IO_WriteOnly );
      _replyStream << getTimePos( );
    } break;
    case 17: { // void posPlus()
      replyType = KaffeineIface_ftable[17][0]; 
      posPlus( );
    } break;
    case 18: { // void posMinus()
      replyType = KaffeineIface_ftable[18][0]; 
      posMinus( );
    } break;
    case 19: { // void volUp()
      replyType = KaffeineIface_ftable[19][0]; 
      volUp( );
    } break;
    case 20: { // void volDown()
      replyType = KaffeineIface_ftable[20][0]; 
      volDown( );
    } break;
    case 21: { // void mute()
      replyType = KaffeineIface_ftable[21][0]; 
      mute( );
    } break;
    case 22: { // void quit()
      replyType = KaffeineIface_ftable[22][0]; 
      quit( );
    } break;
    case 23: { // void dvbSetChannelNumber(int)
      int arg0;
      QDataStream arg( data, IO_ReadOnly );
      arg >> arg0;
      replyType = KaffeineIface_ftable[23][0]; 
      dvbSetChannelNumber(arg0 );
    } break;
    case 24: { // void dvbNext()
      replyType = KaffeineIface_ftable[24][0]; 
      dvbNext( );
    } break;
    case 25: { // void dvbPrevious()
      replyType = KaffeineIface_ftable[25][0]; 
      dvbPrevious( );
    } break;
    case 26: { // void dvbOSD()
      replyType = KaffeineIface_ftable[26][0]; 
      dvbOSD( );
    } break;
    default: 
      return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

QCStringList KaffeineIface::functions()
{
    QCStringList funcs = DCOPObject::functions();
    for ( int i = 0; KaffeineIface_ftable[i][2]; i++ ) {
      if (KaffeineIface_ftable_hiddens[i])
          continue;
      QCString func = KaffeineIface_ftable[i][0];
      func += ' ';
      func += KaffeineIface_ftable[i][2];
      funcs << func;
    }
    return funcs;
}



Generated by  Doxygen 1.6.0   Back to index