featuremgmt/featuremgr/src/serverexe/swilistener.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Sat, 20 Feb 2010 00:33:55 +0200
branchRCL_3
changeset 6 5ffdb8f2067f
parent 0 08ec8eefde2f
permissions -rw-r--r--
Revision: 201007 Kit: 201007

// Copyright (c) 2007-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 SWILISTENER_H
#define SWILISTENER_H

#include <e32base.h>
#include <e32property.h>

class CFeatMgrFeatureRegistry;


class CSWIListener : public CActive 
    {
    public:

		static CSWIListener* NewL(CFeatMgrFeatureRegistry*);
		~CSWIListener();

	private:

		void RunL();
		void DoCancel();
        CSWIListener(CFeatMgrFeatureRegistry*);
		void ConstructL();

	private:

		CFeatMgrFeatureRegistry* iRegistry;
		RProperty iProperty;
    };

    
class MSWICallBack 
	{
	public:
		virtual void SWITimedOut() = 0;
	};

class CSWITimer : public CTimer
	{
	public:
	
		static CSWITimer* NewL(const TTimeIntervalMicroSeconds32, MSWICallBack*);
		~CSWITimer();
		
	private:
	
		void RunL();
		void DoCancel();
		CSWITimer(MSWICallBack*);
		void ConstructL(const TTimeIntervalMicroSeconds32);
		
	private:
		
		MSWICallBack* iCallBack;
	};

#endif  // SWILISTENER_H

// End of File