messagingfw/watcherfw/inc/cwatcherlauncher.h
changeset 0 8e480a14352b
equal deleted inserted replaced
-1:000000000000 0:8e480a14352b
       
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __CWATCHERLAUNCHER_H__
       
    17 #define __CWATCHERLAUNCHER_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <f32file.h>
       
    21 
       
    22 class CWatcherLog;
       
    23 class CActiveWatcher;
       
    24 
       
    25 /**
       
    26 @internalComponent
       
    27 @released
       
    28 */
       
    29 class CWatcherLauncher : public CActive
       
    30 	{
       
    31 public:
       
    32 	static CWatcherLauncher* NewL(const TDesC& aWatcherName, TUid aWatcherUid, RFs& aFs, CWatcherLog& aLog);
       
    33 	virtual ~CWatcherLauncher();
       
    34 private:	// methods from CActive
       
    35 	virtual void RunL();
       
    36 	virtual void DoCancel();
       
    37 	virtual TInt RunError(TInt aError);
       
    38 private:
       
    39 	CWatcherLauncher(TUid aWatcherUid, RFs& aFs, CWatcherLog& aLog);
       
    40 	void ConstructL(const TDesC& aWatcherName);
       
    41 private:
       
    42 	TUid			iWatcherUid;
       
    43 	RFs&			iFs;
       
    44 	CWatcherLog&	iLog;
       
    45 	HBufC*			iWatcherName;
       
    46 	CActive*		iWatcher;
       
    47 	RTimer			iTimer;
       
    48 	TInt			iStartCount;
       
    49 	TUid			iDtor_ID_Key;
       
    50 	};
       
    51 
       
    52 #endif	// __CWATCHERLAUNCHERARRAY_H__