tools/installer/ICopyMethod.h
author Scott Ehlert <ds@alliedmods.net>
Sun Sep 14 02:59:26 2008 -0500 (2008-09-14)
changeset 2288 15c77b21589a
parent 1952 b7aa2b626807
child 2289 44045ead61cd
permissions -rw-r--r--
Eliminated head for dead branch: refac-jit
     1 #ifndef _INCLUDE_INSTALLER_COPY_METHOD_H_
     2 #define _INCLUDE_INSTALLER_COPY_METHOD_H_
     3 
     4 #include "platform_headers.h"
     5 
     6 class ICopyProgress
     7 {
     8 public:
     9 	virtual void StartingNewFile(const TCHAR *filename) =0;
    10 	virtual void UpdateProgress(size_t bytes, size_t total_bytes) =0;
    11 	virtual void FileDone(size_t file_size) =0;
    12 };
    13 
    14 class ICopyMethod
    15 {
    16 public:
    17 	virtual bool CheckForExistingInstall() =0;
    18 	virtual void TrackProgress(ICopyProgress *pProgress) =0;
    19 	virtual bool SetCurrentFolder(const TCHAR *path, TCHAR *buffer, size_t maxchars) =0;
    20 	virtual bool SendFile(const TCHAR *path, TCHAR *buffer, size_t maxchars) =0;
    21 	virtual bool CreateFolder(const TCHAR *name, TCHAR *buffer, size_t maxchars) =0;
    22 	virtual void CancelCurrentCopy() =0;
    23 };
    24 
    25 #endif //_INCLUDE_INSTALLER_COPY_METHOD_H_