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