[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/kexi/scripting/api
From:       Sebastian Sauer <mail () dipe ! org>
Date:       2005-03-03 0:07:17
Message-ID: 20050303000717.1178D17882 () office ! kde ! org
[Download RAW message or body]

CVS commit by sebsauer: 

Some stuff I forgot to commit.


  M +5 -3      script.cpp   1.2


--- koffice/kexi/scripting/api/script.cpp  #1.1:1.2
@@ -63,12 +63,14 @@ bool Script::execute()
 }
 
-const QVariant& execute(const QString& name, const QVariant& args)
+const QVariant& Script::execute(const QString& name, const QVariant& args)
 {
     //TODO
 }
 
-Kross::Api::Object* execute(const QString& name, Kross::Api::List* args)
+Kross::Api::Object* Script::execute(const QString& name, Kross::Api::List* args)
 {
-    //TODO
+    Interpreter* interpreter = m_manager->getInterpreter(m_interpreter);
+    if(! interpreter) return false;
+    return interpreter->execute(m_code, name, args);
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic