os/security/cryptomgmtlibs/securitytestfw/test/testutil/server/testutilfilewatcher.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2006-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  @file 
    22  @test
    23  @internalComponent
    24 */
    25 
    26 #ifndef __TESTUTILFILEWATCHER_H__
    27 #define __TESTUTILFILEWATCHER_H__
    28 
    29 #include <e32base.h>
    30 #include <f32file.h>
    31 
    32 /**
    33  * This active object waits for an indication that the media has changed,
    34  * and then notifies its observer.
    35  */
    36 class CFileWatcher : public CActive
    37 	{
    38 public:
    39 	static CFileWatcher* NewL(RFs& aFs, const RMessagePtr2& aMessage);
    40 	static CFileWatcher* NewLC(RFs& aFs, const RMessagePtr2& aMessage);
    41 	
    42 	~CFileWatcher();
    43 
    44 	TInt Drive() const;
    45 private:
    46 	CFileWatcher(RFs& aFs, const RMessagePtr2& aMessage);
    47 
    48 	void ConstructL();
    49 
    50 // from CActive
    51 	void DoCancel();
    52 	void RunL();
    53 
    54 private:
    55 	/// Not owned by this class
    56 	RFs& iFs;
    57 
    58 	// Message which originated the notify request
    59 	const RMessagePtr2 iMessage;
    60 };
    61 
    62 	
    63 #endif // #ifndef __DRIVEWATCHER_H__
    64