equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2008-2009 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" |
|
26 |
25 |
27 class HbAction; |
|
28 class IAUpdateDialogUtil; |
|
29 // CLASS DECLARATION |
26 // CLASS DECLARATION |
30 /** |
27 /** |
31 * |
28 * |
32 */ |
29 */ |
33 |
30 |
34 class CIAUpdateAutomaticCheck : public CBase, |
31 class CIAUpdateAutomaticCheck : public CBase |
35 public IAUpdateDialogObserver |
|
36 { |
32 { |
37 public: |
33 public: |
38 |
34 |
39 /** |
35 /** |
40 * Construct a CIAUpdateAutomaticCheck using two phase construction, |
36 * Construct a CIAUpdateAutomaticCheck using two phase construction, |
61 * Checks that automatic update checks using network connetion is accepted by an user |
57 * Checks that automatic update checks using network connetion is accepted by an user |
62 * |
58 * |
63 * @return True value if automatic update connections are allowed, EFalse if not allowed. |
59 * @return True value if automatic update connections are allowed, EFalse if not allowed. |
64 * Returns always true if this function is called after first time |
60 * Returns always true if this function is called after first time |
65 */ |
61 */ |
66 void AcceptAutomaticCheckL(); |
62 TBool AcceptAutomaticCheckL(); |
67 |
63 |
68 TBool AutoUpdateCheckEnabledL(); |
64 TBool AutoUpdateCheckEnabledL(); |
69 |
65 |
70 private: |
66 private: |
71 |
67 |
81 |
77 |
82 /** |
78 /** |
83 * Enables automatic updates cheks |
79 * Enables automatic updates cheks |
84 */ |
80 */ |
85 void EnableAutoUpdateCheckL( TBool aEnable ); |
81 void EnableAutoUpdateCheckL( TBool aEnable ); |
86 |
|
87 private: // From IAUpdateDialogObserver |
|
88 |
|
89 void dialogFinished(HbAction *action); |
|
90 |
82 |
91 |
83 |
92 private: //data |
84 private: //data |
93 IAUpdateDialogUtil *mDialogUtil; |
85 |
94 HbAction *mPrimaryAction; |
|
95 }; |
86 }; |
96 |
87 |
97 |
88 |
98 #endif // __IAUPDATE_AUTOMATICCHECK_H__ |
89 #endif // __IAUPDATE_AUTOMATICCHECK_H__ |