harvester/server/inc/cclientkeywatcherao.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:
       
    15 *
       
    16 */
       
    17 #ifndef CCLIENTKEYWATCHERAO_H_
       
    18 #define CCLIENTKEYWATCHERAO_H_
       
    19 
       
    20 #include <e32base.h>
       
    21 #include <e32cmn.h>
       
    22 #include <e32property.h>
       
    23 
       
    24 class CRestoreWatcher;
       
    25 
       
    26 const TUid KPSRestoreWatcherCategory = { 0x200009F5 };
       
    27 const TUint KPSRestoreWatcherClientsKey = 0x00000010;
       
    28 
       
    29 class CClientKeyWatcherAO : public CActive
       
    30 	{	
       
    31 	public:
       
    32 		static CClientKeyWatcherAO* NewL( CRestoreWatcher* aRestoreWatcher );
       
    33 		virtual ~CClientKeyWatcherAO();
       
    34 	
       
    35 	private:
       
    36 		CClientKeyWatcherAO( CRestoreWatcher* aRestoreWatcher );
       
    37 		void ConstructL();
       
    38 		void RunL();
       
    39 		void DoCancel();
       
    40 		TInt RunError( TInt );
       
    41 		
       
    42 	private:
       
    43 		// Not owned
       
    44 		CRestoreWatcher* iRestoreWatcher;
       
    45 
       
    46 		RProperty iClientsProperty;
       
    47 		TInt iClients;
       
    48 	};
       
    49 
       
    50 #endif /*CCLIENTKEYWATCHERAO_H_*/