Subversion Repositories HomeAutomation

Rev

Rev 1644 | Rev 1656 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1644 Rev 1647
Line 54... Line 54...
54
    void Start(std::string script_path);
54
    void Start(std::string script_path);
55
   
55
   
56
    void Call(std::string plugin_name, unsigned int request_id, std::string name, ArgumentListPointer arguments);
56
    void Call(std::string plugin_name, unsigned int request_id, std::string name, ArgumentListPointer arguments);
57
    void Execute(std::string plugin_name, unsigned int request_id, std::string code);
57
    void Execute(std::string plugin_name, unsigned int request_id, std::string code);
58
   
58
   
59
    void CallHandler(std::string plugin_name, unsigned int request_id, std::string name, ArgumentListPointer arguments);
59
    bool CallHandler(std::string plugin_name, unsigned int request_id, std::string name, ArgumentListPointer arguments);
60
    void ExecuteHandler(std::string plugin_name, unsigned int request_id, std::string code);
60
    void ExecuteHandler(std::string plugin_name, unsigned int request_id, std::string code);
61
   
61
   
62
    bool LoadScript(std::string scriptname);
62
    bool LoadScript(std::string scriptname);
63
    bool ImportFunction(std::string functionname);
63
    bool ImportFunction(std::string functionname);
64
   
64
   
Line 76... Line 76...
76
    v8::Persistent<v8::ObjectTemplate> object_template_;
76
    v8::Persistent<v8::ObjectTemplate> object_template_;
77
   
77
   
78
    PluginList plugins_;
78
    PluginList plugins_;
79
    ImportFunctionList functions_;
79
    ImportFunctionList functions_;
80
    common::StringList loaded_scripts_;
80
    common::StringList loaded_scripts_;
-
 
81
    std::string current_plugin_name_;
-
 
82
    unsigned int current_request_id_;    
81
   
83
   
82
    Manager();
84
    Manager();
83
   
85
   
84
    void StartHandler();
86
    void StartHandler();
85
 
87
 
-
 
88
    static Value Export_Log(const v8::Arguments& args);    
86
   
89
   
87
    void SendResponse(std::string plugin_name, unsigned int request_id, std::string response);
90
    void CallOutput(std::string output);
88
   
91
   
89
    std::string FormatException(v8::TryCatch& try_catch);
92
    std::string FormatException(v8::TryCatch& try_catch);
90
   
93
   
91
    logging::Logger LOG;
94
    logging::Logger LOG;
92
};
95
};