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.
20 * @author Lukasz Marek (l.marek@samsung.com)
24 #include "IAccountService.h"
25 #include <Commons/ThreadPool.h>
30 IAccountService::IAccountService() :
32 WrtDeviceApis::Commons::EventRequestReceiver<IEventDeleteAccount>(WrtDeviceApis::Commons::ThreadEnum::ACCOUNT_THREAD),
33 WrtDeviceApis::Commons::EventRequestReceiver<IEventUpdateAccount>(WrtDeviceApis::Commons::ThreadEnum::ACCOUNT_THREAD),
34 WrtDeviceApis::Commons::EventRequestReceiver<IEventFindAccounts>(WrtDeviceApis::Commons::ThreadEnum::ACCOUNT_THREAD),
35 WrtDeviceApis::Commons::EventRequestReceiver<IEventCreateAccount>(WrtDeviceApis::Commons::ThreadEnum::ACCOUNT_THREAD),
36 WrtDeviceApis::Commons::EventRequestReceiver<IEventAddAccount>(WrtDeviceApis::Commons::ThreadEnum::ACCOUNT_THREAD),
42 IAccountService::~IAccountService()
46 void IAccountService::createAccount(IEventCreateAccountPtr &event)
49 WrtDeviceApis::Commons::EventRequestReceiver<IEventCreateAccount>::PostRequest(event);
52 void IAccountService::addAccount(IEventAddAccountPtr &event)
55 WrtDeviceApis::Commons::EventRequestReceiver<IEventAddAccount>::PostRequest(event);
59 void IAccountService::updateAccount(IEventUpdateAccountPtr &event)
62 WrtDeviceApis::Commons::EventRequestReceiver<IEventUpdateAccount>::PostRequest(event);
65 void IAccountService::deleteAccount(IEventDeleteAccountPtr &event)
68 WrtDeviceApis::Commons::EventRequestReceiver<IEventDeleteAccount>::PostRequest(event);
71 void IAccountService::findAccounts(IEventFindAccountsPtr &event)
74 WrtDeviceApis::Commons::EventRequestReceiver<IEventFindAccounts>::PostRequest(event);