1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/exbuf.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,69 @@
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(__EXBUF_H__)
1.20 +#define __EXBUF_H__
1.21 +
1.22 +
1.23 +
1.24 +class CExportBufferBase : public CBase
1.25 +/**
1.26 +CExportBufferBase
1.27 +@publishedPartner
1.28 +@deprecated
1.29 +*/
1.30 + {
1.31 + // The purpose of this class is to provide a method of
1.32 + // abstracting the destination of an output through a buffer
1.33 + // The class is intended to be used for a single output then destroyed
1.34 +public:
1.35 + IMPORT_C CExportBufferBase(TInt aMaxSize);
1.36 + IMPORT_C ~CExportBufferBase();
1.37 + IMPORT_C void ConstructL();
1.38 + virtual void CommitExportBufferL()=0;
1.39 + IMPORT_C void ResetExportBuffer();
1.40 + IMPORT_C void ResetWritePtr();
1.41 + IMPORT_C void FinalizeExport();
1.42 + IMPORT_C void InsertL(TText aText); // !! TText should be TText8 - do I need an overload here for Unicode?
1.43 +protected:
1.44 + TInt iExportBufferLength;
1.45 + HBufC* iExportBuffer;
1.46 +private:
1.47 + TText* iWritePtr;
1.48 + TText* iTBase;
1.49 + TInt iMaxSize;
1.50 + };
1.51 +
1.52 +
1.53 +
1.54 +class CExportDynamicBuffer : public CExportBufferBase
1.55 +/**
1.56 +CExportDynamicBuffer
1.57 +@publishedPartner
1.58 +@deprecated
1.59 +*/
1.60 + {
1.61 +public:
1.62 + IMPORT_C static CExportDynamicBuffer* NewL(TInt aSize, CBufBase& aDynamicBuffer);
1.63 + IMPORT_C void ConstructL();
1.64 +public: // from CExportBufferBase
1.65 + IMPORT_C void CommitExportBufferL();
1.66 +private:
1.67 + CExportDynamicBuffer(TInt aSize, CBufBase& aDynamicBuffer);
1.68 +private:
1.69 + CBufBase& iOutput;
1.70 + };
1.71 +
1.72 +#endif // __EXBUF_H__