Adapt the AIL filter used to new ones
[profile/ivi/ico-uxf-homescreen.git] / lib / system-controller / CicoSCMessageRes.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   CicoSCMessageRes.h
13  *
14  *  @brief  This file is definition of CicoSCMessage class
15  */
16 //==========================================================================
17 #ifndef __CICO_SC_MESSAGE_RES_H__
18 #define __CICO_SC_MESSAGE_RES_H__
19
20 #include <string>
21
22 #include <json-glib/json-glib.h>
23 #include "CicoSCMessage.h"
24
25 //==========================================================================
26 //  forward declaration
27 //==========================================================================
28
29 //==========================================================================
30 /**
31  *  @brief  This class hold communication message
32  */
33 //==========================================================================
34 class CicoSCMessageRes :public CicoSCMessage
35 {
36 public:
37     // default constructor
38     CicoSCMessageRes();
39
40     // destructor
41     ~CicoSCMessageRes();
42
43     // add argument object for char pointer type
44     void addWinObject(const char * key, const char * value);
45
46     // add argument object for string type
47     void addWinObject(const char * key, const std::string & value);
48
49     // add argument object for integer type
50     void addWinObject(const char * key, int value);
51
52     // add argument object for char pointer type
53     void addSndObject(const char * key, const char * value);
54
55     // add argument object for string type
56     void addSndObject(const char * key, const std::string & value);
57
58     // add argument object for integer type
59     void addSndObject(const char * key, int value);
60
61     // add argument object for char pointer type
62     void addInpObject(const char * key, const char * value);
63
64     // add argument object for string type
65     void addInpObject(const char * key, const std::string & value);
66
67     // add argument object for integer type
68     void addInpObject(const char * key, int value);
69
70     // get message data
71     virtual const char* getData(void);
72
73 private:
74
75 private:
76     JsonObject          *m_winObj;      //!< json window objects
77     JsonObject          *m_sndObj;      //!< json sound objects
78     JsonObject          *m_inpObj;      //!< json input objects
79     int                 m_winCnt;
80     int                 m_sndCnt;
81     int                 m_inpCnt;
82 };
83 #endif  // __CICO_SC_MESSAGE_RES_H__
84 // vim:set expandtab ts=4 sw=4: