diff -r 000000000000 -r dd21522fd290 webengine/widgetbackuprestore/Inc/WidgetBackupRestore.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/webengine/widgetbackuprestore/Inc/WidgetBackupRestore.h Mon Mar 30 12:54:55 2009 +0300 @@ -0,0 +1,81 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "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: +* +*/ +#ifndef WIDGETBACKUPRESTORE_H +#define WIDGETBACKUPRESTORE_H + +#include +#ifdef _DEBUG +#include +#endif + +class CWidgetActiveCallback; + +class CWidgetBackupRestore : public CActive + { +public: + + static CWidgetBackupRestore* NewL(); + virtual ~CWidgetBackupRestore(); + +// from base class CActive + void RunL(); + TInt RunError( TInt aError ); + void DoCancel(); + +private: + + CWidgetBackupRestore(); + void ConstructL(); + + // Handles changes in backup state. + void HandleBackupStateL( const TInt aValue ); + + // Subsribes notifications of backup/restore p&s key. + void SubscribePSKey(); + +private: // data + + /** + * Callback interface for widget's active data owner. + * Own. + */ + CWidgetActiveCallback* iCallBack; + + /** + * Active backup client. + * Own. + */ + conn::CActiveBackupClient* iActiveBackupClient; + + /** + * Property to listen to. + */ + RProperty iBackupProperty; + + /** + * Last state of BUR: either backup or restore or normal or unset + */ + TInt iLastType; + +#ifdef _DEBUG + RFileLogger iFileLogger; + TBool iCanLog; +#endif + }; + + +#endif