messagingfw/watcherfw/inc/cwatcherlauncher.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 19 Aug 2010 10:24:00 +0300
branchRCL_3
changeset 39 e5b3a2155e1a
parent 0 8e480a14352b
permissions -rw-r--r--
Revision: 201031 Kit: 201033

// Copyright (c) 2004-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 __CWATCHERLAUNCHER_H__
#define __CWATCHERLAUNCHER_H__

#include <e32base.h>
#include <f32file.h>

class CWatcherLog;
class CActiveWatcher;

/**
@internalComponent
@released
*/
class CWatcherLauncher : public CActive
	{
public:
	static CWatcherLauncher* NewL(const TDesC& aWatcherName, TUid aWatcherUid, RFs& aFs, CWatcherLog& aLog);
	virtual ~CWatcherLauncher();
private:	// methods from CActive
	virtual void RunL();
	virtual void DoCancel();
	virtual TInt RunError(TInt aError);
private:
	CWatcherLauncher(TUid aWatcherUid, RFs& aFs, CWatcherLog& aLog);
	void ConstructL(const TDesC& aWatcherName);
private:
	TUid			iWatcherUid;
	RFs&			iFs;
	CWatcherLog&	iLog;
	HBufC*			iWatcherName;
	CActive*		iWatcher;
	RTimer			iTimer;
	TInt			iStartCount;
	TUid			iDtor_ID_Key;
	};

#endif	// __CWATCHERLAUNCHERARRAY_H__