blob: 30c6dc0544f50511db6c31254fcc5425f9a1420d [file] [log] [blame]
San Mehatdc266072009-05-06 11:16:52 -07001/*
2 * Copyright (C) 2008 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
San Mehat3c5a6f02009-05-22 15:36:13 -070016
San Mehatdc266072009-05-06 11:16:52 -070017#ifndef _COMMANDLISTENER_H__
18#define _COMMANDLISTENER_H__
19
20#include <sysutils/FrameworkListener.h>
21#include "NexusCommand.h"
22
San Mehatdc266072009-05-06 11:16:52 -070023class CommandListener : public FrameworkListener {
San Mehatdc266072009-05-06 11:16:52 -070024public:
San Mehat1441e762009-05-07 11:37:10 -070025 CommandListener();
San Mehatdc266072009-05-06 11:16:52 -070026 virtual ~CommandListener() {}
27
28private:
San Mehatdc266072009-05-06 11:16:52 -070029
30 class WifiScanCmd : public NexusCommand {
31 public:
San Mehat1441e762009-05-07 11:37:10 -070032 WifiScanCmd();
San Mehatdc266072009-05-06 11:16:52 -070033 virtual ~WifiScanCmd() {}
San Mehat3aff2d12009-06-15 14:10:44 -070034 int runCommand(SocketClient *c, int argc, char ** argv);
San Mehat1441e762009-05-07 11:37:10 -070035 };
36
37 class WifiScanResultsCmd : public NexusCommand {
38 public:
39 WifiScanResultsCmd();
40 virtual ~WifiScanResultsCmd() {}
San Mehat3aff2d12009-06-15 14:10:44 -070041 int runCommand(SocketClient *c, int argc, char ** argv);
San Mehatdc266072009-05-06 11:16:52 -070042 };
43
San Mehat3c5a6f02009-05-22 15:36:13 -070044 class WifiCreateNetworkCmd : public NexusCommand {
San Mehat82a21162009-05-12 17:26:28 -070045 public:
San Mehat3c5a6f02009-05-22 15:36:13 -070046 WifiCreateNetworkCmd();
47 virtual ~WifiCreateNetworkCmd() {}
San Mehat3aff2d12009-06-15 14:10:44 -070048 int runCommand(SocketClient *c, int argc, char ** argv);
San Mehat82a21162009-05-12 17:26:28 -070049 };
50
51 class WifiRemoveNetworkCmd : public NexusCommand {
52 public:
53 WifiRemoveNetworkCmd();
54 virtual ~WifiRemoveNetworkCmd() {}
San Mehat3aff2d12009-06-15 14:10:44 -070055 int runCommand(SocketClient *c, int argc, char ** argv);
San Mehat82a21162009-05-12 17:26:28 -070056 };
57
58 class WifiListNetworksCmd : public NexusCommand {
59 public:
60 WifiListNetworksCmd();
61 virtual ~WifiListNetworksCmd() {}
San Mehat3aff2d12009-06-15 14:10:44 -070062 int runCommand(SocketClient *c, int argc, char ** argv);
San Mehat82a21162009-05-12 17:26:28 -070063 };
64
San Mehat48765672009-05-20 15:28:43 -070065 class SetCmd : public NexusCommand {
San Mehat82a21162009-05-12 17:26:28 -070066 public:
San Mehat48765672009-05-20 15:28:43 -070067 SetCmd();
68 virtual ~SetCmd() {}
San Mehat3aff2d12009-06-15 14:10:44 -070069 int runCommand(SocketClient *c, int argc, char ** argv);
San Mehat82a21162009-05-12 17:26:28 -070070 };
71
San Mehat48765672009-05-20 15:28:43 -070072 class GetCmd : public NexusCommand {
San Mehat82a21162009-05-12 17:26:28 -070073 public:
San Mehat48765672009-05-20 15:28:43 -070074 GetCmd();
75 virtual ~GetCmd() {}
San Mehat3aff2d12009-06-15 14:10:44 -070076 int runCommand(SocketClient *c, int argc, char ** argv);
San Mehat82a21162009-05-12 17:26:28 -070077 };
San Mehat192331d2009-05-22 13:58:06 -070078
79 class ListCmd : public NexusCommand {
80 public:
81 ListCmd();
82 virtual ~ListCmd() {}
San Mehat3aff2d12009-06-15 14:10:44 -070083 int runCommand(SocketClient *c, int argc, char ** argv);
San Mehat192331d2009-05-22 13:58:06 -070084 };
San Mehatdc266072009-05-06 11:16:52 -070085};
86
87#endif