Subversion Repositories HomeAutomation

Rev

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

Rev 1625 Rev 1642
Line 67... Line 67...
67
 
67
 
68
void Timer::SlotOnTimeoutHandler(timer::TimerId timer_id, bool repeat)
68
void Timer::SlotOnTimeoutHandler(timer::TimerId timer_id, bool repeat)
69
{
69
{
70
    v8::Context::Scope context_scope(vm::Manager::Instance()->GetContext());
70
    v8::Context::Scope context_scope(vm::Manager::Instance()->GetContext());
71
 
71
 
72
    LOG.Debug(std::string(__FUNCTION__) + " called!");
72
    //LOG.Debug(std::string(__FUNCTION__) + " called!");
73
   
73
   
74
    if (!repeat)
74
    if (!repeat)
75
    {
75
    {
76
        Timers::iterator it = Timer::timers_.find(timer_id);
76
        Timers::iterator it = Timer::timers_.find(timer_id);
77
       
77
       
Line 90... Line 90...
90
 
90
 
91
Value Timer::Export_StartTimer(const v8::Arguments& args)
91
Value Timer::Export_StartTimer(const v8::Arguments& args)
92
{
92
{
93
    v8::Context::Scope context_scope(vm::Manager::Instance()->GetContext());
93
    v8::Context::Scope context_scope(vm::Manager::Instance()->GetContext());
94
   
94
   
95
    LOG.Debug(std::string(__FUNCTION__) + " called!");
95
    //LOG.Debug(std::string(__FUNCTION__) + " called!");
96
   
96
   
97
    if (args.Length() < 2)
97
    if (args.Length() < 2)
98
    {
98
    {
99
        LOG.Error("To few arguments.");
99
        LOG.Error("To few arguments.");
100
    }
100
    }
Line 108... Line 108...
108
 
108
 
109
Value Timer::Export_ClearTimer(const v8::Arguments& args)
109
Value Timer::Export_ClearTimer(const v8::Arguments& args)
110
{
110
{
111
    v8::Context::Scope context_scope(vm::Manager::Instance()->GetContext());
111
    v8::Context::Scope context_scope(vm::Manager::Instance()->GetContext());
112
   
112
   
113
    LOG.Debug(std::string(__FUNCTION__) + " called!");
113
    //LOG.Debug(std::string(__FUNCTION__) + " called!");
114
   
114
   
115
    if (args.Length() < 1)
115
    if (args.Length() < 1)
116
    {
116
    {
117
        LOG.Error("To few arguments.");
117
        LOG.Error("To few arguments.");
118
    }
118
    }
Line 130... Line 130...
130
 
130
 
131
Value Timer::Export_Sleep(const v8::Arguments& args)
131
Value Timer::Export_Sleep(const v8::Arguments& args)
132
{
132
{
133
    v8::Context::Scope context_scope(vm::Manager::Instance()->GetContext());
133
    v8::Context::Scope context_scope(vm::Manager::Instance()->GetContext());
134
   
134
   
135
    LOG.Debug(std::string(__FUNCTION__) + " called!");
135
    //LOG.Debug(std::string(__FUNCTION__) + " called!");
136
   
136
   
137
    if (args.Length() < 1)
137
    if (args.Length() < 1)
138
    {
138
    {
139
        LOG.Error("To few arguments.");
139
        LOG.Error("To few arguments.");
140
    }
140
    }