Subversion Repositories HomeAutomation

Rev

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

Rev 1608 Rev 1609
Line 63... Line 63...
63
    this->Call(0, "Module_OnChange", arguments);
63
    this->Call(0, "Module_OnChange", arguments);
64
}
64
}
65
 
65
 
66
void Module::SlotOnModuleMessage(std::string full_id, std::string command, type::StringMap variables)
66
void Module::SlotOnModuleMessage(std::string full_id, std::string command, type::StringMap variables)
67
{
67
{
-
 
68
    //LOG.Debug(std::string(__FUNCTION__) + " called!");
-
 
69
   
68
    ArgumentListPointer arguments = ArgumentListPointer(new ArgumentList);
70
    ArgumentListPointer arguments = ArgumentListPointer(new ArgumentList);
69
   
71
   
70
    arguments->push_back(v8::String::New(full_id.data()));
72
    arguments->push_back(v8::String::New(full_id.data()));
71
    arguments->push_back(v8::String::New(command.data()));
73
    arguments->push_back(v8::String::New(command.data()));
72
    arguments->push_back(v8::Uint32::New(variables.size()));
74
    arguments->push_back(v8::Uint32::New(variables.size()));
Line 80... Line 82...
80
    this->Call(0, "Module_OnMessage", arguments);
82
    this->Call(0, "Module_OnMessage", arguments);
81
}
83
}
82
 
84
 
83
Value Module::Export_SendModuleMessage(const v8::Arguments& args)
85
Value Module::Export_SendModuleMessage(const v8::Arguments& args)
84
{
86
{
85
    LOG.Debug(std::string(__FUNCTION__) + " called!");
87
    //LOG.Debug(std::string(__FUNCTION__) + " called!");
86
   
88
   
87
    if (args.Length() < 3)
89
    if (args.Length() < 3)
88
    {
90
    {
89
        LOG.Error("To few arguments.");
91
        LOG.Error("To few arguments.");
90
    }
92
    }