1.1 --- a/epoc32/include/inbuf.h Wed Mar 31 12:27:01 2010 +0100
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,80 +0,0 @@
1.4 -// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 -// All rights reserved.
1.6 -// This component and the accompanying materials are made available
1.7 -// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.8 -// which accompanies this distribution, and is available
1.9 -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.10 -//
1.11 -// Initial Contributors:
1.12 -// Nokia Corporation - initial contribution.
1.13 -//
1.14 -// Contributors:
1.15 -//
1.16 -// Description:
1.17 -//
1.18 -
1.19 -#if !defined(__INBUF_H__)
1.20 -#define __INBUF_H__
1.21 -
1.22 -#if !defined(__F32FILE_H__)
1.23 -#include <f32file.h>
1.24 -#endif
1.25 -
1.26 -#if !defined(__S32STOR_H__)
1.27 -#include <s32stor.h>
1.28 -#endif
1.29 -
1.30 -const TInt KErrEndOfInput = -1000;
1.31 -
1.32 -
1.33 -class CImportBufferBase : public CBase
1.34 -/**
1.35 -The purpose of this class is to provide a method of
1.36 -abstracting the source of an input through a buffer
1.37 -The class is intended to be used for a single input then destroyed
1.38 -@publishedPartner
1.39 -@deprecated>
1.40 -*/
1.41 - {
1.42 -public:
1.43 - IMPORT_C CImportBufferBase(TInt aMaxSize);
1.44 - IMPORT_C ~CImportBufferBase();
1.45 - IMPORT_C void ConstructL();
1.46 - IMPORT_C TInt ReadL(TText8& aByte);
1.47 - // !! Descriptor versions of ReadL useful?
1.48 - IMPORT_C virtual TInt SeekL(TSeek aSeekMode, TInt anOffset);
1.49 - IMPORT_C void ResetImportBuffer();
1.50 - IMPORT_C void ResetReadPtr();
1.51 -protected:
1.52 - virtual TInt FillImportBuf()=0;
1.53 - IMPORT_C TInt MaxSize();
1.54 - IMPORT_C void SetLength(TInt aLength);
1.55 -protected:
1.56 - TInt iImportBufferLength;
1.57 - HBufC8* iImportBuffer;
1.58 -private:
1.59 - TText8* iReadPtr;
1.60 - TText8* iEndBuf;
1.61 - TText8* iTBase;
1.62 - TInt iMaxSize;
1.63 - };
1.64 -
1.65 -
1.66 -class CFileImportBuffer : public CImportBufferBase
1.67 -/**
1.68 -Buffered import from a file
1.69 -@publishedPartner
1.70 -@deprecated
1.71 -*/
1.72 - {
1.73 - // Buffered import from a file
1.74 -public:
1.75 - IMPORT_C CFileImportBuffer(RFile aSource, TInt aMaxSize);
1.76 - IMPORT_C TInt SeekL(TSeek aSeekMode, TInt anOffset);
1.77 -protected:
1.78 - IMPORT_C TInt FillImportBuf();
1.79 -private:
1.80 - RFile iSource;
1.81 - };
1.82 -
1.83 -#endif // __INBUF_H__