summaryrefslogtreecommitdiff
path: root/src/location/places/qplacecontactdetail_p.h
diff options
context:
space:
mode:
authorabcd <amos.choy@nokia.com>2011-10-25 11:58:08 +1000
committerQt by Nokia <qt-info@nokia.com>2011-10-26 06:54:48 +0200
commitbef5f51913200af264116a3f772effc717829d23 (patch)
tree301415b8a844fec2db227f35cd67ec153c36e6fc /src/location/places/qplacecontactdetail_p.h
parentb8098b735b49278de3af80232ecf671d577c911d (diff)
downloadqtlocation-bef5f51913200af264116a3f772effc717829d23.tar.gz
Refactor contacts.
The REST server now supports labels for each contact value, so now it makes sense to incorporte the ContactValue class. ContactValue = user visible label + value(phone number, email etc) We use a map type implementation where the key for the map is the contact type and the value is a list of contact values. The first element of each list becomes the primary value. Eg the primaryPhone() field references the first element in the list of phone numbers. The setters for the primary___() functions has been removed. Url has also been renamed to Website to keep in line with LBSP. Change-Id: I9382a8286c5348bd1eb93d93f25088dfdf321852 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
Diffstat (limited to 'src/location/places/qplacecontactdetail_p.h')
-rw-r--r--src/location/places/qplacecontactdetail_p.h77
1 files changed, 77 insertions, 0 deletions
diff --git a/src/location/places/qplacecontactdetail_p.h b/src/location/places/qplacecontactdetail_p.h
new file mode 100644
index 00000000..94c4ed44
--- /dev/null
+++ b/src/location/places/qplacecontactdetail_p.h
@@ -0,0 +1,77 @@
+/****************************************************************************
+**
+** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the QtLocation module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** GNU Lesser General Public License Usage
+** This file may be used under the terms of the GNU Lesser General Public
+** License version 2.1 as published by the Free Software Foundation and
+** appearing in the file LICENSE.LGPL included in the packaging of this
+** file. Please review the following information to ensure the GNU Lesser
+** General Public License version 2.1 requirements will be met:
+** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain additional
+** rights. These rights are described in the Nokia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU General
+** Public License version 3.0 as published by the Free Software Foundation
+** and appearing in the file LICENSE.GPL included in the packaging of this
+** file. Please review the following information to ensure the GNU General
+** Public License version 3.0 requirements will be met:
+** http://www.gnu.org/copyleft/gpl.html.
+**
+** Other Usage
+** Alternatively, this file may be used in accordance with the terms and
+** conditions contained in a signed written agreement between you and Nokia.
+**
+**
+**
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#ifndef QPLACECONTACTDETAIL_P_H
+#define QPLACECONTACTDETAIL_P_H
+
+
+//
+// W A R N I N G
+// -------------
+//
+// This file is not part of the Qt API. It exists purely as an
+// implementation detail. This header file may change from version to
+// version without notice, or even be removed.
+//
+// We mean it.
+//
+
+#include <QSharedData>
+#include <QString>
+
+QT_BEGIN_NAMESPACE
+
+class QPlaceContactDetailPrivate : public QSharedData
+{
+public:
+ QPlaceContactDetailPrivate(){}
+ QPlaceContactDetailPrivate(const QPlaceContactDetailPrivate &other);
+ virtual ~QPlaceContactDetailPrivate(){}
+
+ bool operator== (const QPlaceContactDetailPrivate &other) const;
+
+ QString label;
+ QString value;
+};
+
+QT_END_NAMESPACE
+
+#endif