Artifact Content

Not logged in

Artifact 3dbc15b093e50358d551b180a3da0bbd3d3be300


     1  #ifndef AFX_ARCMSC_H__1891072B_44D7_4577_AF05_6D221A2FD0DD__INCLUDED_
     2  #define AFX_ARCMSC_H__1891072B_44D7_4577_AF05_6D221A2FD0DD__INCLUDED_
     3  
     4  #include "Archiver.h"
     5  #include "SubDlg.h"
     6  
     7  class CArcMsc : public CArchiver
     8  {
     9  public:
    10  	CArcMsc() : CArchiver("") {}
    11  
    12  private:
    13  	int v_load()
    14  		{
    15  			set_cmp_ext( "??_" ), add_cmp_mhd( "MSCompress" );
    16  			return aCheck|aMelt|aList|aMeltEach|aCompress;
    17  		}
    18  	int  v_contents( const kiPath& aname, kiPath& dnam ){return aSingleFile;}
    19  
    20  	bool v_check( const kiPath& aname );
    21  	int  v_melt( const arcname& aname, const kiPath& ddir, const aflArray* files );
    22  	bool v_list( const arcname& aname, aflArray& files );
    23  	int  v_compress( const kiPath& base, const wfdArray& files, const kiPath& ddir, int method, bool sfx );
    24  	kiStr v_name(const char*) const { return "MSCompress"; }
    25  
    26  private:
    27  	bool header( kiFile& fp, unsigned long* siz, char* ext );
    28  	void filename( char* oname, const char* ol, char ext );
    29  	bool do_lzss( kiFile& in, kiFile& out, CArcProgressDlg& dlg );
    30  };
    31  
    32  #endif