1 #ifndef __lib_components_file_eraser_h
2 #define __lib_components_file_eraser_h
4 #include <lib/base/thread.h>
5 #include <lib/base/message.h>
6 #include <lib/base/ebase.h>
8 class eBackgroundFileEraser: public eMainloop, private eThread, public Object
19 Message(int type=0, const char *filename=0)
20 :type(type), filename(filename)
23 eFixedMessagePump<Message> messages;
24 static eBackgroundFileEraser *instance;
25 void gotMessage(const Message &message);
28 eTimer stop_thread_timer;
32 eBackgroundFileEraser();
33 ~eBackgroundFileEraser();
37 void erase(const char * filename);
38 static eBackgroundFileEraser *getInstance() { return instance; }