|
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: This class offers contact viewing UI services. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CNTSERVICEPROVIDERVIEW_H |
|
19 #define CNTSERVICEPROVIDERVIEW_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 contact viewing UI services. |
|
34 */ |
|
35 class CntServiceProviderViewing : public XQServiceProvider, public CntAbstractServiceProvider |
|
36 { |
|
37 Q_OBJECT |
|
38 public: |
|
39 CntServiceProviderViewing(CntServices& aServices, QObject *parent = 0); |
|
40 ~CntServiceProviderViewing(); |
|
41 |
|
42 public slots: // operations offered to clients |
|
43 |
|
44 /** |
|
45 * Opens Contact Card. |
|
46 * @param aContactId |
|
47 */ |
|
48 void openContactCard( int aContactId ); |
|
49 |
|
50 /** |
|
51 * Opens Contact Card for non-saved contact which is not saved yet. |
|
52 * @param aFieldName |
|
53 * @param aValue The value for the field. |
|
54 */ |
|
55 void openTemporaryContactCard( QString aFieldName, QString aFieldValue ); |
|
56 |
|
57 /** |
|
58 * Opens Group Member View. |
|
59 * @param aContactId |
|
60 */ |
|
61 void openGroup( int aContactId ); |
|
62 |
|
63 private: // from CntAbstractServiceProvider |
|
64 void CompleteServiceAndCloseApp(const QVariant& retValue); |
|
65 |
|
66 private: |
|
67 CntServices& mServices; |
|
68 int mCurrentRequestIndex; |
|
69 }; |
|
70 |
|
71 #endif /* CNTSERVICEPROVIDERVIEW_H */ |