Tizen 2.1 base
[platform/framework/web/wrt-plugins-common.git] / src / modules / API / MMPlayer / IManager.cpp
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 #include "IManager.h"
17 #include <MMPlayer/Manager.h>
18 #include <Commons/ThreadPool.h>
19
20 namespace WrtDeviceApis {
21 namespace MMPlayer {
22 namespace Api {
23
24 using namespace Commons;
25
26 IManager& IManager::getInstance()
27 {
28     static Manager instance;
29     return instance;
30 }
31
32 IManager::IManager() :
33     EventRequestReceiver<EventOpen>(ThreadEnum::MMPLAYER_THREAD),
34     EventRequestReceiver<EventPlay>(ThreadEnum::MMPLAYER_THREAD),
35     EventRequestReceiver<EventPause>(ThreadEnum::MMPLAYER_THREAD),
36     EventRequestReceiver<EventResume>(ThreadEnum::MMPLAYER_THREAD),
37     EventRequestReceiver<EventStop>(ThreadEnum::MMPLAYER_THREAD),
38     EventRequestReceiver<EventIsPlaying>(ThreadEnum::MMPLAYER_THREAD),
39     EventRequestReceiver<EventSetWindow>(ThreadEnum::MMPLAYER_THREAD),
40     EventRequestReceiver<EventGetVolume>(ThreadEnum::MMPLAYER_THREAD)
41 {
42 }
43
44 IManager::~IManager()
45 {
46 }
47
48 }
49 }
50 }