bool CWebPageDef::r_LoadVal( CScript & s ) // Load an item Script { ADDTOCALLSTACK("CWebPageDef::r_LoadVal"); EXC_TRY("LoadVal"); switch ( FindTableSorted( s.GetKey(), sm_szLoadKeys, COUNTOF( sm_szLoadKeys )-1 )) { case WC_PLEVEL: m_privlevel = static_cast<PLEVEL_TYPE>(s.GetArgVal()); break; case WC_WEBPAGEFILE: m_sDstFilePath = s.GetArgStr(); break; case WC_WEBPAGELOG: m_iUpdateLog = s.GetArgVal(); break; case WC_WEBPAGESRC: return SetSourceFile( s.GetArgStr(), NULL ); case WC_WEBPAGEUPDATE: // (seconds) m_iUpdatePeriod = s.GetArgVal() * TICK_PER_SEC; if ( m_iUpdatePeriod && m_type == WEBPAGE_TEXT ) { m_type = WEBPAGE_TEMPLATE; } break; default: return( CScriptObj::r_LoadVal( s )); } return true; EXC_CATCH; EXC_DEBUG_START; EXC_ADD_SCRIPT; EXC_DEBUG_END; return false; }
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; }
XMLPacketGen::~XMLPacketGen() { // Close the files SetHeaderFile( "" ); SetSourceFile( "" ); }