diff -r 000000000000 -r c53acadfccc6 harvester/server/inc/cclientkeywatcherao.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/harvester/server/inc/cclientkeywatcherao.h Mon Jan 18 20:34:07 2010 +0200 @@ -0,0 +1,50 @@ +/* +* 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 "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 CCLIENTKEYWATCHERAO_H_ +#define CCLIENTKEYWATCHERAO_H_ + +#include +#include +#include + +class CRestoreWatcher; + +const TUid KPSRestoreWatcherCategory = { 0x200009F5 }; +const TUint KPSRestoreWatcherClientsKey = 0x00000010; + +class CClientKeyWatcherAO : public CActive + { + public: + static CClientKeyWatcherAO* NewL( CRestoreWatcher* aRestoreWatcher ); + virtual ~CClientKeyWatcherAO(); + + private: + CClientKeyWatcherAO( CRestoreWatcher* aRestoreWatcher ); + void ConstructL(); + void RunL(); + void DoCancel(); + TInt RunError( TInt ); + + private: + // Not owned + CRestoreWatcher* iRestoreWatcher; + + RProperty iClientsProperty; + TInt iClients; + }; + +#endif /*CCLIENTKEYWATCHERAO_H_*/