Logo Search packages:      
Sourcecode: kaffeine version File versions

kaffeine_part_iface_skel.cpp

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

#include "./kaffeine_part_iface.h"

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


static const int KaffeinePartIface_fhash = 19;
static const char* const KaffeinePartIface_ftable[18][3] = {
    { "int", "getContrast()", "getContrast()" },
    { "void", "setContrast(int)", "setContrast(int c)" },
    { "int", "getBrightness()", "getBrightness()" },
    { "void", "setBrightness(int)", "setBrightness(int b)" },
    { "void", "dvdMenuUp()", "dvdMenuUp()" },
    { "void", "dvdMenuDown()", "dvdMenuDown()" },
    { "void", "dvdMenuLeft()", "dvdMenuLeft()" },
    { "void", "dvdMenuRight()", "dvdMenuRight()" },
    { "void", "dvdMenuSelect()", "dvdMenuSelect()" },
    { "void", "aspectRatioAuto()", "aspectRatioAuto()" },
    { "void", "aspectRatio4_3()", "aspectRatio4_3()" },
    { "void", "aspectRatioAnamorphic()", "aspectRatioAnamorphic()" },
    { "void", "aspectRatioSquare()", "aspectRatioSquare()" },
    { "void", "aspectRatioDVB()", "aspectRatioDVB()" },
    { "void", "zoomIn()", "zoomIn()" },
    { "void", "zoomOut()", "zoomOut()" },
    { "void", "zoomOff()", "zoomOff()" },
    { 0, 0, 0 }
};
static const int KaffeinePartIface_ftable_hiddens[17] = {
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
};

bool KaffeinePartIface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
{
    static QAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
      fdict = new QAsciiDict<int>( KaffeinePartIface_fhash, true, false );
      for ( int i = 0; KaffeinePartIface_ftable[i][1]; i++ )
          fdict->insert( KaffeinePartIface_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // int getContrast()
      replyType = KaffeinePartIface_ftable[0][0]; 
      QDataStream _replyStream( replyData, IO_WriteOnly );
      _replyStream << getContrast( );
    } break;
    case 1: { // void setContrast(int)
      int arg0;
      QDataStream arg( data, IO_ReadOnly );
      arg >> arg0;
      replyType = KaffeinePartIface_ftable[1][0]; 
      setContrast(arg0 );
    } break;
    case 2: { // int getBrightness()
      replyType = KaffeinePartIface_ftable[2][0]; 
      QDataStream _replyStream( replyData, IO_WriteOnly );
      _replyStream << getBrightness( );
    } break;
    case 3: { // void setBrightness(int)
      int arg0;
      QDataStream arg( data, IO_ReadOnly );
      arg >> arg0;
      replyType = KaffeinePartIface_ftable[3][0]; 
      setBrightness(arg0 );
    } break;
    case 4: { // void dvdMenuUp()
      replyType = KaffeinePartIface_ftable[4][0]; 
      dvdMenuUp( );
    } break;
    case 5: { // void dvdMenuDown()
      replyType = KaffeinePartIface_ftable[5][0]; 
      dvdMenuDown( );
    } break;
    case 6: { // void dvdMenuLeft()
      replyType = KaffeinePartIface_ftable[6][0]; 
      dvdMenuLeft( );
    } break;
    case 7: { // void dvdMenuRight()
      replyType = KaffeinePartIface_ftable[7][0]; 
      dvdMenuRight( );
    } break;
    case 8: { // void dvdMenuSelect()
      replyType = KaffeinePartIface_ftable[8][0]; 
      dvdMenuSelect( );
    } break;
    case 9: { // void aspectRatioAuto()
      replyType = KaffeinePartIface_ftable[9][0]; 
      aspectRatioAuto( );
    } break;
    case 10: { // void aspectRatio4_3()
      replyType = KaffeinePartIface_ftable[10][0]; 
      aspectRatio4_3( );
    } break;
    case 11: { // void aspectRatioAnamorphic()
      replyType = KaffeinePartIface_ftable[11][0]; 
      aspectRatioAnamorphic( );
    } break;
    case 12: { // void aspectRatioSquare()
      replyType = KaffeinePartIface_ftable[12][0]; 
      aspectRatioSquare( );
    } break;
    case 13: { // void aspectRatioDVB()
      replyType = KaffeinePartIface_ftable[13][0]; 
      aspectRatioDVB( );
    } break;
    case 14: { // void zoomIn()
      replyType = KaffeinePartIface_ftable[14][0]; 
      zoomIn( );
    } break;
    case 15: { // void zoomOut()
      replyType = KaffeinePartIface_ftable[15][0]; 
      zoomOut( );
    } break;
    case 16: { // void zoomOff()
      replyType = KaffeinePartIface_ftable[16][0]; 
      zoomOff( );
    } break;
    default: 
      return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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



Generated by  Doxygen 1.6.0   Back to index