sysresmonitoring/oodmonitor/oodmonitor2/inc/outofdiskglobalnote.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 16 Apr 2010 15:08:06 +0300
changeset 21 c4cbaa4fb734
parent 0 2e3d3ce01487
child 51 50b444048a8d
permissions -rw-r--r--
Revision: 201011 Kit: 201015

/*
* Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Declaration of COutOfDiskMonitor class.
*
*/


#ifndef __OUTOFDISKGLOBALNOTE_H__
#define __OUTOFDISKGLOBALNOTE_H__

// SYSTEM INCLUDES
#include <uiklaf/private/lafshut.h>
#include <coemain.h>
#include "hbdevicemessageboxsymbian.h"


// USER INCLUDES

// CONSTANTS

// FORWARD DECLARATIONS
class COutOfDiskMonitor;
class TNoteInfo
    {
public:
    TInt iNoteId;
    TInt iStatus;
    TInt iDrive;
    };
/**
*  
*  
*
*  @lib None
*  @since S60 3.2
*/
NONSHARABLE_CLASS(COutOfDiskGlobalNote) : public CActive
    {
    public:
        COutOfDiskGlobalNote( COutOfDiskMonitor* aOutOfDiskMonitor, RFs& aFs  );    
        static COutOfDiskGlobalNote* NewL( COutOfDiskMonitor* aOutOfDiskMonitor, RFs& aFs  );
        ~COutOfDiskGlobalNote();        
        void DisplayL(const TDesC& aMessage);
        void ShowGlobalQueryL(TInt aStatus, TInt aDrive);
        void CancelNoteL();
        TBool NoteOnDisplay();
        TNoteInfo GetNoteInfo();
    private:
        void ConstructL();
        HBufC* FormatStringL(const TDesC& aSource, const MDesCArray& aStrings);
    private: // From CActive    
    	void DoCancel();
    	void RunL();                
    private: // Data
        COutOfDiskMonitor*  iOutOfDiskMonitor; //uses
        RFs&                iFs;
        RResourceFile       iOODResourceFile;
        TNoteInfo           iNoteInfo;
    };
#endif //__OUTOFDISKGLOBALNOTE_H__