00001 #ifndef _VU_PROGRESS_HANDLER_H_ 00002 #define _VU_PROGRESS_HANDLER_H_ 00003 00004 /* This class provides an abstract interface (protocol) to the 00005 wxProgressDialog callback. The reason for this construct is the desired 00006 independency of libvuGeneral to other libs (e.g libwxWindows). 00007 00008 A real implementation of this protocal can be found in 00009 wxUIElements/vuSimpleProgressHandler.[h,cpp]. -ms- 00010 */ 00011 00012 class vuProgressHandler { 00013 public: 00014 00046 virtual void setRange(int range) = 0; 00047 virtual int getRange() = 0; 00048 00052 virtual int getCurrentProgress() = 0; 00053 00055 virtual bool update(int newProgressValue, const char* msg=0) = 0; 00056 }; 00057 00058 #endif