tests/auto/qlocalsocket/lackey/main.cpp
branchRCL_3
changeset 7 3f74d0d4af4c
parent 4 3b1da2848fc7
equal deleted inserted replaced
6:dee5afe5301f 7:3f74d0d4af4c
   170 static int _q_ScriptRegisterQObjectMetaType(QScriptEngine *engine, const QScriptValue &prototype)
   170 static int _q_ScriptRegisterQObjectMetaType(QScriptEngine *engine, const QScriptValue &prototype)
   171 {
   171 {
   172     return qScriptRegisterMetaType<T*>(engine, _q_ScriptValueFromQObject<T>, _q_ScriptValueToQObject<T>, prototype);
   172     return qScriptRegisterMetaType<T*>(engine, _q_ScriptValueFromQObject<T>, _q_ScriptValueToQObject<T>, prototype);
   173 }
   173 }
   174 
   174 
       
   175 QT_BEGIN_NAMESPACE
   175 Q_SCRIPT_DECLARE_QMETAOBJECT(QScriptLocalSocket, QObject*);
   176 Q_SCRIPT_DECLARE_QMETAOBJECT(QScriptLocalSocket, QObject*);
   176 Q_SCRIPT_DECLARE_QMETAOBJECT(QScriptLocalServer, QObject*);
   177 Q_SCRIPT_DECLARE_QMETAOBJECT(QScriptLocalServer, QObject*);
       
   178 QT_END_NAMESPACE
   177 
   179 
   178 static void interactive(QScriptEngine &eng)
   180 static void interactive(QScriptEngine &eng)
   179 {
   181 {
   180     QTextStream qin(stdin, QFile::ReadOnly);
   182     QTextStream qin(stdin, QFile::ReadOnly);
   181 
   183