sysresmonitoring/oodmonitor/inc/Ood.h
changeset 77 b01c07dfcf84
parent 21 c4cbaa4fb734
equal deleted inserted replaced
74:1505405bc645 77:b01c07dfcf84
    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){};
   115 
   128 
   116         private:
   129         private:
   117             TMessageType    iMessageType;
   130             TMessageType    iMessageType;
   118             CMessageInfo*   iMessageInfo[4];
   131             CMessageInfo*   iMessageInfo[4];
   119         
   132         
   120         
   133 #ifdef FCC_UNIT_TEST
       
   134     friend class Tut_LafShutdownManager;
       
   135 #endif          
   121         };
   136         };
   122 
   137 
   123     // ======================================================================
   138     // ======================================================================
   124 
   139 
   125     NONSHARABLE_CLASS(CSubscriber) : public CActive
   140     NONSHARABLE_CLASS(CSubscriber) : public CActive
   179     COutOfDiskWatcher*      iOOMMCCriticalWatcher;
   194     COutOfDiskWatcher*      iOOMMCCriticalWatcher;
   180     TInt                    iAutolockStatus;
   195     TInt                    iAutolockStatus;
   181 
   196 
   182 private:
   197 private:
   183     friend class CLafShutdownManager::COutOfDiskWatcher;
   198     friend class CLafShutdownManager::COutOfDiskWatcher;
       
   199 
       
   200 #ifdef FCC_UNIT_TEST
       
   201     friend class Tut_LafShutdownManager;
       
   202 #endif    
   184     };
   203     };
   185 
   204 
   186 #endif LAFSHUT_H
   205 #endif LAFSHUT_H