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 * @author Karol Majewski (k.majewski@samsung.com)
22 #ifndef WRTPLUGINSUIIPREFERENCES_H_
23 #define WRTPLUGINSUIIPREFERENCES_H_
25 #include <dpl/event/controller.h>
26 #include <commons/ThreadPool.h>
27 #include <commons/EventReceiver.h>
28 #include "IPreferencesEvents.h"
30 namespace WrtPlugins {
32 //============================================================
33 class IPreferences : public Platform::EventRequestReceiver< IEventSetWallpaper >,
34 public Platform::EventRequestReceiver< IEventSetCallRingtone >,
35 public Platform::EventRequestReceiver< IEventSetMessageRingtone >
38 IPreferences() : Platform::EventRequestReceiver< IEventSetWallpaper >(
39 Platform::ThreadEnum::UI_THREAD),
40 Platform::EventRequestReceiver< IEventSetCallRingtone >(Platform::
43 Platform::EventRequestReceiver< IEventSetMessageRingtone >(Platform::
49 virtual void OnRequestReceived(
50 const DPL::SharedPtr<IEventSetWallpaper> &event) = 0;
51 virtual void OnRequestReceived(
52 const DPL::SharedPtr<IEventSetCallRingtone> &event) = 0;
53 virtual void OnRequestReceived(
54 const DPL::SharedPtr<IEventSetMessageRingtone> &event) = 0;
57 virtual void setWallpaper(DPL::SharedPtr<IEventSetWallpaper> &event)
61 virtual void setCallRingtone(DPL::SharedPtr<IEventSetCallRingtone> &event)
65 virtual void setMessageRingtone(
66 DPL::SharedPtr<IEventSetMessageRingtone> &event)
71 virtual ~IPreferences()
74 //============================================================
78 #endif /* WRTPLUGINSUIIPREFERENCES_H_ */