|
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: This file contains the header file of the CIAUpdateGlobalLockHandler |
|
15 * class |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __IAUPDATE_GLOBALLOCKHANDLER_H__ |
|
21 #define __IAUPDATE_GLOBALLOCKHANDLER_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <eikenv.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 |
|
29 |
|
30 // CLASS DECLARATION |
|
31 /** |
|
32 * |
|
33 */ |
|
34 |
|
35 class CIAUpdateGlobalLockHandler : public CBase |
|
36 { |
|
37 public: |
|
38 |
|
39 /** |
|
40 * Construct a CIAUpdateGlobalLockHandler using two phase construction, |
|
41 * and return a pointer to the created object |
|
42 * @return A pointer to the created instance of CIAUpdateGlobalLockHandler |
|
43 */ |
|
44 static CIAUpdateGlobalLockHandler* NewL(); |
|
45 |
|
46 /** |
|
47 * Construct a CIAUpdateGlobalLockHandler using two phase construction, |
|
48 * and return a pointer to the created object |
|
49 * @return A pointer to the created instance of CIAUpdateGlobalLockHandler |
|
50 */ |
|
51 static CIAUpdateGlobalLockHandler* NewLC(); |
|
52 |
|
53 /** |
|
54 * Destructor |
|
55 */ |
|
56 ~CIAUpdateGlobalLockHandler(); |
|
57 |
|
58 public: // new functions |
|
59 |
|
60 /** |
|
61 * Check if another IAD instance is just performing operation |
|
62 */ |
|
63 TBool InUseByAnotherInstanceL(); |
|
64 |
|
65 /** |
|
66 * Set in use flag to another instances on/off |
|
67 * |
|
68 * @param aInUse True value when operation (update,refresh) is ongoing |
|
69 */ |
|
70 void SetToInUseForAnotherInstancesL( TBool aInUse ); |
|
71 |
|
72 private: |
|
73 |
|
74 /** |
|
75 * C++ constructor |
|
76 */ |
|
77 CIAUpdateGlobalLockHandler(); |
|
78 |
|
79 /** |
|
80 * Perform the second phase construction of a CIAUpdateGlobalLockHandler object |
|
81 */ |
|
82 void ConstructL(); |
|
83 |
|
84 private: //data |
|
85 |
|
86 CEikonEnv* iEikEnv; //not owned |
|
87 |
|
88 TBool iSetAsLocked; |
|
89 |
|
90 }; |
|
91 |
|
92 |
|
93 #endif // __IAUPDATE_GLOBALLOCKHANDLER_H__ |