diff -r 000000000000 -r 96e5fb8b040d kerneltest/f32test/server/t_localtime.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/kerneltest/f32test/server/t_localtime.h Thu Dec 17 09:24:54 2009 +0200 @@ -0,0 +1,240 @@ +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of the License "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: +// Declarations for the t_localtime test. This tests functionality introduced +// in CR1084 ie. That removable (in practice this means FAT) file systems +// can be made to use local time for timestamps. +// +// + +/** + @file + @test +*/ + + +#ifndef T_LOCALTIME_H +#define T_LOCALTIME_H + +#include + + + +/** +Provides a common test interface for files and directories. +*/ +class CFileSystemEntry : public CBase + { + +public: + virtual ~CFileSystemEntry()=0; + virtual TInt Delete(); + virtual TInt Create()=0; + virtual void SetPath(const TDesC& aPath); + virtual void SetFileServer(RFs* aFs); + virtual TInt Open()=0; + virtual TInt DeleteCreate(); + virtual void Close(); + virtual TTime ModificationTimeL()=0; + virtual TInt SetModificationTime(const TTime&)=0; + virtual TTime CreationTimeL(); + virtual CFileSystemEntry* CopyL()=0; + virtual const TDesC& Name() const; + +protected: + CFileSystemEntry(const TDesC& aPath, RFs* aFs); + RFs* iRFs; /// iDriveLetter; ///