tools/installer/ICopyMethod.h
author David Anderson <dvander@alliedmods.net>
Wed Feb 25 20:07:12 2009 -0500 (2009-02-25)
changeset 2607 f3b8bbe17f85
parent 2289 44045ead61cd
permissions -rw-r--r--
Backed out changeset fa286305bd3f
     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_