class HT_Update_Status {
public:
virtual void request_cancel (void) = 0;
virtual HT_Boolean cancel_requested (void) = 0;
virtual int percentage (void) = 0;
virtual void set_percentage (int percent) = 0;
};
Details
The application subclasses off of HT_Update_Status
to create "real" update objects. Following is an example class defined
for testing:
class My_Update_Status : public HT_Update_Status {
private:
HT_Boolean m_cancel;
int m_percentage;
public:
My_Update_Status (void) : m_cancel (HK_False), m_percentage (0) {}
void request_cancel (void) {m_cancel = HK_False;}
HT_Boolean cancel_requested (void) {return m_cancel;}
int percentage (void) {return m_percentage;}
void set_percentage (int percentage) {m_percentage = percentage;}
};
pUS = new My_Update_Status (); ....
// get the EOV renderer going
m_render = (*mx_render) (m_device);
HD_Assert (m_render != null);
m_render.set_configure ("Process Diagonals", HT_Option_Value(HK_True));
m_render.set_configure ("Update Monitor", HT_Option_Value((void *) pUS));
m_render.establish ();