2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #ifndef TIZENAPIS_API_EVENT_MANAGE_APPLICATION_H_
18 #define TIZENAPIS_API_EVENT_MANAGE_APPLICATION_H_
20 #include <Commons/IEvent.h>
21 #include <dpl/shared_ptr.h>
22 #include "ApplicationInformation.h"
23 #include "ApplicationContext.h"
27 namespace Application {
29 class EventManageApplication: public WrtDeviceApis::Commons::IEvent<EventManageApplication> {
31 ApplicationInformationPtr m_appinfo;
32 ApplicationContextPtr m_contextinfo;
34 std::string m_contextId;
35 std::string m_argument;
39 static const int APP_MANAGER_UNKNOWN = 0;
40 static const int APP_MANAGER_KILL_APPLICATION = 1;
41 static const int APP_MANAGER_HIDE_APPLICATION = 2;
42 static const int APP_MANAGER_LAUNCH_APPLICATION = 3;
45 void setApplicationInformation(const ApplicationInformationPtr appinfo)
50 ApplicationInformationPtr getApplicationInformation() const
55 void setApplicationContext(const ApplicationContextPtr contextinfo)
57 m_contextinfo = contextinfo;
60 ApplicationContextPtr getApplicationContext() const
65 void setAppId(std::string appId)
70 std::string getAppId() const
75 void setContextId(std::string contextId)
77 m_contextId = contextId;
80 std::string getContextId() const
85 void setArgument(std::string argu)
90 std::string getArgument() const
95 EventManageApplication()
99 void setEventType(int type){
109 typedef DPL::SharedPtr<EventManageApplication> EventManageApplicationPtr;