2 // Tizen Web Device API
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
29 m_syncMode = UNDEFINED_MODE;
30 m_syncType = UNDEFINED_TYPE;
31 m_syncInterval = INTERVAL_UNDEFINED;
34 SyncInfo::SyncInfo(std::string url, std::string id, std::string password, SyncMode syncMode, SyncType syncType, SyncInterval syncInterval)
38 m_password = password;
39 m_syncMode = syncMode;
40 m_syncType = syncType;
41 m_syncInterval = syncInterval;
48 std::string SyncInfo::getUrl() const
53 void SyncInfo::setUrl(const std::string &url)
58 std::string SyncInfo::getId() const
63 void SyncInfo::setId(const std::string &id)
68 std::string SyncInfo::getPassword() const
73 void SyncInfo::setPassword(const std::string &password)
75 m_password = password;
78 SyncInfo::SyncMode SyncInfo::getSyncMode() const
83 void SyncInfo::setSyncMode(SyncInfo::SyncMode syncMode)
85 m_syncMode = syncMode;
88 SyncInfo::SyncType SyncInfo::getSyncType() const
93 void SyncInfo::setSyncType(SyncInfo::SyncType syncType)
95 m_syncType = syncType;
98 SyncInfo::SyncInterval SyncInfo::getSyncInterval() const
100 return m_syncInterval;
103 void SyncInfo::setSyncInterval(SyncInfo::SyncInterval syncInterval)
105 m_syncInterval = syncInterval;