filemanager/src/fmbkupengine/inc/TMMCScBkupDriveFilter.h
branchRCL_3
changeset 21 65326cf895ed
parent 20 491b3ed49290
child 22 f5c50b8af68c
equal deleted inserted replaced
20:491b3ed49290 21:65326cf895ed
     1 /*
       
     2 * Copyright (c) 2005 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 for TMMCScBkupDriveFilter
       
    15 *     
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef __TMMCSCBKUPDRIVEFILTER_H__
       
    20 #define __TMMCSCBKUPDRIVEFILTER_H__
       
    21 
       
    22 // System includes
       
    23 #include <e32std.h>
       
    24 #include <f32file.h>
       
    25 
       
    26 /**
       
    27 *
       
    28 *
       
    29 * @since 3.0
       
    30 */
       
    31 NONSHARABLE_CLASS(TMMCScBkupDriveFilter)
       
    32     {
       
    33     public:
       
    34 
       
    35         /**
       
    36         * C++ default constructor
       
    37         */
       
    38         inline TMMCScBkupDriveFilter()
       
    39             { Reset(); }
       
    40 
       
    41         /**
       
    42         * C++ default constructor
       
    43         */
       
    44         inline TMMCScBkupDriveFilter( const TDriveList& aPrimaryList )
       
    45             : iPrimaryDriveList( aPrimaryList ), iHaveSecondaryList( EFalse )
       
    46             { Reset(); }
       
    47 
       
    48     public: // API
       
    49 
       
    50         /**
       
    51         *
       
    52         */
       
    53         void Reset();
       
    54 
       
    55         /**
       
    56         *
       
    57         */
       
    58         void SetPrimaryDriveFilter( const TDriveList& aDriveList );
       
    59 
       
    60         /**
       
    61         *
       
    62         */
       
    63         void SetSecondaryDriveFilter( const TDriveList& aDriveList );
       
    64 
       
    65         /**
       
    66         *
       
    67         */
       
    68         TBool NextValidDrive(TDriveNumber& aDrive);
       
    69 
       
    70         /**
       
    71         *
       
    72         */
       
    73         TDriveNumber CurrentDrive() const;
       
    74 
       
    75     private: // Internal methods
       
    76 
       
    77         /**
       
    78         *
       
    79         */
       
    80         TBool FindValidDrive( const TDriveList& aList, TDriveNumber& aDrive, TBool aOneAttemptOnly = EFalse );
       
    81 
       
    82     private: // Member data
       
    83 
       
    84         /**
       
    85         *
       
    86         */
       
    87         TInt iCurrentDrive;
       
    88         
       
    89         /**
       
    90         *
       
    91         */
       
    92         TDriveList iPrimaryDriveList;
       
    93         
       
    94         /**
       
    95         *
       
    96         */
       
    97         TDriveList iSecondaryDriveList;
       
    98 
       
    99         /**
       
   100         *
       
   101         */
       
   102         TBool iHaveSecondaryList;
       
   103     };
       
   104 
       
   105 
       
   106 
       
   107 
       
   108 #endif // __TMMCSCBKUPDRIVEFILTER_H__
       
   109 
       
   110 //End of File