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;
42 void setMime(const std::string &value)
46 std::string getMime() const
50 void setApplicationFullPath(const std::string &value)
52 m_applicationFullPath = value;
54 std::string getApplicationFullPath() const
56 return m_applicationFullPath;
58 void setApplicationName(const std::string &value)
60 m_applicationName = value;
62 std::string getApplicationName() const
64 return m_applicationName;
66 virtual void clearOnCancel()
69 EventGetDefaultApplication()
74 typedef DPL::SharedPtr<EventGetDefaultApplication>
75 EventGetDefaultApplicationPtr;
80 #endif /* _ABSTRACT_LAYER_EVENT_GET_DEFAULT_APPLICATION_H_ */