harvester/server/inc/pauseobserverao.h
changeset 0 c53acadfccc6
equal deleted inserted replaced
-1:000000000000 0:c53acadfccc6
       
     1 /*
       
     2 * Copyright (c) 2008-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:  Harvester server's P&S pause observer active object
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef PAUSEOBSERVERAO_H_
       
    20 #define PAUSEOBSERVERAO_H_
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <e32property.h>
       
    24 
       
    25 class CHarvesterServer;
       
    26 
       
    27 class CPauseObserverAO : public CActive
       
    28 	{	
       
    29 	public:
       
    30 		static CPauseObserverAO* NewL( CHarvesterServer& aHarvesterServer );
       
    31 		virtual ~CPauseObserverAO();
       
    32 	
       
    33 	private:
       
    34 		CPauseObserverAO( CHarvesterServer& aHarvesterServer );
       
    35 		void ConstructL();
       
    36 		void RunL();
       
    37 		void DoCancel();
       
    38 		TInt RunError( TInt aError );
       
    39 		
       
    40 	private:
       
    41 		CHarvesterServer& iHarvesterServer;
       
    42 		RProperty iPauseProperty;
       
    43 	};
       
    44 
       
    45 #endif /*PAUSEOBSERVERAO_H_*/