2 * Copyright (c) 2013, TOYOTA MOTOR CORPORATION.
4 * This program is licensed under the terms and conditions of the
5 * Apache License, version 2.0. The full text of the Apache License is at
6 * http://www.apache.org/licenses/LICENSE-2.0
10 //==========================================================================
12 * @file CicoSCInputController.h
14 * @brief This file is definition of CicoSCInputController class
16 //==========================================================================
17 #ifndef __CICO_SC_INPUT_CONTROLLER_H__
18 #define __CICO_SC_INPUT_CONTROLLER_H__
23 #include "CicoSCWlInputMgrIF.h"
25 //==========================================================================
26 // Forward declaration
27 //==========================================================================
32 //--------------------------------------------------------------------------
34 * @brief This class is controller of input device
36 //--------------------------------------------------------------------------
37 class CicoSCInputController : public CicoSCWlInputMgrIF
40 // default constructor
41 CicoSCInputController();
44 ~CicoSCInputController();
46 // initialize input device information
49 // executes an input control process corresponding to the command
50 void handleCommand(const CicoSCCommand *cmd);
52 // register input device control application
53 int addInputApp(const std::string &appid,
54 const std::string &device,
59 // unregister input device control application
60 int delInputApp(const std::string &appid,
61 const std::string &device,
64 // set input region information
65 int setInputRegion(const std::string &appid,
66 const std::string &winname,
79 // unset input region information
80 int unsetInputRegion(const std::string &appid,
81 const std::string &winname,
87 // callback to application for input switch information
88 void capabilitiesCB(void *data,
96 // callback to application for input code information
97 void codeCB(void *data,
100 const char *codename,
103 // callback to application for switch input
104 void inputCB(void *data,
111 // callback to application for change input region
112 void regionCB(void *data,
113 struct wl_array *region);
116 // assignment operator
117 CicoSCInputController& operator=(const CicoSCInputController &object);
120 CicoSCInputController(const CicoSCInputController &object);
123 // find input device information
124 CicoSCInputDev* findInputDev(const char *device);
126 // find input device switch information
127 CicoSCSwitch* findInputSwitch(const char *device, int input);
130 /// input device information list
131 std::vector<CicoSCInputDev*> m_inputDevList;
133 #endif // __CICO_SC_INPUT_CONTROLLER_H__
134 // vim:set expandtab ts=4 sw=4: