sysresmonitoring/oodmonitor/oodmonitor2/inc/outofdiskglobalnote.h
branchRCL_3
changeset 62 924385140d98
parent 0 2e3d3ce01487
child 63 c2c61fdca848
equal deleted inserted replaced
58:0818dd463d41 62:924385140d98
     1 /*
     1 /*
     2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2007-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 #define __OUTOFDISKGLOBALNOTE_H__
    20 #define __OUTOFDISKGLOBALNOTE_H__
    21 
    21 
    22 // SYSTEM INCLUDES
    22 // SYSTEM INCLUDES
    23 #include <uiklaf/private/lafshut.h>
    23 #include <uiklaf/private/lafshut.h>
    24 #include <coemain.h>
    24 #include <coemain.h>
    25 #include <AknGlobalNote.h>
    25 #include "hbdevicemessageboxsymbian.h"
       
    26 
    26 
    27 
    27 // USER INCLUDES
    28 // USER INCLUDES
    28 
    29 
    29 // CONSTANTS
    30 // CONSTANTS
    30 
    31 
    42 *  
    43 *  
    43 *
    44 *
    44 *  @lib None
    45 *  @lib None
    45 *  @since S60 3.2
    46 *  @since S60 3.2
    46 */
    47 */
    47 NONSHARABLE_CLASS(COutOfDiskGlobalNote) : public CActive
    48 NONSHARABLE_CLASS(COutOfDiskGlobalNote) : public MHbDeviceMessageBoxObserver
    48     {
    49     {
    49     public:
    50     public:
    50         COutOfDiskGlobalNote( COutOfDiskMonitor* aOutOfDiskMonitor, RFs& aFs  );    
    51         COutOfDiskGlobalNote( COutOfDiskMonitor* aOutOfDiskMonitor, RFs& aFs  );    
    51         static COutOfDiskGlobalNote* NewL( COutOfDiskMonitor* aOutOfDiskMonitor, RFs& aFs  );
    52         static COutOfDiskGlobalNote* NewL( COutOfDiskMonitor* aOutOfDiskMonitor, RFs& aFs  );
    52         ~COutOfDiskGlobalNote();        
    53         ~COutOfDiskGlobalNote();        
    53         void DisplayL(const TDesC& aMessage);
    54         void DisplayL(const TDesC& aMessage);
    54         void ShowGlobalQueryL(TInt aStatus, TInt aDrive);
    55         void ShowGlobalQueryL(TInt aStatus, TInt aDrive);
    55         void CancelNoteL();
       
    56         TBool NoteOnDisplay();
    56         TBool NoteOnDisplay();
    57         TNoteInfo GetNoteInfo();
    57         TNoteInfo GetNoteInfo();
       
    58                                    
       
    59         void MessageBoxClosed(const CHbDeviceMessageBoxSymbian* aMessageBox,
       
    60                 CHbDeviceMessageBoxSymbian::TButtonId aButton);
       
    61 
    58     private:
    62     private:
    59         void ConstructL();
    63         void ConstructL();
    60         HBufC* FormatStringL(const TDesC& aSource, const MDesCArray& aStrings);
    64         HBufC* FormatStringL(const TDesC& aSource, const MDesCArray& aStrings);
    61     private: // From CActive    
    65        	         
    62     	void DoCancel();
       
    63     	void RunL();                
       
    64     private: // Data
    66     private: // Data
    65         COutOfDiskMonitor*  iOutOfDiskMonitor; //uses
    67         COutOfDiskMonitor*  iOutOfDiskMonitor; //uses
    66         RFs&                iFs;
    68         RFs&                iFs;
    67         CAknGlobalNote*     iQuery;
       
    68         RResourceFile       iOODResourceFile;
    69         RResourceFile       iOODResourceFile;
    69         TNoteInfo           iNoteInfo;
    70         TNoteInfo           iNoteInfo;
       
    71         CHbDeviceMessageBoxSymbian *iNote;
    70     };
    72     };
    71 #endif //__OUTOFDISKGLOBALNOTE_H__
    73 #endif //__OUTOFDISKGLOBALNOTE_H__