equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2010 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: Default info provider plugin for CntListModel. It can provide |
|
15 * the phone number and the image url of a contact (text and |
|
16 * icon1 field respectively). |
|
17 * |
|
18 */ |
|
19 |
|
20 #ifndef CNTDEFAULTPROVIDER_H |
|
21 #define CNTDEFAULTPROVIDER_H |
|
22 |
|
23 #include <cntinfoprovider.h> |
|
24 #include <qcontact.h> |
|
25 |
|
26 QTM_USE_NAMESPACE |
|
27 |
|
28 /* |
|
29 The default info provider plugin. It can provide the phone number and the |
|
30 image url of a contact (text and icon1 field respectively). |
|
31 */ |
|
32 class CntDefaultInfoProvider : public CntInfoProvider |
|
33 { |
|
34 friend class TestCntDefaultInfoProvider; |
|
35 Q_OBJECT |
|
36 |
|
37 public: |
|
38 QString id() const { return "default"; }; |
|
39 ContactInfoFields supportedFields() const; |
|
40 void requestInfo(const QContact& contact, ContactInfoFields requestedInfo); |
|
41 |
|
42 signals: |
|
43 void infoFieldReady(CntInfoProvider* sender, int contactId, ContactInfoField field, const QString& value); |
|
44 }; |
|
45 |
|
46 #endif |