5f012bf947cba53285bed97164202ef78dd74afe
[framework/web/wrt-plugins-tizen.git] / src / Contact / ContactOrganization.h
1 //
2 // Tizen Web Device API
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
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
8 //
9 // http://www.apache.org/licenses/LICENSE-2.0
10 //
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.
16 //
17
18 /**
19  * @file        ContactOrganization.h
20  * @author      Kisub Song (kisubs.song@samsung.com)
21  * @version     0.1
22  * @brief
23  */
24
25 #ifndef _API_CONTACT_CONTACT_ORGANIZATION_H_
26 #define _API_CONTACT_CONTACT_ORGANIZATION_H_
27
28 #include <string>
29 #include <vector>
30 #include <dpl/shared_ptr.h>
31
32 namespace DeviceAPI {
33 namespace Contact {
34
35 class ContactOrganization;
36 typedef DPL::SharedPtr<ContactOrganization> ContactOrganizationPtr;
37
38 typedef std::vector<ContactOrganizationPtr> ContactOrganizationArray;
39 typedef DPL::SharedPtr<ContactOrganizationArray> ContactOrganizationArrayPtr;
40
41 class ContactOrganization
42 {
43 public:
44         ContactOrganization();
45         ~ContactOrganization();
46
47         std::string getName() const;
48         void setName(const std::string &value);
49         void unsetName();
50         bool getNameIsSet() const;
51
52         std::string getDepartment() const;
53         void setDepartment(const std::string &value);
54         void unsetDepartment();
55         bool getDepartmentIsSet() const;
56
57         std::string getTitle() const;
58         void setTitle(const std::string &value);
59         void unsetTitle();
60         bool getTitleIsSet() const;
61
62         std::string getRole() const;
63         void setRole(const std::string &value);
64         void unsetRole();
65         bool getRoleIsSet() const;
66
67         std::string getLogoURI() const;
68         void setLogoURI(const std::string &value);
69         void unsetLogoURI();
70         bool getLogoURIIsSet() const;
71
72         void clear();
73         ContactOrganizationPtr clone() const;
74
75 private:
76         std::string     m_name;
77         bool            m_nameIsSet;
78
79         std::string     m_department;
80         bool            m_departmentIsSet;
81
82         std::string     m_title;
83         bool            m_titleIsSet;
84
85         std::string     m_role;
86         bool            m_roleIsSet;
87
88         std::string     m_logoURI;
89         bool            m_logoURIIsSet;
90 };
91
92 } // Contact
93 } // DeviceAPI
94
95 #endif // _API_CONTACT_CONTACT_ORGANIZATION_H_