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.
19 #ifndef _ABSTRACT_LAYER_SYNC_SERVICE_INFO_H_
20 #define _ABSTRACT_LAYER_SYNC_SERVICE_INFO_H_
36 UNDEFINED_SERVICE_TYPE
40 SyncServiceInfo(bool enable, SyncServiceType syncServiceType, std::string serverDatabaseUri, std::string id, std::string password);
41 virtual ~SyncServiceInfo();
43 bool getEnable() const;
44 void setEnable(bool value);
46 SyncServiceType getSyncServiceType() const;
47 void setSyncServiceType(SyncServiceType value);
49 std::string getServerDatabaseUri() const;
50 void setServerDatabaseUri(const std::string &value);
52 std::string getId() const;
53 void setId(const std::string &value);
55 std::string getPassword() const;
56 void setPassword(const std::string &value);
60 SyncServiceType m_syncServiceType;
61 std::string m_serverDatabaseUri;
63 std::string m_password;
66 typedef std::shared_ptr<SyncServiceInfo> SyncServiceInfoPtr;
67 typedef std::vector<SyncServiceInfoPtr> SyncServiceInfoList;
68 typedef std::shared_ptr<SyncServiceInfoList> SyncServiceInfoListPtr;
73 #endif /* _ABSTRACT_LAYER_SYNC_SERVICE_INFO_H_ */