2 * Copyright (C) 2013 HERE Global B.V. All rights reserved.
3 * This software, including documentation, is protected by copyright controlled by
4 * HERE Global B.V. (“Software”). All rights are reserved. Copying, including reproducing,
5 * storing, adapting or translating, any or all of this material requires the prior
6 * written consent of HERE Global B.V. You may use this
7 * Software in accordance with the terms and conditions defined in the
8 * HERE Location Platform Services Terms and Conditions, available at
9 * http://developer.here.com/terms-conditions-base
11 * As an additional permission to the above, you may distribute Software,
12 * in object code format as part of an Application, according to, and subject to, terms and
13 * conditions defined in the Tizen Software Development kit (“SDK”) License Agreement.
14 * You may distribute such object code format Application under terms of your choice,
15 * provided that the header and source files of the Software have not been modified.
18 #ifndef CONTACT_DETAILS_H_
19 #define CONTACT_DETAILS_H_
23 #include "common/HereMaps_global.h"
25 HERE_MAPS_BEGIN_NAMESPACE
27 class EXPORT_API ContactDetails;
29 * This typedef defines a type representing a list of <code>ContactDetails</code>
32 typedef std::vector<ContactDetails> ContactDetailsList;
35 * This class encapsulates contact information relating to a place.
43 * This method is the default constructor.
48 * This method is the copy constructor.
50 * @param rRhs An object whose contents are to be copied to the instance
53 ContactDetails(const ContactDetails& rRhs);
56 * This method is the destructor.
61 * This is the assignment operator.
63 * @param rRhs An object whose contents are to be copied to the given
66 * @return A reference to the given instance of the class after its contents
69 ContactDetails& operator=(const ContactDetails& rRhs);
72 * This method retrieves the contact type, which can be telephone, e-mail,
75 * @return A string containing the contact type identifier. The possible
76 * values are "phone", "website", "fax", or "email".
78 String GetContactType() const;
81 * This method retrieves the contact detail label, which is a localized
82 * string identifying the purpose of the contact, for example "Phone",
83 * "Mobile". Note that label is accompanied by a "value" filed, which for
84 * example for a "Phone" contains the telephone number.
86 * @return A string containing the contact label.
88 String GetLabel() const;
91 * This method retrieves the value for the associated contact label.
93 * @return A string containing the value corresponding to the contact label.
95 String GetValue() const;
98 * This method sets the contact type, which can be telephone, e-mail,
101 * @param rsName A string containing the contact type identifier. The
102 * possible values are "phone", "website", "fax", or "email".
104 void SetContactType(const String& rsName);
107 * This method sets the contact detail label, which is a localized
108 * string identifying the purpose of the contact, for example "Phone",
109 * "Mobile". Note that label is accompanied by a "value" filed, which for
110 * example for a "Phone" contains the telephone number.
112 * @param rsLabel A string containing the contact label.
114 void SetLabel(const String& rsLabel);
117 * This method sets the value for the contact label.
119 * @param rsValue A string containing the value corresponding to the contact
120 * label (for example, if the label is "Phone", the value is the
123 void SetValue(const String& rsValue);
126 class ContactDetailsImpl;
127 ContactDetailsImpl* m_pImpl;
129 friend class JsonParser;
132 HERE_MAPS_END_NAMESPACE
134 #endif // CONTACT_DETAILS_H_