sysresmonitoring/oodmonitor/oodmonitor2/inc/outofdiskglobalnote.h
changeset 0 2e3d3ce01487
child 21 c4cbaa4fb734
child 62 924385140d98
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sysresmonitoring/oodmonitor/oodmonitor2/inc/outofdiskglobalnote.h	Tue Feb 02 10:12:00 2010 +0200
@@ -0,0 +1,71 @@
+/*
+* Copyright (c) 2007-2009 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 <AknGlobalNote.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;
+        CAknGlobalNote*     iQuery;
+        RResourceFile       iOODResourceFile;
+        TNoteInfo           iNoteInfo;
+    };
+#endif //__OUTOFDISKGLOBALNOTE_H__