~ubuntu-installer/wubi/trunk

« back to all changes in this revision

Viewing changes to src/7z/CPP/7zip/Archive/Nsis/NsisDecode.h

  • Committer: Agostino Russo
  • Date: 2008-12-04 00:37:30 UTC
  • Revision ID: agostino.russo@gmail.com-20081204003730-3o051yp78d6ujckl
* Bumped version to 9.04
* Added required binaries (will be compiled at a later stage)
* Added uninstallation page
* Added BitTorrent source
* Added documentation and licenses
* Connected download managers
* Fixed download status updates
* Added more information to the README
* Made the tasklist thread daemonic so that it does not prevent the
  main application from quitting

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// NsisDecode.h
 
2
 
 
3
#ifndef __NSIS_DECODE_H
 
4
#define __NSIS_DECODE_H
 
5
 
 
6
#include "../../IStream.h"
 
7
 
 
8
#include "../../Common/CreateCoder.h"
 
9
 
 
10
namespace NArchive {
 
11
namespace NNsis {
 
12
 
 
13
namespace NMethodType
 
14
{
 
15
  enum EEnum
 
16
  {
 
17
    kCopy,
 
18
    kDeflate,
 
19
    kBZip2,
 
20
    kLZMA
 
21
  };
 
22
}
 
23
 
 
24
class CDecoder
 
25
{
 
26
  NMethodType::EEnum _method;
 
27
 
 
28
  CMyComPtr<ISequentialInStream> _filterInStream;
 
29
  CMyComPtr<ISequentialInStream> _codecInStream;
 
30
  CMyComPtr<ISequentialInStream> _decoderInStream;
 
31
 
 
32
public:
 
33
  void Release()
 
34
  {
 
35
    _filterInStream.Release();
 
36
    _codecInStream.Release();
 
37
    _decoderInStream.Release();
 
38
  }
 
39
  HRESULT Init(
 
40
      DECL_EXTERNAL_CODECS_LOC_VARS
 
41
      IInStream *inStream, NMethodType::EEnum method, bool thereIsFilterFlag, bool &useFilter);
 
42
  HRESULT Read(void *data, UInt32 size, UInt32 *processedSize);
 
43
};
 
44
 
 
45
}}
 
46
 
 
47
#endif