Beta merge 2
[profile/ivi/wrt-plugins-tizen.git] / src / platform / API / Account / EventAccount.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 #include "EventAccount.h"
19 #include <dpl/log/log.h>
20
21 /**
22  * @file        EventAccount.cpp
23  *
24  * @version     0.1
25  */
26
27 namespace TizenApis {
28 namespace Api {
29 namespace Account{
30 EventAccount::EventAccount():
31               m_accountid(UNDEFINED_ACCOUNT_ID)
32 {
33 }
34
35 EventAccount::~EventAccount()
36 {
37 }
38
39
40 bool EventAccount::validate() const
41 {
42 //TODO: is this necessary?
43 /*
44     if (m_status == INVALID_STATUS) {
45         LogError("Incorrect status value detected");
46         return false;
47     }*/
48     return true;
49 }
50
51
52 int EventAccount::getID() const
53 {
54     LogDebug("entered");
55     return m_accountid;
56 }
57
58 void EventAccount::setID(const int &value)
59 {
60     m_accountid = value;
61 }
62
63 std::string EventAccount::getAccountId() const
64 {
65     LogDebug("entered");
66     return m_AccountId;
67 }
68
69 void EventAccount::setAccountId(const std::string &value)
70 {
71     LogDebug("entered ");
72     m_AccountId = value;
73 }
74
75 std::string EventAccount::getDisplayName() const
76 {
77     LogDebug("entered");
78     return m_displayname;
79 }
80
81 void EventAccount::setDisplayName(const std::string &value)
82 {
83     LogDebug("entered");
84     m_displayname = value;
85 }
86
87 std::string EventAccount::getIconPath() const
88 {
89     LogDebug("entered");
90     return m_iconPath;
91 }
92
93 void EventAccount::setIconPath(const std::string &value)
94 {
95     LogDebug("entered");
96     m_iconPath = value;
97 }
98
99 std::string EventAccount::getProviderName() const
100 {
101     LogDebug("entered");
102     return m_providername;
103 }
104
105 void EventAccount::setProviderName(const std::string &value)
106 {
107     LogDebug("entered");
108     m_providername = value;
109 }
110
111 bool EventAccount::getEnabled() const
112 {
113     LogDebug("entered");
114     return m_enabled;
115 }
116
117 void EventAccount::setEnabled(bool &value)
118 {
119     LogDebug("entered");
120     m_enabled = value;
121 }
122
123 std::string EventAccount::getCredentailId() const
124 {
125     LogDebug("entered");
126     return m_credentialId;
127 }
128
129 void EventAccount::setCredentailId(const std::string &value)
130 {
131     LogDebug("entered");
132     m_credentialId = value;
133 }
134
135 std::string EventAccount::getSettings() const
136 {
137     LogDebug("entered");
138     return m_settings;
139 }
140
141 void EventAccount::setSettings(const std::string &value)
142 {
143     LogDebug("<<< value:[" << value << "]");
144     m_settings = value;
145 }
146
147 std::string EventAccount::getServiceTypeId() const
148 {
149     LogDebug("entered");
150     return m_serviceTypeId;
151 }
152
153 void EventAccount::setServiceTypeId(const std::string &value)
154 {
155     LogDebug("entered");
156     m_serviceTypeId = value;
157 }
158
159 std::string EventAccount::getProviderId() const
160 {
161     LogDebug("entered");
162     return m_providerId;
163 }
164
165 void EventAccount::setProviderId(const std::string &value)
166 {
167     LogDebug("entered");
168     m_providerId = value;
169 }
170
171 std::string EventAccount::getprefix() const
172 {
173     LogDebug("entered");
174     return m_prefix;
175 }
176
177 void EventAccount::setprefix(const std::string &value)
178 {
179     LogDebug("entered");
180     m_prefix = value;
181 }
182
183 std::string EventAccount::getUserName() const
184 {
185     LogDebug("entered");
186     return m_username;
187 }
188
189 void EventAccount::setUserName(const std::string &value)
190 {
191     LogDebug("entered");
192     m_username = value;
193 }
194
195 std::string EventAccount::getPackageName() const
196 {
197     LogDebug("entered");
198     return m_packagename;
199 }
200
201 void EventAccount::setPackageName(const std::string &value)
202 {
203     LogDebug("entered");
204     m_packagename = value;
205 }
206
207 std::string EventAccount::getEmailAddress() const
208 {
209     LogDebug("entered");
210     return m_emailaddress;
211 }
212
213 void EventAccount::setEmailAddress(const std::string &value)
214 {
215     LogDebug("entered");
216     m_emailaddress = value;
217 }
218
219 std::string EventAccount::getDomainName() const
220 {
221     LogDebug("entered");
222     return m_domainname;
223 }
224
225 void EventAccount::setDomainName(const std::string &value)
226 {
227     LogDebug("entered");
228     m_domainname = value;
229 }
230
231 AccountServicesArrayPtr EventAccount::getService() const
232 {
233     LogDebug("<<<");
234     return m_service;
235 }
236
237 void EventAccount::setService(const AccountServicesArrayPtr &value)
238 {
239     LogDebug("entered");
240         m_service = value;
241 }
242
243 }
244 }
245 }