blob: e6fa805ac444071e31e19256cf057272bc851685 [file] [log] [blame]
San Mehatf1b736b2009-10-10 17:22:08 -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 */
16
17#ifndef _COMMANDLISTENER_H__
18#define _COMMANDLISTENER_H__
19
20#include <sysutils/FrameworkListener.h>
21#include "VoldCommand.h"
22
23class CommandListener : public FrameworkListener {
24public:
25 CommandListener();
26 virtual ~CommandListener() {}
27
28private:
29
San Mehateba65e92010-01-29 05:15:16 -080030 class VolumeCmd : public VoldCommand {
San Mehatf1b736b2009-10-10 17:22:08 -070031 public:
San Mehateba65e92010-01-29 05:15:16 -080032 VolumeCmd();
33 virtual ~VolumeCmd() {}
San Mehatf1b736b2009-10-10 17:22:08 -070034 int runCommand(SocketClient *c, int argc, char ** argv);
35 };
36
San Mehata2677e42009-12-13 10:40:18 -080037 class ShareCmd : public VoldCommand {
San Mehatf1b736b2009-10-10 17:22:08 -070038 public:
San Mehata2677e42009-12-13 10:40:18 -080039 ShareCmd();
40 virtual ~ShareCmd() {}
San Mehatf1b736b2009-10-10 17:22:08 -070041 int runCommand(SocketClient *c, int argc, char ** argv);
42 };
43
San Mehateba65e92010-01-29 05:15:16 -080044 class AsecCmd : public VoldCommand {
San Mehatf1b736b2009-10-10 17:22:08 -070045 public:
San Mehateba65e92010-01-29 05:15:16 -080046 AsecCmd();
47 virtual ~AsecCmd() {}
San Mehata19b2502010-01-06 10:33:53 -080048 int runCommand(SocketClient *c, int argc, char ** argv);
49 };
50
San Mehatf1b736b2009-10-10 17:22:08 -070051};
52
53#endif