metadataengine/server/inc/mdebackuprestorewatcher.h
changeset 0 c53acadfccc6
equal deleted inserted replaced
-1:000000000000 0:c53acadfccc6
       
     1 /*
       
     2 * Copyright (c) 2009 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:  Class for observing backup/restore events
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __MDEBACKUPRESTOREWATCHER_H__
       
    19 #define __MDEBACKUPRESTOREWATCHER_H__
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <e32cmn.h>
       
    23 #include <e32property.h>
       
    24 
       
    25 #include "mdebackuprestoreobserver.h"
       
    26 
       
    27 class CMdEBackupRestoreWatcherAO : public CActive
       
    28 	{
       
    29 	public:
       
    30 		static CMdEBackupRestoreWatcherAO* NewL(MMdEBackupRestoreObserver& aObserver);
       
    31 
       
    32 		static CMdEBackupRestoreWatcherAO* NewLC(MMdEBackupRestoreObserver& aObserver);
       
    33 
       
    34 		virtual ~CMdEBackupRestoreWatcherAO();
       
    35 
       
    36 	private: // private methods
       
    37 		CMdEBackupRestoreWatcherAO(MMdEBackupRestoreObserver& aObserver);
       
    38 		void ConstructL();
       
    39 		
       
    40 		/**
       
    41 	    * RunL from CActive
       
    42 		*/
       
    43 		void RunL();
       
    44 		 
       
    45 	    /**
       
    46 		* DoCancel from CActive
       
    47 		*/
       
    48 		void DoCancel();
       
    49 
       
    50 	    /**
       
    51 		* Run by active scheduler in case of an error.
       
    52 		* @param aError Code of the occurred error
       
    53 		* @return Error code after RunError().
       
    54 		*/
       
    55 		TInt RunError(TInt aError);
       
    56 
       
    57 	private: // private data
       
    58 		MMdEBackupRestoreObserver& iObserver;
       
    59 		RProperty iProperty;
       
    60 	};
       
    61 	
       
    62 #endif // __MDEBACKUPRESTOREWATCHER_H__