2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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.
17 * @file FSclOrganization.h
18 * @brief This is the header file for the %Organization class.
20 * This header file contains the declarations of the %Organization class.
22 #ifndef _FSCL_ORGANIZATION_H_
23 #define _FSCL_ORGANIZATION_H_
25 #include <FBaseResult.h>
26 #include <FBaseObject.h>
27 #include <FSclTypes.h>
29 namespace Tizen { namespace Base
34 namespace Tizen { namespace Social
39 * @brief This class represents the organization information.
43 * @final This class is not intended for extension.
45 * The %Organization class represents the organization information of a person. @n
46 * The organization information consists of name, job title, role, agent, and department.
48 class _OSP_EXPORT_ Organization
49 : public Tizen::Base::Object
53 * This is the default constructor for this class.
60 * Copying of objects using this copy constructor is allowed.
64 * @param[in] rhs An instance of %Organization
66 Organization(const Organization& rhs);
69 * This destructor overrides Tizen::Base::Object::~Object().
73 virtual ~Organization(void);
76 * Checks whether the value of the specified instance is equal to the value of the current instance of Tizen::Base::Object.
80 * @return @c true if the value of the specified instance of Tizen::Base::Object is equal to the value of the current instance of %Tizen::Base::Object, @n
82 * @param[in] rhs An instance of Tizen::Base::Object to compare
84 virtual bool Equals(const Tizen::Base::Object& rhs) const;
87 * Gets the hash value of the current instance of Tizen::Base::Object.
91 * @return An integer value indicating the hash value of the current instance of Tizen::Base::Object
93 virtual int GetHashCode(void) const;
96 * Gets the organization name.
100 * @return The organization name
102 Tizen::Base::String GetName(void) const;
105 * Gets the job title.
109 * @return The job title
111 Tizen::Base::String GetJobTitle(void) const;
114 * Gets the department.
118 * @return The department
120 Tizen::Base::String GetDepartment(void) const;
129 Tizen::Base::String GetRole(void) const;
138 Tizen::Base::String GetAgent(void) const;
141 * Gets the organization type.
145 * @return The organization type
147 OrganizationType GetType(void) const;
150 * Gets the label of the organization.
154 * @return The organization label
156 Tizen::Base::String GetLabel(void) const;
163 * @return The location
165 Tizen::Base::String GetLocation(void) const;
168 * Gets the description.
172 * @return The description
174 Tizen::Base::String GetDescription(void) const;
177 * Gets the phonetic name.
181 * @return The phonetic name
183 Tizen::Base::String GetPhoneticName(void) const;
186 * Gets the logo image path.
190 * @return The logo image file path
192 Tizen::Base::String GetLogoPath(void) const;
195 * Sets the name of the organization.
199 * @param[in] name The organization name
201 void SetName(const Tizen::Base::String& name);
204 * Sets the job title.
208 * @param[in] jobTitle The job title
210 void SetJobTitle(const Tizen::Base::String& jobTitle);
213 * Sets the department.
217 * @param[in] department The department
219 void SetDepartment(const Tizen::Base::String& department);
226 * @param[in] role The role
228 void SetRole(const Tizen::Base::String& role);
235 * @param[in] agent The agent
237 void SetAgent(const Tizen::Base::String& agent);
240 * Sets the organization type.
244 * @param[in] type The organization type
246 void SetType(OrganizationType type);
249 * Sets the label of the organization.
253 * @param[in] label The organization label
255 void SetLabel(const Tizen::Base::String& label);
262 * @param[in] location The location
264 void SetLocation(const Tizen::Base::String& location);
267 * Sets the description.
271 * @param[in] description The description
273 void SetDescription(const Tizen::Base::String& description);
276 * Sets the phonetic name.
280 * @param[in] phoneticName The phonetic name
282 void SetPhoneticName(const Tizen::Base::String& phoneticName);
285 * Sets the logo image. @n
286 * If the specified @c filePath is an empty string, the current logo image is removed.
290 * @param[in] filePath The file path of the logo image
291 * @exception E_SUCCESS The method is successful.
292 * @exception E_INVALID_ARG The length of the specified @c filePath exceeds system limitations.
293 * @exception E_FILE_NOT_FOUND The specified file cannot be found or accessed.
294 * @exception E_SYSTEM The method cannot proceed due to a severe system error.
295 * @remarks The logo image is copied to the specific directory for logo images by the system when the contact is added or updated.
296 * Therefore, GetLogoPath() returns the file path to which the logo image is copied.
298 result SetLogo(const Tizen::Base::String& filePath);
301 * Copying of objects using this copy assignment operator is allowed.
305 * @param[in] rhs An instance of %Organization
307 Organization& operator =(const Organization& rhs);
310 * Checks whether the data in the specified instance of %Organization is equal to the data in the current instance.
314 * @return @c true if the data in the specified instance equals the data in the current instance, @n
316 * @param[in] rhs An instance of %Organization
318 bool operator ==(const Organization& rhs) const;
321 * Checks whether the data in the specified instance of %Organization is not equal to the data in the current instance.
325 * @return @c true if the data in the specified instance is not equal to the data in the current instance, @n
327 * @param[in] rhs An instance of %Organization
329 bool operator !=(const Organization& rhs) const;
332 friend class _OrganizationImpl;
333 class _OrganizationImpl* __pOrganizationImpl;
338 #endif //_FSCL_ORGANIZATION_H_