reszip/inc/resdict.h
changeset 0 f58d6ec98e88
child 9 7c80ebddf816
equal deleted inserted replaced
-1:000000000000 0:f58d6ec98e88
       
     1 /*
       
     2 * Copyright (c) 1997-1999 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "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 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #if !defined(__RESDICT_H__)
       
    21 #define __RESDICT_H__
       
    22 
       
    23 #include <e32base.h>
       
    24 
       
    25 const TInt KMaxDictEntry = 80;
       
    26 
       
    27 class CResEntry;
       
    28 class CDictArray;
       
    29 class TBitWriter;
       
    30 
       
    31 
       
    32 class TDictEntry
       
    33 	{
       
    34 public:
       
    35 	TDictEntry();
       
    36 	void Close();
       
    37 	TInt Saved();
       
    38 	TDesC8& Data();
       
    39 	TInt Use();
       
    40 	void CreateEmbeddedDict(TInt aDictIndex,CDictArray* aDict);
       
    41 public:
       
    42 	TBufC8<KMaxDictEntry> iData;
       
    43 	TInt iUses;
       
    44 	TInt iRef;
       
    45 	CResEntry* iEmbedded;
       
    46 	};
       
    47 
       
    48 
       
    49 class CDictArray : public CArrayFixFlat<TDictEntry>
       
    50 	{
       
    51 public:
       
    52 	CDictArray();
       
    53 	~CDictArray();
       
    54 	TInt AddEntryL(TDesC8& aEntry);
       
    55 	void OrderedInsertL(TDictEntry& aEntry);
       
    56 	void SizedInsertL(TDictEntry& aEntry);
       
    57 	TInt DictionarySize();
       
    58 	TInt DictionarySizeWithoutIndex();
       
    59 	TInt BitSize(TInt aIndex);
       
    60 	void WriteBitStreamL(TInt aIndex, TBitWriter& aWriter);
       
    61 	CDictArray* DuplicateL();
       
    62 public:
       
    63 	TInt iDictionaryBits;
       
    64 	};
       
    65 
       
    66 
       
    67 #endif