equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef QCONTACTMANAGER_H |
|
20 #define QCONTACTMANAGER_H |
|
21 |
|
22 #include <QObject> |
|
23 |
|
24 #include <QMap> |
|
25 #include <QString> |
|
26 #include <QList> |
|
27 |
|
28 #include "qcontact.h" |
|
29 #include "qcontactid.h" |
|
30 #include "qcontactsortorder.h" |
|
31 #include "qcontactfetchhint.h" |
|
32 |
|
33 QTM_BEGIN_NAMESPACE |
|
34 |
|
35 class QContactFilter; |
|
36 class QContactAction; |
|
37 |
|
38 class QContactManager |
|
39 { |
|
40 public: |
|
41 explicit QContactManager(const QString& managerName = QString(), const QMap<QString, QString>& parameters = (QMap<QString, QString>()), QObject* parent = 0); |
|
42 ~QContactManager(); |
|
43 |
|
44 QList<QContactLocalId> contactIds(const QList<QContactSortOrder>& sortOrders = QList<QContactSortOrder>()) const; |
|
45 QList<QContactLocalId> contactIds(const QContactFilter& filter, const QList<QContactSortOrder>& sortOrders = QList<QContactSortOrder>()) const; |
|
46 |
|
47 QList<QContact> contacts(const QList<QContactSortOrder>& sortOrders = QList<QContactSortOrder>(), const QContactFetchHint& fetchHint = QContactFetchHint()) const; |
|
48 QList<QContact> contacts(const QContactFilter& filter, const QList<QContactSortOrder>& sortOrders = QList<QContactSortOrder>(), const QContactFetchHint& fetchHint = QContactFetchHint()) const; |
|
49 QContact contact(const QContactLocalId& contactId, const QContactFetchHint& fetchHint = QContactFetchHint()) const; // retrieve a contact |
|
50 }; |
|
51 |
|
52 QTM_END_NAMESPACE |
|
53 |
|
54 #endif |