merge with master
[platform/framework/web/wrt-plugins-common.git] / src / modules / API / DEPRACATED / AppLauncher / EventGetDefaultApplication.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  * @file        EventGetDefaultApplication.h
18  * @author      Lukasz Marek (l.marek@samsung.com)
19  * @version     0.1
20  * @brief
21  */
22
23 #ifndef _ABSTRACT_LAYER_EVENT_GET_DEFAULT_APPLICATION_H_
24 #define _ABSTRACT_LAYER_EVENT_GET_DEFAULT_APPLICATION_H_
25
26 #include <string>
27 #include <dpl/shared_ptr.h>
28 #include <commons/IEvent.h>
29 #include <commons/EventReceiver.h>
30
31 namespace WrtPlugins {
32 namespace Api {
33 namespace AppLauncher {
34 /* this event is sent when default application is get */
35 class EventGetDefaultApplication : public WrtPlugins::Platform::IEvent<
36         EventGetDefaultApplication>
37 {
38     std::string m_applicationFullPath;
39     std::string m_applicationName;
40     std::string m_mime;
41
42   public:
43     void         setMime(const std::string &value)
44     {
45         m_mime = value;
46     }
47     std::string  getMime() const
48     {
49         return m_mime;
50     }
51     void         setApplicationFullPath(const std::string &value)
52     {
53         m_applicationFullPath = value;
54     }
55     std::string  getApplicationFullPath() const
56     {
57         return m_applicationFullPath;
58     }
59     void         setApplicationName(const std::string &value)
60     {
61         m_applicationName = value;
62     }
63     std::string  getApplicationName() const
64     {
65         return m_applicationName;
66     }
67     virtual void clearOnCancel()
68     {}
69     EventGetDefaultApplication()
70     {}
71 };
72
73 typedef DPL::SharedPtr<EventGetDefaultApplication>
74 EventGetDefaultApplicationPtr;
75 }
76 }
77 }
78
79 #endif /* _ABSTRACT_LAYER_EVENT_GET_DEFAULT_APPLICATION_H_ */