|
1 /* |
|
2 * Copyright (c) 2008-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 file contains the header file of the CIAUpdateAgreement |
|
15 * class |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __IAUPDATE_AGREEMENT_H__ |
|
21 #define __IAUPDATE_AGREEMENT_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 |
|
28 |
|
29 // CLASS DECLARATION |
|
30 /** |
|
31 * |
|
32 */ |
|
33 |
|
34 class CIAUpdateAgreement : public CBase |
|
35 { |
|
36 public: |
|
37 |
|
38 /** |
|
39 * Construct a CIAUpdateAgreement using two phase construction, |
|
40 * and return a pointer to the created object |
|
41 * @return A pointer to the created instance of CIAUpdateAgreement |
|
42 */ |
|
43 static CIAUpdateAgreement* NewL(); |
|
44 |
|
45 /** |
|
46 * Construct a CIAUpdateAgreement using two phase construction, |
|
47 * and return a pointer to the created object |
|
48 * @return A pointer to the created instance of CIAUpdateAgreement |
|
49 */ |
|
50 static CIAUpdateAgreement* NewLC(); |
|
51 |
|
52 /** |
|
53 * Destructor |
|
54 */ |
|
55 ~CIAUpdateAgreement(); |
|
56 |
|
57 public: // new functions |
|
58 |
|
59 /** |
|
60 * Checks that Nokia agreement of Application Update is accepted by an user |
|
61 * |
|
62 * @return True value if agreement accepted |
|
63 */ |
|
64 TBool AcceptAgreementL(); |
|
65 |
|
66 /** |
|
67 * Shows Nokia agreement of Application Update |
|
68 */ |
|
69 void ShowAgreementL(); |
|
70 |
|
71 /** |
|
72 * Is Nokia agreement of Application Update accepted by an user |
|
73 * |
|
74 * @return True value if agreement accepted |
|
75 */ |
|
76 TBool AgreementAcceptedL(); |
|
77 |
|
78 private: |
|
79 |
|
80 /** |
|
81 * C++ constructor |
|
82 */ |
|
83 CIAUpdateAgreement(); |
|
84 |
|
85 /** |
|
86 * Perform the second phase construction of a CIAUpdateAgreement object |
|
87 */ |
|
88 void ConstructL(); |
|
89 |
|
90 /** |
|
91 * Shows agreement dialog |
|
92 * |
|
93 * @param aCbaResource Resource id of CBA |
|
94 * |
|
95 * @return Value of user selection |
|
96 */ |
|
97 TInt ShowDialogL( TInt aCbaResourceId ); |
|
98 |
|
99 |
|
100 private: //data |
|
101 |
|
102 }; |
|
103 |
|
104 |
|
105 #endif // __IAUPDATE_AGREEMENT_H__ |