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 IGalleryRequestManager.cpp
18 * @author Wojciech Bielawski (w.bielawski@samsung.com)
22 #include <Gallery/GalleryRequestManager.h>
23 #include "IGalleryRequestManager.h"
25 using namespace WrtPlugins::Platform;
27 namespace WrtPlugins {
30 void IGalleryRequestManager::getGalleries(const IEventGetGalleriesPtr &event)
32 EventRequestReceiver< IEventGetGalleries >::PostRequest(event);
35 void IGalleryRequestManager::open(const IEventOpenPtr &event)
37 EventRequestReceiver< IEventOpen >::PostRequest(event);
40 void IGalleryRequestManager::refresh(const IEventRefreshPtr &event)
42 EventRequestReceiver< IEventRefresh >::PostRequest(event);
45 void IGalleryRequestManager::close(const IEventClosePtr &event)
47 EventRequestReceiver< IEventClose >::PostRequest(event);
50 void IGalleryRequestManager::changeView(const IEventChangeViewPtr &event)
52 EventRequestReceiver< IEventChangeView >::PostRequest(event);
55 void IGalleryRequestManager::getMediaItems(const IEventGetMediaItemsPtr &event)
57 EventRequestReceiver< IEventGetMediaItems >::PostRequest(event);
60 void IGalleryRequestManager::getMediaItemById(
61 const IEventGetMediaItemByIdPtr &event)
63 EventRequestReceiver< IEventGetMediaItemById >::PostRequest(event);
65 //======== GalleryFactory
67 IGalleryRequestManagerPtr GalleryFactory::getGalleryManager()
69 static IGalleryRequestManagerPtr result(
70 new WrtPlugins::Platform::GalleryRequestManager());
74 GalleryFactory& GalleryFactory::getInstance()
76 static GalleryFactory theInstance;