|
1 /* |
|
2 * Copyright (c) 2002 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 |
|
19 #ifndef CPQTSPVIEW_H |
|
20 #define CPQTSPVIEW_H |
|
21 |
|
22 #include <hbview.h> |
|
23 #include <xqserviceprovider.h> |
|
24 #include <QGraphicsLinearLayout> |
|
25 #include <CWPNameValue.h> |
|
26 #include <CWPBioControl.h> |
|
27 #include <msvapi.h> |
|
28 #include <hbscrollarea.h> |
|
29 |
|
30 class CObserver : public CBase, public MMsvSessionObserver |
|
31 { |
|
32 public: |
|
33 void HandleSessionEventL(TMsvSessionEvent, TAny*, TAny*, TAny*) {}; |
|
34 }; |
|
35 |
|
36 |
|
37 class CpQtSp; |
|
38 class XQServiceRequest; |
|
39 |
|
40 class CpQtSpView : public HbView |
|
41 { |
|
42 Q_OBJECT |
|
43 |
|
44 public: |
|
45 CpQtSpView(CpQtSp* service,QGraphicsItem *parent = 0); |
|
46 ~CpQtSpView(); |
|
47 void constructView(); |
|
48 |
|
49 public slots: |
|
50 void requestCompleted(const QVariant& value); |
|
51 void saveProvisoningMessage(); |
|
52 private: |
|
53 CpQtSp* iServiceProvider; |
|
54 QGraphicsLinearLayout *layout; |
|
55 HbFontSpec *iPrimaryFont; |
|
56 HbFontSpec *iSecondaryFont; |
|
57 RPointerArray<CWPNameValue>* iArray; |
|
58 CWPBioControl* iBio; |
|
59 }; |
|
60 |
|
61 class CpQtSp : public XQServiceProvider |
|
62 { |
|
63 Q_OBJECT |
|
64 public: |
|
65 CpQtSp( QObject *parent = 0 ); |
|
66 ~CpQtSp(); |
|
67 void complete(); |
|
68 TMsvId returnId(); |
|
69 CMsvSession* returnSession(); |
|
70 |
|
71 Q_SIGNALS: |
|
72 void showView(); |
|
73 |
|
74 public slots: |
|
75 QString ProcessMessage(const QString& number); |
|
76 |
|
77 private: |
|
78 TMsvId iId; |
|
79 CObserver* iObserver; |
|
80 CMsvSession* iSession; |
|
81 }; |
|
82 |
|
83 #endif // CPQTSPVIEW_H |