Subversion Repositories HomeAutomation

Rev

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

Rev 1609 Rev 1620
Line 63... Line 63...
63
void Console::InitializeDone()
63
void Console::InitializeDone()
64
{
64
{
65
    Plugin::InitializeDone();
65
    Plugin::InitializeDone();
66
   
66
   
67
    this->ImportFunction("Console_DoAutocomplete");
67
    this->ImportFunction("Console_DoAutocomplete");
-
 
68
    this->ImportFunction("Console_PromptResponse");
68
}
69
}
69
 
70
 
70
void Console::SlotOnNewData(net::ClientId client_id, net::ServerId server_id, type::Byteset data)
71
void Console::SlotOnNewData(net::ClientId client_id, net::ServerId server_id, type::Byteset data)
71
{
72
{
72
    if (server_id != this->server_id_)
73
    if (server_id != this->server_id_)
Line 129... Line 130...
129
        {
130
        {
130
            call_arguments->push_back(v8::String::New(arguments[n].data()));
131
            call_arguments->push_back(v8::String::New(arguments[n].data()));
131
        }
132
        }
132
       
133
       
133
        this->Call(client_id, command, call_arguments);
134
        this->Call(client_id, command, call_arguments);
-
 
135
    }
-
 
136
    else if (parts[0] == "R")
-
 
137
    {
-
 
138
        ArgumentListPointer call_arguments = ArgumentListPointer(new ArgumentList);
-
 
139
       
-
 
140
        call_arguments->push_back(v8::String::New(parts[1].data()));
-
 
141
        call_arguments->push_back(v8::String::New(parts[2].data()));
-
 
142
       
-
 
143
        this->Call(client_id, "Console_PromptResponse", call_arguments);
134
    }
144
    }
135
}
145
}
136
 
146
 
137
void Console::SlotOnNewState(net::ClientId client_id, net::ServerId server_id, net::ClientState client_state)
147
void Console::SlotOnNewState(net::ClientId client_id, net::ServerId server_id, net::ClientState client_state)
138
{
148
{