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_GET_APPLICATION_H_
18 #define TIZENAPIS_API_EVENT_GET_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 EventGetApplication: public WrtDeviceApis::Commons::IEvent<EventGetApplication> {
31 ApplicationInformationPtr m_appinfo;
32 ApplicationContextPtr m_contextinfo;
34 std::string m_contextId;
38 static const int APP_MANAGER_UNKNOWN = 0;
39 static const int APP_MANAGER_GET_INFORMATION = 1;
40 static const int APP_MANAGER_GET_CONTEXT = 2;
43 void setApplicationInformation(const ApplicationInformationPtr appinfo)
48 ApplicationInformationPtr getApplicationInformation() const
53 void setApplicationContext(const ApplicationContextPtr contextinfo)
55 m_contextinfo = contextinfo;
58 ApplicationContextPtr getApplicationContext() const
63 void setAppId(std::string appId)
68 std::string getAppId() const
73 void setContextId(std::string contextId)
75 m_contextId = contextId;
78 std::string getContextId() const
83 EventGetApplication() :
86 m_eventType(APP_MANAGER_UNKNOWN)
90 void setEventType(int type){
100 typedef DPL::SharedPtr<EventGetApplication> EventGetApplicationPtr;