tizen 2.3.1 release
[framework/web/wearable/wrt-plugins-tizen.git] / src / Application / EventApplicationGetAppSharedURI.h
1 //
2 // Tizen Web Device API
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 // http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an AS IS BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17
18 #ifndef TIZENAPIS_API_APPLICATION_EVENT_GET_APP_SHARED_URI_H_
19 #define TIZENAPIS_API_APPLICATION_EVENT_GET_APP_SHARED_URI_H_
20
21
22 #include <Commons/IEvent.h>
23 #include <dpl/shared_ptr.h>
24
25 namespace DeviceAPI {
26 namespace Application {
27
28 class EventApplicationGetAppSharedURI :
29         public WrtDeviceApis::Commons::IEvent<EventApplicationGetAppSharedURI>
30 {
31 private:
32     std::string m_appId;
33     std::string m_sharedURI;
34
35 public:
36     void setAppId(std::string appId)
37     {
38         LOGD("Entered");
39         m_appId = appId;
40     }
41
42     std::string getAppId()
43     {
44         LOGD("Entered");
45         return m_appId;
46     }
47
48     void setSharedURI(std::string &sharedURI)
49     {
50         LOGD("Entered");
51         m_sharedURI = sharedURI;
52     }
53
54     std::string getSharedURI() const
55     {
56         LOGD("Entered");
57         return m_sharedURI;
58     }
59
60     EventApplicationGetAppSharedURI()
61     {
62         LOGD("Entered");
63     }
64 };
65
66 typedef DPL::SharedPtr<EventApplicationGetAppSharedURI> EventApplicationGetAppSharedURIPtr;
67
68 } // Application
69 } // DeviceAPI
70
71 #endif // TIZENAPIS_API_APPLICATION_EVENT_GET_APP_SHARED_URI_H_