dbd4ef7c13bc3bd69f7bc0c00a3bf102b95aa9cd
[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   public:
42     void         setMime(const std::string &value)
43     {
44         m_mime = value;
45     }
46     std::string  getMime() const
47     {
48         return m_mime;
49     }
50     void         setApplicationFullPath(const std::string &value)
51     {
52         m_applicationFullPath = value;
53     }
54     std::string  getApplicationFullPath() const
55     {
56         return m_applicationFullPath;
57     }
58     void         setApplicationName(const std::string &value)
59     {
60         m_applicationName = value;
61     }
62     std::string  getApplicationName() const
63     {
64         return m_applicationName;
65     }
66     virtual void clearOnCancel()
67     {
68     }
69     EventGetDefaultApplication()
70     {
71     }
72 };
73
74 typedef DPL::SharedPtr<EventGetDefaultApplication>
75 EventGetDefaultApplicationPtr;
76 }
77 }
78 }
79
80 #endif /* _ABSTRACT_LAYER_EVENT_GET_DEFAULT_APPLICATION_H_ */