diff -r 491b3ed49290 -r 65326cf895ed filemanager/App/inc/CFileManagerTaskScheduler.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/filemanager/App/inc/CFileManagerTaskScheduler.h Wed Sep 01 12:31:07 2010 +0100 @@ -0,0 +1,90 @@ +/* +* 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 +#include + + +// 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