cryptomgmtlibs/securitytestfw/test/testutil/server/testutilsdpfilewatcher.h
changeset 0 2c201484c85f
equal deleted inserted replaced
-1:000000000000 0:2c201484c85f
       
     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 the License "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: 
       
    15 * TestUtil - filewatcher class
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 /**
       
    23  @file 
       
    24  @test
       
    25  @internalComponent
       
    26 */
       
    27 
       
    28 #ifndef __TESTUTILSDPFILEWATCHER_H__
       
    29 #define __TESTUTILSDPFILEWATCHER_H__
       
    30 
       
    31 #include <e32base.h>
       
    32 #include <f32file.h>
       
    33 
       
    34 /**
       
    35  * This active object waits for an indication that the media has changed,
       
    36  * and then notifies its observer.
       
    37  */
       
    38 class CFileWatcher : public CActive
       
    39 	{
       
    40 public:
       
    41 	static CFileWatcher* NewL(RFs& aFs, const RMessagePtr2& aMessage);
       
    42 	static CFileWatcher* NewLC(RFs& aFs, const RMessagePtr2& aMessage);
       
    43 	
       
    44 	~CFileWatcher();
       
    45 
       
    46 	TInt Drive() const;
       
    47 private:
       
    48 	CFileWatcher(RFs& aFs, const RMessagePtr2& aMessage);
       
    49 
       
    50 	void ConstructL();
       
    51 
       
    52 // from CActive
       
    53 	void DoCancel();
       
    54 	void RunL();
       
    55 
       
    56 private:
       
    57 	/// Not owned by this class
       
    58 	RFs& iFs;
       
    59 
       
    60 	// Message which originated the notify request
       
    61 	const RMessagePtr2 iMessage;
       
    62 };
       
    63 
       
    64 	
       
    65 #endif // #ifndef __DRIVEWATCHER_H__