os/security/cryptoservices/certificateandkeymgmt/tcertstore/filecertstorenibbler.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 /*
     2 * Copyright (c) 2005-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 *
    16 */
    17 
    18 
    19 
    20 
    21 /**
    22  @file
    23  @internalTechnology
    24 */
    25 
    26 #ifndef __FILECERTSTORENIBBLER_H__
    27 #define __FILECERTSTORENIBBLER_H__
    28 
    29 #include <e32std.h>
    30 #include <e32base.h>
    31 #include <f32file.h>
    32 #include <s32file.h>
    33 
    34 class CFileCertstoreNibbler : public CTimer
    35 {
    36 public:
    37 	static CFileCertstoreNibbler* NewL(TTimeIntervalMicroSeconds32 aInterval);
    38 	~CFileCertstoreNibbler();
    39 public:
    40 	void StartTimer();
    41 protected:
    42 	virtual void ConstructL();
    43 	virtual void RunL();
    44 	virtual TInt RunError(TInt aError);
    45 private:
    46 	CFileCertstoreNibbler(TTimeIntervalMicroSeconds32 aInterval);
    47 private:
    48 	void NibbleFileL();	//	writes to filecertstore file to test concurrency
    49 private:
    50 	RFs iFs;
    51 	TTimeIntervalMicroSeconds32 iNibbleInterval;
    52 	TStreamId iNibbleStreamId;
    53 };
    54 
    55 #endif	//	__FILECERTSTORENIBBLER_H__
    56