reszip/inc/resdict.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:16:33 +0100
branchRCL_3
changeset 19 01fc9b7302d1
parent 18 44d14dfed84d
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* Copyright (c) 1997-1999 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "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:
*
*/



#if !defined(__RESDICT_H__)
#define __RESDICT_H__

#include <e32base.h>

const TInt KMaxDictEntry = 80;

class CResEntry;
class CDictArray;
class TBitWriter;


class TDictEntry
	{
public:
	TDictEntry();
	void Close();
	TInt Saved();
	TDesC8& Data();
	TInt Use();
	void CreateEmbeddedDictL(TInt aDictIndex,CDictArray* aDict);
public:
	TBufC8<KMaxDictEntry> iData;
	TInt iUses;
	TInt iRef;
	CResEntry* iEmbedded;
	};


class CDictArray : public CArrayFixFlat<TDictEntry>
	{
public:
	CDictArray();
	~CDictArray();
	TInt AddEntryL(TDesC8& aEntry);
	void OrderedInsertL(TDictEntry& aEntry);
	void SizedInsertL(TDictEntry& aEntry);
	TInt DictionarySize();
	TInt DictionarySizeWithoutIndex();
	TInt BitSize(TInt aIndex);
	void WriteBitStreamL(TInt aIndex, TBitWriter& aWriter);
	CDictArray* DuplicateL();
public:
	TInt iDictionaryBits;
	};


#endif