equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
20 #ifndef __IAUPDATE_AUTOMATICCHECK_H__ |
20 #ifndef __IAUPDATE_AUTOMATICCHECK_H__ |
21 #define __IAUPDATE_AUTOMATICCHECK_H__ |
21 #define __IAUPDATE_AUTOMATICCHECK_H__ |
22 |
22 |
23 // INCLUDES |
23 // INCLUDES |
24 #include <e32base.h> |
24 #include <e32base.h> |
|
25 #include "iaupdatedialogobserver.h" |
25 |
26 |
|
27 class HbAction; |
|
28 class IAUpdateDialogUtil; |
26 // CLASS DECLARATION |
29 // CLASS DECLARATION |
27 /** |
30 /** |
28 * |
31 * |
29 */ |
32 */ |
30 |
33 |
31 class CIAUpdateAutomaticCheck : public CBase |
34 class CIAUpdateAutomaticCheck : public CBase, |
|
35 public IAUpdateDialogObserver |
32 { |
36 { |
33 public: |
37 public: |
34 |
38 |
35 /** |
39 /** |
36 * Construct a CIAUpdateAutomaticCheck using two phase construction, |
40 * Construct a CIAUpdateAutomaticCheck using two phase construction, |
57 * Checks that automatic update checks using network connetion is accepted by an user |
61 * Checks that automatic update checks using network connetion is accepted by an user |
58 * |
62 * |
59 * @return True value if automatic update connections are allowed, EFalse if not allowed. |
63 * @return True value if automatic update connections are allowed, EFalse if not allowed. |
60 * Returns always true if this function is called after first time |
64 * Returns always true if this function is called after first time |
61 */ |
65 */ |
62 TBool AcceptAutomaticCheckL(); |
66 void AcceptAutomaticCheckL(); |
63 |
67 |
64 TBool AutoUpdateCheckEnabledL(); |
68 TBool AutoUpdateCheckEnabledL(); |
65 |
69 |
66 private: |
70 private: |
67 |
71 |
77 |
81 |
78 /** |
82 /** |
79 * Enables automatic updates cheks |
83 * Enables automatic updates cheks |
80 */ |
84 */ |
81 void EnableAutoUpdateCheckL( TBool aEnable ); |
85 void EnableAutoUpdateCheckL( TBool aEnable ); |
|
86 |
|
87 private: // From IAUpdateDialogObserver |
|
88 |
|
89 void dialogFinished(HbAction *action); |
82 |
90 |
83 |
91 |
84 private: //data |
92 private: //data |
85 |
93 IAUpdateDialogUtil *mDialogUtil; |
|
94 HbAction *mPrimaryAction; |
86 }; |
95 }; |
87 |
96 |
88 |
97 |
89 #endif // __IAUPDATE_AUTOMATICCHECK_H__ |
98 #endif // __IAUPDATE_AUTOMATICCHECK_H__ |