merge wrt-plugins-tizen_0.2.0-2
[profile/ivi/wrt-plugins-tizen.git] / src / platform / API / Contact / ContactAccount.h
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  * @file        ContactAccount.h
19  * @author      Kisub Song (kisubs.song@samsung.com)
20  * @version     0.1
21  * @brief
22  */
23
24 #ifndef _API_CONTACT_CONTACT_ACCOUNT_H_
25 #define _API_CONTACT_CONTACT_ACCOUNT_H_
26
27 #include <vector>
28 #include <string>
29 #include <dpl/shared_ptr.h>
30
31 namespace TizenApis {
32 namespace Api {
33 namespace Contact {
34
35 class ContactAccount;
36 typedef DPL::SharedPtr<ContactAccount> ContactAccountPtr;
37
38 typedef std::vector<ContactAccountPtr> ContactAccountArray;
39 typedef DPL::SharedPtr<ContactAccountArray> ContactAccountArrayPtr;
40
41 class ContactAccount
42 {
43 public:
44         ContactAccount();
45         ~ContactAccount();
46
47         std::string getAccountServiceId() const;
48         void setAccountServiceId(const std::string &value);
49         bool getAccountServiceIdIsSet() const;
50
51         std::string getContactURI() const;
52         void setContactURI(const std::string &value);
53         bool getContactURIIsSet() const;
54
55         void clear();
56         ContactAccountPtr clone() const;
57
58 private:
59         std::string m_accountServiceId;
60         std::string m_contactURI;
61
62         bool m_accountServiceIdIsSet;
63         bool m_contactURIIsSet;
64 };
65
66 } // Contact
67 } // Api
68 } // TizenApis
69
70 #endif // _API_CONTACT_CONTACT_ACCOUNT_H_