summaryrefslogtreecommitdiffstats
path: root/src/contacts/qcontactmanager.h
diff options
context:
space:
mode:
authorKonstantin Ritt <ritt.ks@gmail.com>2014-05-13 20:41:28 +0300
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-05-16 11:04:55 +0200
commitb9cdb21b21829c20ee546957f0f80838db5e8223 (patch)
tree6a52eacb7edba08007f1579e6cd3b5660e9d0989 /src/contacts/qcontactmanager.h
parent29475884c15079a25c6d277eb8efa3a242918f5f (diff)
Centralize the URI and the ID string parse/build code
This also reduces the code duplication and consolidates the behavior between QtContacts and QtOrganizer. Change-Id: Ia2df252e6b55652821df143c1421b326bfbc3c7f Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au> Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
Diffstat (limited to 'src/contacts/qcontactmanager.h')
-rw-r--r--src/contacts/qcontactmanager.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/contacts/qcontactmanager.h b/src/contacts/qcontactmanager.h
index 39f979d7a..6bd5c11a6 100644
--- a/src/contacts/qcontactmanager.h
+++ b/src/contacts/qcontactmanager.h
@@ -86,8 +86,9 @@ public:
QString managerUri() const; // managerName + managerParameters
int managerVersion() const;
- static bool parseUri(const QString& uri, QString* managerName, QMap<QString, QString>* params);
- static QString buildUri(const QString& managerName, const QMap<QString, QString>& params, int implementationVersion = -1);
+ static bool parseUri(const QString &uri, QString *managerName, QMap<QString, QString> *params);
+ static QString buildUri(const QString &managerName, const QMap<QString, QString> &params);
+ static QString buildUri(const QString &managerName, const QMap<QString, QString> &params, int implementationVersion);
enum Error {
NoError = 0,