filemanager/App/inc/CFileManagerTaskScheduler.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 15 Mar 2010 12:39:38 +0200
branchRCL_3
changeset 8 1772663c5b4e
parent 0 6a9f87576119
permissions -rw-r--r--
Revision: 201009 Kit: 201010

/*
* 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