10ea08eb11790d56b1237fdba60155f72c18c8b9
[profile/ivi/ico-uxf-homescreen.git] / lib / system-controller / CicoSCSwitch.h
1 /*
2  * Copyright (c) 2013, TOYOTA MOTOR CORPORATION.
3  *
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
7  *
8  */
9
10 //==========================================================================
11 /**
12  *  @file   CicoSCSwitch.h
13  *
14  *  @brief  This file is definition of CicoSCSwitch class
15  */
16 //==========================================================================
17 #ifndef __CICO_SC_SWITCH_H__
18 #define __CICO_SC_SWITCH_H__
19
20 #include <vector>
21 #include <string>
22
23 //==========================================================================
24 /**
25  *  @brief  This class hold input device switch information
26  */
27 //==========================================================================
28 class CicoSCSwitch
29 {
30 public:
31     // default constructor
32     CicoSCSwitch();
33
34     // destructor
35     virtual ~CicoSCSwitch();
36
37     // dump log CicoSCSwitch member variables
38     void dump(void);
39
40 private:
41     // assignment operator
42     CicoSCSwitch& operator=(const CicoSCSwitch &object);
43
44     // copy constructor
45     CicoSCSwitch(const CicoSCSwitch &object);
46
47 public:
48     static const int          SWITCH_NOFIX    = 0;
49     static const int          SWITCH_FIX      = 1;
50     static const unsigned int SWITCH_CODE_MAX = 8;
51     std::string swname; //!< input switch name
52     int         input;  //!< input switch number
53     bool        fix;    //!< fixed application switch
54     std::vector<int>    code;       //!< input switch code value
55     std::vector<string> codename;   //!< input switch code name
56 };
57 #endif  // __CICO_SC_SWITCH_H__
58 // vim:set expandtab ts=4 sw=4: