libraries/iosrv/server/file.h
changeset 0 7f656887cf89
equal deleted inserted replaced
-1:000000000000 0:7f656887cf89
       
     1 // file.h
       
     2 // 
       
     3 // Copyright (c) 2006 - 2010 Accenture. All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of the "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 // Accenture - Initial contribution
       
    11 //
       
    12 
       
    13 #include <e32base.h>
       
    14 #include <f32file.h>
       
    15 #include "endpoint.h"
       
    16 #include "readwrite.h"
       
    17 #include <fshell/descriptorutils.h>
       
    18 
       
    19 class CIoFile : public CIoEndPoint
       
    20 	{
       
    21 public:
       
    22 	static CIoFile* NewLC(RFs& aFs, const TDesC& aName, RIoFile::TMode aMode);
       
    23 	~CIoFile();
       
    24 public: // From CIoObject.
       
    25 	virtual TBool IsType(RIoHandle::TType aType) const;
       
    26 public: // From MIoReadEndPoint.
       
    27 	virtual void IorepReadL(MIoReader& aReader);
       
    28 public: // From MIoWriteEndPoint.
       
    29 	virtual void IowepWriteL(MIoWriter& aWriter);
       
    30 	virtual void IowepWriteCancel(MIoWriter& aWriter);
       
    31 private:
       
    32 	CIoFile();
       
    33 	void ConstructL(RFs& aFs, const TDesC& aName, RIoFile::TMode aMode);
       
    34 private:
       
    35 	RFile iFile;
       
    36 	TInt iPos;
       
    37 	LtkUtils::RLtkBuf iTempReadBuf;
       
    38 	};