00001 #ifdef THIS_CODE_IS_NOT_USED
00002
00027
00028
00029 #ifndef __ETL_STATUS_H
00030 #define __ETL_STATUS_H
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040 _ETL_BEGIN_NAMESPACE
00041
00042 class status
00043 {
00044 public:
00045 virtual ~ProgressCallback() { }
00046
00047 virtual bool task(const std::string &task) { return true; }
00048
00049 #warning this task(task) thing looks wrong, but the code isn't used, so let's not worry
00050 virtual void push_task(const std::string &task,int start=0, int end=100, int total=100)
00051 { task(task); }
00052 virtual void pop_task() { return; }
00053
00054 virtual void warning(const std::string &warn) { return; }
00055 virtual void error(const std::string &err) { return; }
00056
00057 virtual bool amount_complete(int current, int total) { return true; }
00058 virtual bool amount_complete(float percent)
00059 { return amount_complete((int)(percent*10000),10000); }
00060 };
00061
00062 _ETL_END_NAMESPACE
00063
00064
00065
00066
00067
00068 #endif
00069 #endif