예제 #1
0
int TestRealEcho::NObjDirectCall::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    typedef Domain::NamedObject QMocSuperClass;
    _id = QMocSuperClass::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: Init((*reinterpret_cast< QString(*)>(_a[1]))); break;
        case 1: SetCodec((*reinterpret_cast< QString(*)>(_a[1]))); break;
        case 2: SetSourceFile((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 3: SetSourceGen((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 4: WaitInterfaceReady((*reinterpret_cast< DRI::IAsyncCmd*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 5: Run((*reinterpret_cast< DRI::IAsyncCmd*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        default: ;
        }
        _id -= 6;
    }
#ifndef QT_NO_PROPERTIES
      else if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< int*>(_v) = m_minRtpPort; break;
        case 1: *reinterpret_cast< int*>(_v) = m_maxRtpPort; break;
        case 2: *reinterpret_cast< QString*>(_v) = m_localHost; break;
        case 3: *reinterpret_cast< int*>(_v) = m_channel; break;
        case 4: *reinterpret_cast< QString*>(_v) = m_outFile; break;
        case 5: *reinterpret_cast< bool*>(_v) = m_waveOut; break;
        case 6: *reinterpret_cast< QString*>(_v) = CodecInfo(); break;
        }
        _id -= 7;
    } else if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: m_minRtpPort = *reinterpret_cast< int*>(_v); break;
        case 1: m_maxRtpPort = *reinterpret_cast< int*>(_v); break;
        case 2: m_localHost = *reinterpret_cast< QString*>(_v); break;
        case 3: m_channel = *reinterpret_cast< int*>(_v); break;
        case 4: m_outFile = *reinterpret_cast< QString*>(_v); break;
        case 5: m_waveOut = *reinterpret_cast< bool*>(_v); break;
        }
        _id -= 7;
    } else if (_c == QMetaObject::ResetProperty) {
        _id -= 7;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 7;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 7;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 7;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 7;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 7;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}
int WaitHostInterfaceReady(int timeout)
{
	char dev[64];

	securesoho_lif_get(dev);
	if(dev[0] == '\0')
		return 0;
	return WaitInterfaceReady(dev, timeout);
}