Add DRAFT stubs for Vehicle plugin
[profile/ivi/wrt-plugins-tizen.git] / src / platform / API / Application / EventManageApplication.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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 TIZENAPIS_API_EVENT_MANAGE_APPLICATION_H_
18 #define TIZENAPIS_API_EVENT_MANAGE_APPLICATION_H_
19
20 #include <Commons/IEvent.h>
21 #include <dpl/shared_ptr.h>
22 #include "ApplicationInformation.h"
23 #include "ApplicationContext.h"
24
25 namespace TizenApis {
26 namespace Api {
27 namespace Application {
28
29 class EventManageApplication: public WrtDeviceApis::Commons::IEvent<EventManageApplication> {
30 private:
31         std::string                                     m_appId;
32         std::string                                     m_contextId;
33         std::string                                     m_argument;
34         int m_eventType;        
35
36 public:
37         static const int APP_MANAGER_UNKNOWN = 0;
38         static const int APP_MANAGER_KILL_APPLICATION = 1;
39         static const int APP_MANAGER_LAUNCH_APPLICATION = 2;
40
41 public:
42         void setAppId(std::string appId)
43         {
44                 m_appId = appId;
45         }
46
47         std::string getAppId() const
48         {
49                 return m_appId;
50         }
51
52         void setContextId(std::string contextId)
53         {
54                 m_contextId = contextId;
55         }
56
57         std::string getContextId() const
58         {
59                 return m_contextId;
60         }
61
62         void setArgument(std::string argu)
63         {
64                 m_argument = argu;
65         }
66
67         std::string getArgument() const
68         {
69                 return m_argument;
70         }
71
72         EventManageApplication() :
73                 m_eventType(APP_MANAGER_UNKNOWN)
74         {
75         }
76
77         void setEventType(int type){
78                 m_eventType = type;
79         }
80
81         int getEventType(){
82                 return m_eventType;
83         }       
84         
85 };
86
87 typedef DPL::SharedPtr<EventManageApplication> EventManageApplicationPtr;
88
89 } // Application
90 } // Api
91 } // TizenApis
92
93 #endif