sysresmonitoring/oodmonitor/oodmonitor2/inc/outofdiskglobalnote.h
changeset 0 2e3d3ce01487
child 21 c4cbaa4fb734
child 62 924385140d98
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 /*
       
     2 * Copyright (c) 2007-2009 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:  Declaration of COutOfDiskMonitor class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __OUTOFDISKGLOBALNOTE_H__
       
    20 #define __OUTOFDISKGLOBALNOTE_H__
       
    21 
       
    22 // SYSTEM INCLUDES
       
    23 #include <uiklaf/private/lafshut.h>
       
    24 #include <coemain.h>
       
    25 #include <AknGlobalNote.h>
       
    26 
       
    27 // USER INCLUDES
       
    28 
       
    29 // CONSTANTS
       
    30 
       
    31 // FORWARD DECLARATIONS
       
    32 class COutOfDiskMonitor;
       
    33 class TNoteInfo
       
    34     {
       
    35 public:
       
    36     TInt iNoteId;
       
    37     TInt iStatus;
       
    38     TInt iDrive;
       
    39     };
       
    40 /**
       
    41 *  
       
    42 *  
       
    43 *
       
    44 *  @lib None
       
    45 *  @since S60 3.2
       
    46 */
       
    47 NONSHARABLE_CLASS(COutOfDiskGlobalNote) : public CActive
       
    48     {
       
    49     public:
       
    50         COutOfDiskGlobalNote( COutOfDiskMonitor* aOutOfDiskMonitor, RFs& aFs  );    
       
    51         static COutOfDiskGlobalNote* NewL( COutOfDiskMonitor* aOutOfDiskMonitor, RFs& aFs  );
       
    52         ~COutOfDiskGlobalNote();        
       
    53         void DisplayL(const TDesC& aMessage);
       
    54         void ShowGlobalQueryL(TInt aStatus, TInt aDrive);
       
    55         void CancelNoteL();
       
    56         TBool NoteOnDisplay();
       
    57         TNoteInfo GetNoteInfo();
       
    58     private:
       
    59         void ConstructL();
       
    60         HBufC* FormatStringL(const TDesC& aSource, const MDesCArray& aStrings);
       
    61     private: // From CActive    
       
    62     	void DoCancel();
       
    63     	void RunL();                
       
    64     private: // Data
       
    65         COutOfDiskMonitor*  iOutOfDiskMonitor; //uses
       
    66         RFs&                iFs;
       
    67         CAknGlobalNote*     iQuery;
       
    68         RResourceFile       iOODResourceFile;
       
    69         TNoteInfo           iNoteInfo;
       
    70     };
       
    71 #endif //__OUTOFDISKGLOBALNOTE_H__