|
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 CNTSERVICEPROVIDEROLD2_H |
|
19 #define CNTSERVICEPROVIDEROLD2_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 CntServiceProviderOld2 : public XQServiceProvider, public CntAbstractServiceProvider |
|
36 { |
|
37 Q_OBJECT |
|
38 public: |
|
39 CntServiceProviderOld2(CntServices& aServices, QObject *parent = 0); |
|
40 ~CntServiceProviderOld2(); |
|
41 |
|
42 public slots: // operations offered to clients |
|
43 /** |
|
44 * Interface name has changed (see other impl. class) |
|
45 * @deprecated |
|
46 * Replaced with: |
|
47 * multiFetch(QString, QString, QString) |
|
48 * com.nokia.symbian.IContactFetch. |
|
49 */ |
|
50 void fetch(const QString &title, |
|
51 const QString &action, |
|
52 const QString &filter); |
|
53 |
|
54 /** |
|
55 * Interface name has changed (see other impl. class) |
|
56 * @deprecated |
|
57 * Replaced with: |
|
58 * singleFetch(QString, QString, QString) |
|
59 * com.nokia.symbian.IContactFetch. |
|
60 */ |
|
61 void Dofetch(const QString &title, |
|
62 const QString &action, |
|
63 const QString &filter, |
|
64 const QString &mode = KCntNoSelectionMode); |
|
65 |
|
66 /** |
|
67 * Interface name has changed (see other impl. class) |
|
68 * @deprecated |
|
69 * Replaced with: |
|
70 * editCreateNew(QString, QString) |
|
71 * com.nokia.symbian.IContactEdit |
|
72 */ |
|
73 void editCreateNew(const QString& definitionName, const QString& value); |
|
74 |
|
75 /** |
|
76 * Interface name has changed (see other impl. class) |
|
77 * @deprecated |
|
78 * Replaced with: |
|
79 * editCreateNewFromVCard(QString) |
|
80 * com.nokia.symbian.IContactEdit |
|
81 */ |
|
82 void editCreateNew(const QString& vCardFile); |
|
83 |
|
84 /** |
|
85 * Interface name has changed (see other impl. class) |
|
86 * @deprecated |
|
87 * Replaced with: |
|
88 * editUpdateExisting(QString, QString) |
|
89 * com.nokia.symbian.IContactEdit |
|
90 */ |
|
91 void editUpdateExisting(const QString& definitionName, const QString& value); |
|
92 |
|
93 /** |
|
94 * Interface name has changed (see other impl. class) |
|
95 * @deprecated |
|
96 * Replaced with: |
|
97 * openContactCard(int contactId) |
|
98 * com.nokia.symbian.IContactView |
|
99 */ |
|
100 void open(int contactId); |
|
101 |
|
102 /** |
|
103 * Interface name has changed (see other impl. class) |
|
104 * @deprecated |
|
105 * Replaced with: |
|
106 * openContactCard(QString, QString) |
|
107 * com.nokia.symbian.IContactView |
|
108 */ |
|
109 void open(const QString& definitionName, const QString& value); |
|
110 |
|
111 private: // from CntAbstractServiceProvider |
|
112 void CompleteServiceAndCloseApp(const QVariant& retValue); |
|
113 |
|
114 private: |
|
115 CntServices& mServices; |
|
116 int mCurrentRequestIndex; |
|
117 }; |
|
118 |
|
119 #endif /* CNTSERVICEPROVIDEROLD2_H */ |