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.
18 #include "EventAccount.h"
19 #include <dpl/log/log.h>
22 * @file EventAccount.cpp
30 EventAccount::EventAccount():
31 m_accountid(UNDEFINED_ACCOUNT_ID)
35 EventAccount::~EventAccount()
40 bool EventAccount::validate() const
42 //TODO: is this necessary?
44 if (m_status == INVALID_STATUS) {
45 LogError("Incorrect status value detected");
52 int EventAccount::getID() const
58 void EventAccount::setID(const int &value)
63 std::string EventAccount::getAccountId() const
69 void EventAccount::setAccountId(const std::string &value)
75 std::string EventAccount::getDisplayName() const
81 void EventAccount::setDisplayName(const std::string &value)
84 m_displayname = value;
87 std::string EventAccount::getIconPath() const
93 void EventAccount::setIconPath(const std::string &value)
99 std::string EventAccount::getProviderName() const
102 return m_providername;
105 void EventAccount::setProviderName(const std::string &value)
108 m_providername = value;
111 bool EventAccount::getEnabled() const
117 void EventAccount::setEnabled(bool &value)
123 unsigned long EventAccount::getCredentailId() const
126 return m_credentialId;
129 void EventAccount::setCredentailId(unsigned long &value)
132 m_credentialId = value;
135 std::string EventAccount::getSettings() const
141 void EventAccount::setSettings(const std::string &value)
147 std::string EventAccount::getServiceTypeId() const
150 return m_serviceTypeId;
153 void EventAccount::setServiceTypeId(const std::string &value)
156 m_serviceTypeId = value;
159 std::string EventAccount::getProviderId() const
165 void EventAccount::setProviderId(const std::string &value)
168 m_providerId = value;
171 std::string EventAccount::getprefix() const
177 void EventAccount::setprefix(const std::string &value)
183 std::string EventAccount::getUserName() const
189 void EventAccount::setUserName(const std::string &value)
195 std::string EventAccount::getPackageName() const
198 return m_packagename;
201 void EventAccount::setPackageName(const std::string &value)
204 m_packagename = value;
207 std::string EventAccount::getEmailAddress() const
210 return m_emailaddress;
213 void EventAccount::setEmailAddress(const std::string &value)
216 m_emailaddress = value;
219 std::string EventAccount::getDomainName() const
225 void EventAccount::setDomainName(const std::string &value)
228 m_domainname = value;
231 AccountServicesArrayPtr EventAccount::getService() const
237 void EventAccount::setService(const AccountServicesArrayPtr &value)