|
1 /* |
|
2 * Copyright (c) 2004 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: Defines class CNcnClass0Viewer. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef NCNCLASS0VIEWER_H |
|
21 #define NCNCLASS0VIEWER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <msvstd.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CMsvOperation; |
|
29 class CNcnMsvSessionHandler; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * Handles the display of Class0 SMSes. |
|
35 */ |
|
36 class CNcnClass0Viewer : |
|
37 public CActive |
|
38 { |
|
39 private: // Constructors and destructor |
|
40 |
|
41 /** |
|
42 * C++ default constructor. |
|
43 * @param aMsvSessionHandler Msv session handler reference. |
|
44 */ |
|
45 CNcnClass0Viewer( CNcnMsvSessionHandler& aMsvSessionHandler ); |
|
46 |
|
47 /** |
|
48 * 2nd. phase constructor. |
|
49 */ |
|
50 void ConstructL(); |
|
51 |
|
52 public: // Constructors and destructor |
|
53 |
|
54 /** |
|
55 * Two-phased constructor. |
|
56 * @param aMsvSessionHandler Msv session handler reference. |
|
57 */ |
|
58 static CNcnClass0Viewer* NewL( CNcnMsvSessionHandler& aMsvSessionHandler ); |
|
59 |
|
60 /** |
|
61 * Destructor. |
|
62 */ |
|
63 virtual ~CNcnClass0Viewer(); |
|
64 |
|
65 public: // From CActive |
|
66 |
|
67 /** |
|
68 * RunL |
|
69 */ |
|
70 void RunL(); |
|
71 |
|
72 /** |
|
73 * RunError |
|
74 * @param aError the error returned |
|
75 * @return error |
|
76 */ |
|
77 TInt RunError( TInt aError ); |
|
78 |
|
79 /** |
|
80 * DoCancel |
|
81 */ |
|
82 void DoCancel(); |
|
83 |
|
84 public: // Other public methods |
|
85 /** |
|
86 * Shows class0 sms. |
|
87 * @param aEntry Class0 sms entry to show. |
|
88 */ |
|
89 void ShowClass0SmsL( const TMsvEntry& aEntry ); |
|
90 |
|
91 private: // Data |
|
92 |
|
93 // operation associated with entry viewing |
|
94 CMsvOperation* iMsvOperation; |
|
95 |
|
96 // msv session handler reference |
|
97 CNcnMsvSessionHandler& iMsvSessionHandler; |
|
98 }; |
|
99 |
|
100 #endif // NCNCLASS0VIEWER_H |
|
101 |
|
102 // End of File |