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 #ifndef QCONTACTMANAGER_H |
|
18 #define QCONTACTMANAGER_H |
|
19 |
|
20 #include <QList> |
|
21 #include <QString> |
|
22 #include <qcontact.h> |
|
23 #include <qcontactfilter.h> |
|
24 #include <qcontactsortorder.h> |
|
25 #include <qtcontactsglobal.h> |
|
26 |
|
27 /* |
|
28 * This is very simple copy of the one function from QContactManager interface that contactfinder2 is using |
|
29 */ |
|
30 |
|
31 |
|
32 class QContactManager |
|
33 { |
|
34 |
|
35 public: |
|
36 QContactManager() { }; |
|
37 QContactManager(const QString &name) {Q_UNUSED(name) }; |
|
38 virtual ~QContactManager() {}; |
|
39 |
|
40 public: |
|
41 |
|
42 virtual QContact contact(const QContactLocalId& contactId) const |
|
43 { |
|
44 Q_UNUSED(contactId); |
|
45 QContact cnt; |
|
46 return cnt; |
|
47 |
|
48 };// retrieve a contact |
|
49 |
|
50 virtual QList<QContactLocalId> contacts(const QContactFilter& filter, |
|
51 const QList<QContactSortOrder>& sortOrders = QList<QContactSortOrder>()) const |
|
52 { |
|
53 Q_UNUSED(filter) |
|
54 Q_UNUSED(sortOrders) |
|
55 QList<QContactLocalId> list; |
|
56 return list; |
|
57 }; |
|
58 |
|
59 }; |
|
60 |
|
61 #endif |