mirror of
https://github.com/reactos/reactos.git
synced 2024-11-04 22:00:55 +00:00
7394d12f7e
CORE-17231
51 lines
1.2 KiB
C++
51 lines
1.2 KiB
C++
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS cabinet manager
|
|
* FILE: tools/cabman/cabman.h
|
|
* PURPOSE: Cabinet manager header
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "cabinet.h"
|
|
#include "dfp.h"
|
|
|
|
/* Cabinet manager modes */
|
|
#define CM_MODE_CREATE 0
|
|
#define CM_MODE_DISPLAY 1
|
|
#define CM_MODE_EXTRACT 2
|
|
#define CM_MODE_CREATE_SIMPLE 3
|
|
|
|
/* Classes */
|
|
|
|
class CCABManager : public CDFParser
|
|
{
|
|
public:
|
|
CCABManager();
|
|
virtual ~CCABManager();
|
|
bool ParseCmdline(int argc, char* argv[]);
|
|
bool Run();
|
|
bool IsVerbose() { return Verbose; }
|
|
private:
|
|
void Usage();
|
|
bool CreateCabinet();
|
|
bool DisplayCabinet();
|
|
bool ExtractFromCabinet();
|
|
|
|
/* Event handlers */
|
|
virtual bool OnOverwrite(PCFFILE File, const char* FileName) override;
|
|
virtual void OnExtract(PCFFILE File, const char* FileName) override;
|
|
virtual void OnDiskChange(const char* CabinetName, const char* DiskLabel) override;
|
|
virtual void OnAdd(PCFFILE Entry, const char* FileName) override;
|
|
virtual void OnVerboseMessage(const char* Message) override;
|
|
|
|
/* Configuration */
|
|
bool ProcessAll;
|
|
ULONG Mode;
|
|
bool PromptOnOverwrite;
|
|
char FileName[PATH_MAX];
|
|
bool Verbose;
|
|
};
|
|
|
|
|
|
/* EOF */
|