filemanager/App/inc/CFileManagerTaskScheduler.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:31:07 +0100
branchRCL_3
changeset 39 65326cf895ed
parent 0 6a9f87576119
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* Copyright (c) 2006 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:  Wraps task scheduler functionality
*
*/



#ifndef C_FILEMANAGERTASKSCHEDULER_H
#define C_FILEMANAGERTASKSCHEDULER_H


//  INCLUDES
#include <e32base.h>
#include <csch_cli.h>


// FORWARD DECLARATIONS
class CFileManagerEngine;


// CLASS DECLARATION
/**
 *  This class wraps task scheduler functionality
 *
 *  @since S60 3.1
 */
class CFileManagerTaskScheduler : public CBase
    {

public:  // New functions
    /**
     * Two-phased constructor.
     */
    static CFileManagerTaskScheduler* NewL(
        CFileManagerEngine& aEngine );

    /**
     * Destructor.
     */
    ~CFileManagerTaskScheduler();

    /**
     * Enables and disables backup schedule
     */
    void EnableBackupScheduleL( const TBool aEnable );

private:
    CFileManagerTaskScheduler(
        CFileManagerEngine& aEngine );

    void ConstructL();

    void CreateScheduleL();

    void DeleteScheduleL();

private: // Data
    /**
     * Reference to file manager engine
     * Not own.
     */
    CFileManagerEngine& iEngine;

    /**
     * Handle to task scheduler
     */
    RScheduler iScheduler;

    /**
     * Handle to schedule
     */
    TInt iScheduleHandle;

    };

#endif // C_FILEMANAGERBACKUPSCHEDULER_H   
            
// End of File