Beta merge 2
[profile/ivi/wrt-plugins-tizen.git] / src / platform / API / Account / IAccountService.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        IAccount.cpp
20  * @author      Lukasz Marek (l.marek@samsung.com)
21  * @version     0.1
22  */
23
24 #include "IAccountService.h"
25 #include <Commons/ThreadPool.h>
26
27 namespace TizenApis {
28 namespace Api {
29 namespace Account{
30 IAccountService::IAccountService() :
31    
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),
37     m_id(0),
38     m_type(TYPE_INTERNET)
39 {
40 }
41
42 IAccountService::~IAccountService()
43 {
44 }
45
46 void IAccountService::createAccount(IEventCreateAccountPtr &event)
47 {
48     LogDebug("entered");
49     WrtDeviceApis::Commons::EventRequestReceiver<IEventCreateAccount>::PostRequest(event);
50 }
51
52 void IAccountService::addAccount(IEventAddAccountPtr &event)
53 {
54     LogDebug("entered");
55     WrtDeviceApis::Commons::EventRequestReceiver<IEventAddAccount>::PostRequest(event);
56 }
57
58
59 void IAccountService::updateAccount(IEventUpdateAccountPtr &event)
60 {
61     LogDebug("entered");
62     WrtDeviceApis::Commons::EventRequestReceiver<IEventUpdateAccount>::PostRequest(event);
63 }
64
65 void IAccountService::deleteAccount(IEventDeleteAccountPtr &event)
66 {
67     LogDebug("entered");
68     WrtDeviceApis::Commons::EventRequestReceiver<IEventDeleteAccount>::PostRequest(event);
69 }
70
71 void IAccountService::findAccounts(IEventFindAccountsPtr &event)
72 {
73     LogDebug("entered");
74     WrtDeviceApis::Commons::EventRequestReceiver<IEventFindAccounts>::PostRequest(event);
75 }
76
77
78 }
79 }
80 }