|
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 #ifndef CNTSERVICEPROVIDERFETCH_H |
|
19 #define CNTSERVICEPROVIDERFETCH_H |
|
20 |
|
21 #include <cntservicescontact.h> |
|
22 #include <xqserviceprovider.h> |
|
23 #include <cntviewparams.h> |
|
24 #include <qtcontacts.h> |
|
25 |
|
26 #include "cntabstractserviceprovider.h" |
|
27 |
|
28 class CntServices; |
|
29 |
|
30 QTM_USE_NAMESPACE |
|
31 |
|
32 /*! |
|
33 This class offers services through the old interface name & old signatures. |
|
34 */ |
|
35 class CntServiceProviderFetch : public XQServiceProvider, public CntAbstractServiceProvider |
|
36 { |
|
37 Q_OBJECT |
|
38 public: |
|
39 CntServiceProviderFetch(CntServices& aServices, QObject *parent = 0); |
|
40 ~CntServiceProviderFetch(); |
|
41 |
|
42 public slots: // operations offered to clients |
|
43 |
|
44 /** |
|
45 * Opens contact selection view where multiple contacts can be selected. |
|
46 * @param title The view title |
|
47 * @param action Filter definition for filtering contacts based on supported action. Can be left empty. |
|
48 */ |
|
49 void multiFetch(const QString &title, |
|
50 const QString &action ); |
|
51 |
|
52 /** |
|
53 * Opens contact selection view where multiple contacts can be selected. |
|
54 * @param title The view title |
|
55 * @param action Filter definition for filtering contacts based on supported action. Can be left empty. |
|
56 */ |
|
57 void singleFetch(const QString &title, |
|
58 const QString &action ); |
|
59 |
|
60 private: // from CntAbstractServiceProvider |
|
61 void CompleteServiceAndCloseApp(const QVariant& retValue); |
|
62 |
|
63 private: |
|
64 CntServices& mServices; |
|
65 int mCurrentRequestIndex; |
|
66 }; |
|
67 |
|
68 #endif /* CNTSERVICEPROVIDERFETCH_H */ |