7b9febe415549e1ddef076f551f7f747e28398d2
[profile/ivi/wrt-plugins-tizen.git] / src / platform / API / Account / IAccountManager.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
17
18 /**
19  * @file        IAccountManager.cpp
20  * @author      Lukasz Marek (l.marek@samsung.com)
21  * @version     0.1
22  */
23
24 #include "IAccountManager.h"
25 #include <Commons/ThreadPool.h>
26
27 namespace TizenApis {
28 namespace Api {
29 namespace Account{
30 IAccountManager::IAccountManager() :
31     WrtDeviceApis::Commons::EventRequestReceiver< IEventGetAccountServices >(WrtDeviceApis::Commons::ThreadEnum::ACCOUNT_THREAD),
32     WrtDeviceApis::Commons::EventRequestReceiver< IEventAddAccount >(WrtDeviceApis::Commons::ThreadEnum::ACCOUNT_THREAD),
33     WrtDeviceApis::Commons::EventRequestReceiver< IEventDeleteAccount >(WrtDeviceApis::Commons::ThreadEnum::ACCOUNT_THREAD),
34     WrtDeviceApis::Commons::EventRequestReceiver<IEventFindAccounts>(WrtDeviceApis::Commons::ThreadEnum::ACCOUNT_THREAD),
35     WrtDeviceApis::Commons::EventRequestReceiver<IEventUpdateAccount>(WrtDeviceApis::Commons::ThreadEnum::ACCOUNT_THREAD),
36     WrtDeviceApis::Commons::EventRequestReceiver<IEventGetAccountById>(WrtDeviceApis::Commons::ThreadEnum::ACCOUNT_THREAD),
37     WrtDeviceApis::Commons::EventRequestReceiver<IEventGetServiceTypeById>(WrtDeviceApis::Commons::ThreadEnum::ACCOUNT_THREAD),
38     WrtDeviceApis::Commons::EventRequestReceiver<IEventGetProviderById>(WrtDeviceApis::Commons::ThreadEnum::ACCOUNT_THREAD),
39     WrtDeviceApis::Commons::EventRequestReceiver<IEventFindProviders>(WrtDeviceApis::Commons::ThreadEnum::ACCOUNT_THREAD),
40           WrtDeviceApis::Commons::EventRequestReceiver< IEventFindServiceTypes>(WrtDeviceApis::Commons::ThreadEnum::ACCOUNT_THREAD)
41 {
42     LogDebug("entered");
43 }
44
45 IAccountManager::~IAccountManager()
46 {
47     LogDebug("entered");
48 }
49
50
51 void IAccountManager::getAccountServices(const IEventGetAccountServicesPtr &event)
52 {
53     LogDebug("entered");
54     WrtDeviceApis::Commons::EventRequestReceiver<IEventGetAccountServices>::PostRequest(event);
55 }
56
57 void IAccountManager::addAccount(const IEventAddAccountPtr &event)
58 {
59     LogDebug("entered");
60     WrtDeviceApis::Commons::EventRequestReceiver<IEventAddAccount>::PostRequest(event);
61 }
62
63 void IAccountManager::deleteAccount(const IEventDeleteAccountPtr &event)
64 {
65     LogDebug("entered");
66     WrtDeviceApis::Commons::EventRequestReceiver<IEventDeleteAccount>::PostRequest(event);
67 }
68
69 void IAccountManager::findAccounts(const IEventFindAccountsPtr &event)
70 {
71     LogDebug("entered");
72     WrtDeviceApis::Commons::EventRequestReceiver<IEventFindAccounts>::PostRequest(event);
73 }
74
75 void IAccountManager::findServiceTypes(const IEventFindServiceTypesPtr &event){
76         LogDebug("<<<");
77         WrtDeviceApis::Commons::EventRequestReceiver<IEventFindServiceTypes>::PostRequest(event);
78 }
79
80
81 void IAccountManager::updateAccount(const IEventUpdateAccountPtr &event)
82 {
83     LogDebug("entered");
84     WrtDeviceApis::Commons::EventRequestReceiver<IEventUpdateAccount>::PostRequest(event);
85 }
86
87 void IAccountManager::getAccountById(const IEventGetAccountByIdPtr &event)
88 {
89     LogDebug("entered");
90     WrtDeviceApis::Commons::EventRequestReceiver<IEventGetAccountById>::PostRequest(event);
91 }
92
93 void IAccountManager::getServiceTypeById(const IEventGetServiceTypeByIdPtr &event)
94 {
95     LogDebug("entered");
96     WrtDeviceApis::Commons::EventRequestReceiver<IEventGetServiceTypeById>::PostRequest(event);
97 }
98
99 void IAccountManager::getProviderById(const IEventGetProviderByIdPtr &event)
100 {
101     LogDebug("entered");
102     WrtDeviceApis::Commons::EventRequestReceiver<IEventGetProviderById>::PostRequest(event);
103 }
104
105 void IAccountManager::FindProviders(const IEventFindProvidersPtr &event)
106 {
107     LogDebug("entered");
108     WrtDeviceApis::Commons::EventRequestReceiver<IEventFindProviders>::PostRequest(event);
109 }
110
111 }
112 }
113 }