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 * @file EventGetDefaultApplication.h
18 * @author Lukasz Marek (l.marek@samsung.com)
23 #ifndef _ABSTRACT_LAYER_EVENT_GET_DEFAULT_APPLICATION_H_
24 #define _ABSTRACT_LAYER_EVENT_GET_DEFAULT_APPLICATION_H_
27 #include <dpl/shared_ptr.h>
28 #include <commons/IEvent.h>
29 #include <commons/EventReceiver.h>
31 namespace WrtPlugins {
33 namespace AppLauncher {
34 /* this event is sent when default application is get */
35 class EventGetDefaultApplication : public WrtPlugins::Platform::IEvent<
36 EventGetDefaultApplication>
38 std::string m_applicationFullPath;
39 std::string m_applicationName;
43 void setMime(const std::string &value)
47 std::string getMime() const
51 void setApplicationFullPath(const std::string &value)
53 m_applicationFullPath = value;
55 std::string getApplicationFullPath() const
57 return m_applicationFullPath;
59 void setApplicationName(const std::string &value)
61 m_applicationName = value;
63 std::string getApplicationName() const
65 return m_applicationName;
67 virtual void clearOnCancel()
69 EventGetDefaultApplication()
73 typedef DPL::SharedPtr<EventGetDefaultApplication>
74 EventGetDefaultApplicationPtr;
79 #endif /* _ABSTRACT_LAYER_EVENT_GET_DEFAULT_APPLICATION_H_ */