Commit 8bf5584b authored by Jan Möbius's avatar Jan Möbius

Added missing template

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@5065 383ad7c9-94d9-4d36-a494-682f7c89f535
parent f958a8db
......@@ -142,6 +142,16 @@ ReturnValue callFunctionValue( QString _plugin, QString _functionName, T0 _t0 ,
return qscriptvalue_cast<ReturnValue>( callFunction(_plugin,_functionName,parameters) );
}
template <typename ReturnValue , typename T0, typename T1 , typename T2 >
ReturnValue callFunctionValue( QString _plugin, QString _functionName, T0 _t0 , T1 _t1 , T2 _t2 ) {
QScriptEngine* engine = getScriptEngine();
std::vector< QScriptValue > parameters;
parameters.push_back( QScriptValue( engine,_t0 ) );
parameters.push_back( QScriptValue( engine,_t1 ) );
parameters.push_back( QScriptValue( engine,_t2 ) );
return qscriptvalue_cast<ReturnValue>( callFunction(_plugin,_functionName,parameters) );
}
template <typename ReturnValue , typename T0, typename T1 , typename T2, typename T3>
ReturnValue callFunctionValue( QString _plugin, QString _functionName, T0 _t0 , T1 _t1 , T2 _t2 , T3 _t3 ) {
QScriptEngine* engine = getScriptEngine();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment