|
1 /* |
|
2 * Copyright (c) 2008 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: Asynchronous display of legal and disclaimer note. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_EVTMGMTUILEGALNOTE_H |
|
20 #define C_EVTMGMTUILEGALNOTE_H |
|
21 |
|
22 // System Includes |
|
23 |
|
24 // System Includes |
|
25 #include <e32base.h> |
|
26 |
|
27 // User Includes |
|
28 |
|
29 // User Includes |
|
30 |
|
31 // Forward Declarations |
|
32 class CRepository; |
|
33 |
|
34 // extern data types |
|
35 |
|
36 // global Functions |
|
37 |
|
38 // constants go here |
|
39 |
|
40 /** |
|
41 * Class that displays the Legal and disclaimer note. |
|
42 * This class asynchronously displays the legal note.. |
|
43 * |
|
44 * @since S60 v9.1 |
|
45 */ |
|
46 class CEvtMgmtUiLegalNote : public CActive |
|
47 { |
|
48 public: |
|
49 /** |
|
50 * Constructs a new instance of Legal Note launcher. |
|
51 * |
|
52 * @return The new instance of Legal Note launcher. |
|
53 * @leave System wide error code if the object creation fails. |
|
54 */ |
|
55 static CEvtMgmtUiLegalNote* NewL( CAknAppUi& aAppUi ); |
|
56 |
|
57 /** |
|
58 * Constructs a new instance of Legal Note launcher. |
|
59 * Leaves the created instance on the cleanup stack. |
|
60 * |
|
61 * @return The new instance of Legal Note launcher. |
|
62 * @leave System wide error code if the object creation fails. |
|
63 */ |
|
64 static CEvtMgmtUiLegalNote* NewLC( CAknAppUi& aAppUi ); |
|
65 |
|
66 /** |
|
67 * Destructor |
|
68 */ |
|
69 virtual ~CEvtMgmtUiLegalNote (); |
|
70 |
|
71 /** |
|
72 * Display the Legal and Disclaimer Note. |
|
73 */ |
|
74 void DisplayNoteL( ); |
|
75 |
|
76 // Inherited from CActive |
|
77 void RunL(); |
|
78 |
|
79 void DoCancel(); |
|
80 |
|
81 TInt RunError( TInt aError ); |
|
82 |
|
83 private: |
|
84 |
|
85 /** |
|
86 * Default C++ Constructor. |
|
87 */ |
|
88 CEvtMgmtUiLegalNote( CAknAppUi& aAppUi ); |
|
89 |
|
90 /** |
|
91 * Second phase of the two phase constructor. |
|
92 */ |
|
93 void ConstructL(); |
|
94 |
|
95 private: // data |
|
96 |
|
97 /** |
|
98 * CRepository Instance |
|
99 */ |
|
100 CRepository* iRepository; |
|
101 |
|
102 CAknAppUi& iAppUi; |
|
103 |
|
104 }; |
|
105 |
|
106 #endif // C_EVTMGMTUILEGALNOTE_H |