33 _LIT(KWarningMode, "%c: WARNING"); |
33 _LIT(KWarningMode, "%c: WARNING"); |
34 _LIT(KNormalMode, "%c: Normal"); |
34 _LIT(KNormalMode, "%c: Normal"); |
35 const TInt KMaxMsgSize = 256; |
35 const TInt KMaxMsgSize = 256; |
36 #endif // _DEBUG |
36 #endif // _DEBUG |
37 |
37 |
|
38 #ifdef FCC_UNIT_TEST |
|
39 class Tut_LafShutdownManager; |
|
40 #endif |
38 // --------------------------------------------------------- |
41 // --------------------------------------------------------- |
39 // |
42 // |
40 // --------------------------------------------------------- |
43 // --------------------------------------------------------- |
41 // |
44 // |
42 NONSHARABLE_CLASS(CLafShutdownManager) : public CLafShutdownManagerBase |
45 NONSHARABLE_CLASS(CLafShutdownManager) : public CLafShutdownManagerBase |
43 { // There are friends defined at end of this class definition. |
46 { // There are friends defined at end of this class definition. |
44 public: |
47 public: |
45 static CLafShutdownManager* NewL(MShutdownEventObserver& aObserver); |
48 static CLafShutdownManager* NewL(MShutdownEventObserver& aObserver); |
46 ~CLafShutdownManager(); |
49 ~CLafShutdownManager(); |
47 |
50 |
48 private: |
51 #ifdef FCC_UNIT_TEST |
|
52 public: |
|
53 #else |
|
54 private: |
|
55 #endif |
|
56 |
49 |
57 |
50 // ====================================================================== |
58 // ====================================================================== |
51 // Out of disk watcher |
59 // Out of disk watcher |
52 // ====================================================================== |
60 // ====================================================================== |
53 NONSHARABLE_CLASS(COutOfDiskWatcher) : public CActive // friend of CLafShutdownManager |
61 NONSHARABLE_CLASS(COutOfDiskWatcher) : public CActive // friend of CLafShutdownManager |
99 private: |
107 private: |
100 CGlobalQueryActive(); |
108 CGlobalQueryActive(); |
101 void ConstructL(RResourceFile& aResFile, TResourceReader& aResReader); |
109 void ConstructL(RResourceFile& aResFile, TResourceReader& aResReader); |
102 void CleanupL(TBool aCancel = ETrue); |
110 void CleanupL(TBool aCancel = ETrue); |
103 |
111 |
104 private: |
112 #ifdef FCC_UNIT_TEST |
|
113 public: |
|
114 #else |
|
115 private: |
|
116 #endif |
|
117 |
105 class CMessageInfo : public CBase |
118 class CMessageInfo : public CBase |
106 { |
119 { |
107 public: |
120 public: |
108 CMessageInfo(HBufC* aMessage): |
121 CMessageInfo(HBufC* aMessage): |
109 iMessage(aMessage), iNoteId(KErrNotFound){}; |
122 iMessage(aMessage), iNoteId(KErrNotFound){}; |