Subversion Repositories HomeAutomation

Rev

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

Rev 1614 Rev 1625
Line 36... Line 36...
36
class Module : public Plugin
36
class Module : public Plugin
37
{
37
{
38
public:
38
public:
39
    typedef boost::shared_ptr<Module> Pointer;
39
    typedef boost::shared_ptr<Module> Pointer;
40
   
40
   
41
    Module();
41
    Module(boost::asio::io_service& io_service);
42
    virtual ~Module();
42
    virtual ~Module();
43
   
43
   
44
    void InitializeDone();
44
    void InitializeDone();
45
   
45
   
46
private:
46
private:
47
    static logging::Logger LOG;
47
    static logging::Logger LOG;
48
   
48
   
49
    void SlotOnNodeChange(unsigned int node_id, bool available);
49
    void SlotOnNodeChange(unsigned int node_id, bool available);
50
    void SlotOnModuleChange(std::string full_id, bool available);
50
    void SlotOnModuleChange(std::string full_id, bool available);
51
    void SlotOnModuleMessage(std::string full_id, std::string command, type::StringMap variables);
51
    void SlotOnModuleMessage(std::string full_id, std::string command, type::StringMap variables);
-
 
52
   
-
 
53
    void SlotOnNodeChangeHandler(unsigned int node_id, bool available);
-
 
54
    void SlotOnModuleChangeHandler(std::string full_id, bool available);
-
 
55
    void SlotOnModuleMessageHandler(std::string full_id, std::string command, type::StringMap variables);
52
   
56
   
53
    static Value Export_SendModuleMessage(const v8::Arguments& args);
57
    static Value Export_SendModuleMessage(const v8::Arguments& args);
54
    static Value Export_IsModuleAvailable(const v8::Arguments& args);
58
    static Value Export_IsModuleAvailable(const v8::Arguments& args);
55
   
59
   
56
   
60