filemanager/App/inc/CFileManagerTaskScheduler.h
changeset 0 6a9f87576119
equal deleted inserted replaced
-1:000000000000 0:6a9f87576119
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Wraps task scheduler functionality
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_FILEMANAGERTASKSCHEDULER_H
       
    21 #define C_FILEMANAGERTASKSCHEDULER_H
       
    22 
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 #include <csch_cli.h>
       
    27 
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class CFileManagerEngine;
       
    31 
       
    32 
       
    33 // CLASS DECLARATION
       
    34 /**
       
    35  *  This class wraps task scheduler functionality
       
    36  *
       
    37  *  @since S60 3.1
       
    38  */
       
    39 class CFileManagerTaskScheduler : public CBase
       
    40     {
       
    41 
       
    42 public:  // New functions
       
    43     /**
       
    44      * Two-phased constructor.
       
    45      */
       
    46     static CFileManagerTaskScheduler* NewL(
       
    47         CFileManagerEngine& aEngine );
       
    48 
       
    49     /**
       
    50      * Destructor.
       
    51      */
       
    52     ~CFileManagerTaskScheduler();
       
    53 
       
    54     /**
       
    55      * Enables and disables backup schedule
       
    56      */
       
    57     void EnableBackupScheduleL( const TBool aEnable );
       
    58 
       
    59 private:
       
    60     CFileManagerTaskScheduler(
       
    61         CFileManagerEngine& aEngine );
       
    62 
       
    63     void ConstructL();
       
    64 
       
    65     void CreateScheduleL();
       
    66 
       
    67     void DeleteScheduleL();
       
    68 
       
    69 private: // Data
       
    70     /**
       
    71      * Reference to file manager engine
       
    72      * Not own.
       
    73      */
       
    74     CFileManagerEngine& iEngine;
       
    75 
       
    76     /**
       
    77      * Handle to task scheduler
       
    78      */
       
    79     RScheduler iScheduler;
       
    80 
       
    81     /**
       
    82      * Handle to schedule
       
    83      */
       
    84     TInt iScheduleHandle;
       
    85 
       
    86     };
       
    87 
       
    88 #endif // C_FILEMANAGERBACKUPSCHEDULER_H   
       
    89             
       
    90 // End of File