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

vk_process.moc.cpp

/****************************************************************************
** VKProcessManager meta object code from reading C++ file 'vk_process.h'
**
** Created: Sat Feb 21 11:49:29 2009
**      by: The Qt MOC ($Id: qt/moc_yacc.cpp   3.3.8   edited Feb 2 14:59 $)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#undef QT_NO_COMPAT
#include "vk_process.h"
#include <qmetaobject.h>
#include <qapplication.h>

#include <private/qucomextra_p.h>
#if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
#error "This file was generated using the moc from 3.3.8b. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

const char *VKProcessManager::className() const
{
    return "VKProcessManager";
}

QMetaObject *VKProcessManager::metaObj = 0;
static QMetaObjectCleanUp cleanUp_VKProcessManager( "VKProcessManager", &VKProcessManager::staticMetaObject );

#ifndef QT_NO_TRANSLATION
QString VKProcessManager::tr( const char *s, const char *c )
{
    if ( qApp )
      return qApp->translate( "VKProcessManager", s, c, QApplication::DefaultCodec );
    else
      return QString::fromLatin1( s );
}
#ifndef QT_NO_TRANSLATION_UTF8
QString VKProcessManager::trUtf8( const char *s, const char *c )
{
    if ( qApp )
      return qApp->translate( "VKProcessManager", s, c, QApplication::UnicodeUTF8 );
    else
      return QString::fromUtf8( s );
}
#endif // QT_NO_TRANSLATION_UTF8

#endif // QT_NO_TRANSLATION

QMetaObject* VKProcessManager::staticMetaObject()
{
    if ( metaObj )
      return metaObj;
    QMetaObject* parentObject = QObject::staticMetaObject();
    static const QUMethod slot_0 = {"removeMe", 0, 0 };
    static const QUParameter param_slot_1[] = {
      { 0, &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod slot_1 = {"sigchldHnd", 1, param_slot_1 };
    static const QMetaData slot_tbl[] = {
      { "removeMe()", &slot_0, QMetaData::Public },
      { "sigchldHnd(int)", &slot_1, QMetaData::Public }
    };
    metaObj = QMetaObject::new_metaobject(
      "VKProcessManager", parentObject,
      slot_tbl, 2,
      0, 0,
#ifndef QT_NO_PROPERTIES
      0, 0,
      0, 0,
#endif // QT_NO_PROPERTIES
      0, 0 );
    cleanUp_VKProcessManager.setMetaObject( metaObj );
    return metaObj;
}

void* VKProcessManager::qt_cast( const char* clname )
{
    if ( !qstrcmp( clname, "VKProcessManager" ) )
      return this;
    return QObject::qt_cast( clname );
}

bool VKProcessManager::qt_invoke( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: removeMe(); break;
    case 1: sigchldHnd((int)static_QUType_int.get(_o+1)); break;
    default:
      return QObject::qt_invoke( _id, _o );
    }
    return TRUE;
}

bool VKProcessManager::qt_emit( int _id, QUObject* _o )
{
    return QObject::qt_emit(_id,_o);
}
#ifndef QT_NO_PROPERTIES

bool VKProcessManager::qt_property( int id, int f, QVariant* v)
{
    return QObject::qt_property( id, f, v);
}

bool VKProcessManager::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
#endif // QT_NO_PROPERTIES


const char *VKProcess::className() const
{
    return "VKProcess";
}

QMetaObject *VKProcess::metaObj = 0;
static QMetaObjectCleanUp cleanUp_VKProcess( "VKProcess", &VKProcess::staticMetaObject );

#ifndef QT_NO_TRANSLATION
QString VKProcess::tr( const char *s, const char *c )
{
    if ( qApp )
      return qApp->translate( "VKProcess", s, c, QApplication::DefaultCodec );
    else
      return QString::fromLatin1( s );
}
#ifndef QT_NO_TRANSLATION_UTF8
QString VKProcess::trUtf8( const char *s, const char *c )
{
    if ( qApp )
      return qApp->translate( "VKProcess", s, c, QApplication::UnicodeUTF8 );
    else
      return QString::fromUtf8( s );
}
#endif // QT_NO_TRANSLATION_UTF8

#endif // QT_NO_TRANSLATION

QMetaObject* VKProcess::staticMetaObject()
{
    if ( metaObj )
      return metaObj;
    QMetaObject* parentObject = QObject::staticMetaObject();
    static const QUMethod slot_0 = {"stop", 0, 0 };
    static const QUParameter param_slot_1[] = {
      { "msec_kill_timeout", &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod slot_1 = {"stop", 1, param_slot_1 };
    static const QUMethod slot_2 = {"tryTerminate", 0, 0 };
    static const QUMethod slot_3 = {"kill", 0, 0 };
    static const QUParameter param_slot_4[] = {
      { "buf", &static_QUType_varptr, "\x1d", QUParameter::In }
    };
    static const QUMethod slot_4 = {"writeToFDin", 1, param_slot_4 };
    static const QUParameter param_slot_5[] = {
      { "buf", &static_QUType_QString, 0, QUParameter::In }
    };
    static const QUMethod slot_5 = {"writeToFDin", 1, param_slot_5 };
    static const QUMethod slot_6 = {"closeFDin", 0, 0 };
    static const QUParameter param_slot_7[] = {
      { "buf", &static_QUType_varptr, "\x1d", QUParameter::In }
    };
    static const QUMethod slot_7 = {"writeToStdin", 1, param_slot_7 };
    static const QUParameter param_slot_8[] = {
      { "buf", &static_QUType_QString, 0, QUParameter::In }
    };
    static const QUMethod slot_8 = {"writeToStdin", 1, param_slot_8 };
    static const QUMethod slot_9 = {"closeStdin", 0, 0 };
    static const QUParameter param_slot_10[] = {
      { "fd", &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod slot_10 = {"socketRead", 1, param_slot_10 };
    static const QUParameter param_slot_11[] = {
      { "fd", &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod slot_11 = {"socketWrite", 1, param_slot_11 };
    static const QUMethod slot_12 = {"timeout", 0, 0 };
    static const QUMethod slot_13 = {"closeStdinLaunch", 0, 0 };
    static const QMetaData slot_tbl[] = {
      { "stop()", &slot_0, QMetaData::Public },
      { "stop(int)", &slot_1, QMetaData::Public },
      { "tryTerminate()", &slot_2, QMetaData::Public },
      { "kill()", &slot_3, QMetaData::Public },
      { "writeToFDin(const QByteArray&)", &slot_4, QMetaData::Public },
      { "writeToFDin(const QString&)", &slot_5, QMetaData::Public },
      { "closeFDin()", &slot_6, QMetaData::Public },
      { "writeToStdin(const QByteArray&)", &slot_7, QMetaData::Public },
      { "writeToStdin(const QString&)", &slot_8, QMetaData::Public },
      { "closeStdin()", &slot_9, QMetaData::Public },
      { "socketRead(int)", &slot_10, QMetaData::Private },
      { "socketWrite(int)", &slot_11, QMetaData::Private },
      { "timeout()", &slot_12, QMetaData::Private },
      { "closeStdinLaunch()", &slot_13, QMetaData::Private }
    };
    static const QUMethod signal_0 = {"readyReadFDout", 0, 0 };
    static const QUMethod signal_1 = {"readyReadStdout", 0, 0 };
    static const QUMethod signal_2 = {"readyReadStderr", 0, 0 };
    static const QUMethod signal_3 = {"processExited", 0, 0 };
    static const QUMethod signal_4 = {"wroteToFDin", 0, 0 };
    static const QUMethod signal_5 = {"wroteToStdin", 0, 0 };
    static const QUMethod signal_6 = {"launchFinished", 0, 0 };
    static const QMetaData signal_tbl[] = {
      { "readyReadFDout()", &signal_0, QMetaData::Public },
      { "readyReadStdout()", &signal_1, QMetaData::Public },
      { "readyReadStderr()", &signal_2, QMetaData::Public },
      { "processExited()", &signal_3, QMetaData::Public },
      { "wroteToFDin()", &signal_4, QMetaData::Public },
      { "wroteToStdin()", &signal_5, QMetaData::Public },
      { "launchFinished()", &signal_6, QMetaData::Public }
    };
    metaObj = QMetaObject::new_metaobject(
      "VKProcess", parentObject,
      slot_tbl, 14,
      signal_tbl, 7,
#ifndef QT_NO_PROPERTIES
      0, 0,
      0, 0,
#endif // QT_NO_PROPERTIES
      0, 0 );
    cleanUp_VKProcess.setMetaObject( metaObj );
    return metaObj;
}

void* VKProcess::qt_cast( const char* clname )
{
    if ( !qstrcmp( clname, "VKProcess" ) )
      return this;
    return QObject::qt_cast( clname );
}

// SIGNAL readyReadFDout
void VKProcess::readyReadFDout()
{
    activate_signal( staticMetaObject()->signalOffset() + 0 );
}

// SIGNAL readyReadStdout
void VKProcess::readyReadStdout()
{
    activate_signal( staticMetaObject()->signalOffset() + 1 );
}

// SIGNAL readyReadStderr
void VKProcess::readyReadStderr()
{
    activate_signal( staticMetaObject()->signalOffset() + 2 );
}

// SIGNAL processExited
void VKProcess::processExited()
{
    activate_signal( staticMetaObject()->signalOffset() + 3 );
}

// SIGNAL wroteToFDin
void VKProcess::wroteToFDin()
{
    activate_signal( staticMetaObject()->signalOffset() + 4 );
}

// SIGNAL wroteToStdin
void VKProcess::wroteToStdin()
{
    activate_signal( staticMetaObject()->signalOffset() + 5 );
}

// SIGNAL launchFinished
void VKProcess::launchFinished()
{
    activate_signal( staticMetaObject()->signalOffset() + 6 );
}

bool VKProcess::qt_invoke( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: stop(); break;
    case 1: stop((int)static_QUType_int.get(_o+1)); break;
    case 2: tryTerminate(); break;
    case 3: kill(); break;
    case 4: writeToFDin((const QByteArray&)*((const QByteArray*)static_QUType_ptr.get(_o+1))); break;
    case 5: writeToFDin((const QString&)static_QUType_QString.get(_o+1)); break;
    case 6: closeFDin(); break;
    case 7: writeToStdin((const QByteArray&)*((const QByteArray*)static_QUType_ptr.get(_o+1))); break;
    case 8: writeToStdin((const QString&)static_QUType_QString.get(_o+1)); break;
    case 9: closeStdin(); break;
    case 10: socketRead((int)static_QUType_int.get(_o+1)); break;
    case 11: socketWrite((int)static_QUType_int.get(_o+1)); break;
    case 12: timeout(); break;
    case 13: closeStdinLaunch(); break;
    default:
      return QObject::qt_invoke( _id, _o );
    }
    return TRUE;
}

bool VKProcess::qt_emit( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: readyReadFDout(); break;
    case 1: readyReadStdout(); break;
    case 2: readyReadStderr(); break;
    case 3: processExited(); break;
    case 4: wroteToFDin(); break;
    case 5: wroteToStdin(); break;
    case 6: launchFinished(); break;
    default:
      return QObject::qt_emit(_id,_o);
    }
    return TRUE;
}
#ifndef QT_NO_PROPERTIES

bool VKProcess::qt_property( int id, int f, QVariant* v)
{
    return QObject::qt_property( id, f, v);
}

bool VKProcess::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
#endif // QT_NO_PROPERTIES

Generated by  Doxygen 1.6.0   Back to index