voicerecorder/RecViewSrc/CVRDiskSpaceWatcher.h
branchRCL_3
changeset 21 c6bafb5162d8
parent 0 845549f293a7
equal deleted inserted replaced
20:072a5fa0c63b 21:c6bafb5162d8
       
     1 /*
       
     2 * Copyright (c) 2002 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: 
       
    15 *     Disk space level watcher 
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __CVRDISKSPACEWATCHER_H__
       
    21 #define __CVRDISKSPACEWATCHER_H__
       
    22 
       
    23 
       
    24 // CLASS DECLARATION
       
    25 class CVRMdaRecorder;
       
    26 
       
    27 /**
       
    28  * Database compression timeout timer.
       
    29  */
       
    30  NONSHARABLE_CLASS(CVRDiskSpaceWatcher) : public CActive
       
    31     {
       
    32     public:  // Interface
       
    33 		/**
       
    34          * Creates a new instance of this class.
       
    35 		 * @param aCompressionStrategy compressions strategy
       
    36 		 * @param aFs file server session
       
    37 		 * @param aThreshold threshold
       
    38 		 * @param aDrive disk drive
       
    39          */
       
    40         static CVRDiskSpaceWatcher* NewL
       
    41                 (CVRMdaRecorder&, RFs& aFs);
       
    42 
       
    43         void RequestNotification(TInt64 aThreshold, TInt aDrive);
       
    44 
       
    45 		/**
       
    46          * Destructor.
       
    47          */
       
    48         ~CVRDiskSpaceWatcher();
       
    49 
       
    50     private:  // from CActive
       
    51 	    void DoCancel();
       
    52         void RunL();
       
    53 	    TInt RunError(TInt aError);
       
    54 
       
    55     private:  // Implementation
       
    56         CVRDiskSpaceWatcher(CVRMdaRecorder&, RFs& aFs);
       
    57 
       
    58     private:  // Data
       
    59 		/// Ref. compression strategy
       
    60         CVRMdaRecorder& iRecorder;
       
    61 		/// Ref: file server session
       
    62         RFs iFs;
       
    63 		/// Own: threshold
       
    64         TInt64 iThreshold;
       
    65 		/// Own: disk drive
       
    66         TInt iDrive;
       
    67     };
       
    68 
       
    69 #endif // __CVRDISKSPACEWATCHER_H__
       
    70 
       
    71 // End of File