filemanager/src/fmbkupengine/inc/CMMCScBkupStateRequestListOfPublicFiles.h
branchRCL_3
changeset 20 491b3ed49290
equal deleted inserted replaced
19:95243422089a 20:491b3ed49290
       
     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 CMMCScBkupStateRequestListOfPublicFiles
       
    15 *     
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef __CMMCSCBKUPSTATEREQUESTLISTOFPUBLICFILES_H__
       
    20 #define __CMMCSCBKUPSTATEREQUESTLISTOFPUBLICFILES_H__
       
    21 
       
    22 // User includes
       
    23 #include "CMMCScBkupState.h"
       
    24 #include "CMMCScBkupDriveSpecificRequest.h"
       
    25 
       
    26 // Namespaces
       
    27 using namespace conn;
       
    28 
       
    29 // Classes referenced
       
    30 class CMMCScBkupDataOwnerInfo;
       
    31 class CMMCScBkupStateRequestSpecificPublicFileInfo;
       
    32 
       
    33 
       
    34 /**
       
    35 *
       
    36 *
       
    37 * @since 3.0
       
    38 */
       
    39 NONSHARABLE_CLASS(CMMCScBkupStateRequestListOfPublicFiles) : public CMMCScBkupState
       
    40     {
       
    41     public:
       
    42 
       
    43         /**
       
    44         * Static constructor
       
    45         */
       
    46         static CMMCScBkupStateRequestListOfPublicFiles* NewL( MMMCScBkupDriver& aDriver );
       
    47 
       
    48         /**
       
    49         * C++ destructor
       
    50         */
       
    51         ~CMMCScBkupStateRequestListOfPublicFiles( );
       
    52 
       
    53     private:
       
    54 
       
    55         /**
       
    56         * C++ default constructor
       
    57         */
       
    58         CMMCScBkupStateRequestListOfPublicFiles( MMMCScBkupDriver& aDriver );
       
    59 
       
    60         /**
       
    61         * Second phase constructor
       
    62         */
       
    63         void ConstructL( );
       
    64 
       
    65     public: // From CMMCScBkupState
       
    66         TMMCScBkupStateId StateId() const;
       
    67         TMMCScBkupStateId NextStateId() const;
       
    68         TStateExecution CategorySpecific() const { return EStatePerCategory; }
       
    69 
       
    70     private: // From CMMCScBkupState
       
    71         void PerformStateInitL();
       
    72         void PerformAsynchronousStateStepL();
       
    73         TBool PerformAsynchronousErrorCleanup(TInt aError);
       
    74         void PerformAsynchronousCancellation();
       
    75         void PerformLastRightsL();
       
    76 
       
    77     private: // Data members
       
    78 
       
    79         //
       
    80         TInt iCurrentDataOwnerIndex;
       
    81         //
       
    82         CMMCScBkupStateRequestSpecificPublicFileInfo* iRequestObject;
       
    83     };
       
    84 
       
    85 
       
    86 
       
    87 
       
    88 
       
    89 
       
    90 
       
    91 /**
       
    92 *
       
    93 *
       
    94 * @since 3.0
       
    95 */
       
    96 class CMMCScBkupStateRequestSpecificPublicFileInfo : public CMMCScBkupDriveSpecificRequest
       
    97     {
       
    98     public:
       
    99 
       
   100         /**
       
   101         *
       
   102         */
       
   103         static CMMCScBkupStateRequestSpecificPublicFileInfo* NewL( MMMCScBkupDriver& aDriver );
       
   104 
       
   105     private:
       
   106 
       
   107         /**
       
   108         * C++ default constructor
       
   109         */
       
   110         CMMCScBkupStateRequestSpecificPublicFileInfo( MMMCScBkupDriver& aDriver );
       
   111 
       
   112     public: // API
       
   113 
       
   114         /**
       
   115         *
       
   116         */
       
   117         void RequestL( CMMCScBkupDataOwnerInfo& aOwner, TRequestStatus& aObserver );
       
   118 
       
   119     private: // From CActive
       
   120         void RunL();
       
   121         void DoCancel();
       
   122 
       
   123     private: // Internal methods
       
   124         inline MMMCScBkupDriver& Driver() { return iDriver; }
       
   125 
       
   126     private: // Member data
       
   127 
       
   128         //
       
   129         MMMCScBkupDriver& iDriver;
       
   130         //
       
   131         CMMCScBkupDataOwnerInfo* iOwner;
       
   132     };
       
   133 
       
   134 
       
   135 
       
   136 
       
   137 
       
   138 
       
   139 
       
   140 #endif // __CMMCSCBKUPSTATEREQUESTLISTOFPUBLICFILES_H__
       
   141 
       
   142 //End of File