00001 #ifndef _GANONPIPE_H_ 00002 #define _GANONPIPE_H_ 00003 00005 class GAnonPipe 00006 { 00007 struct GAnonPipePriv *d; 00008 00009 public: 00010 GAnonPipe(); 00011 ~GAnonPipe(); 00012 00013 void Close(); 00014 bool IsOk(); 00015 00016 // Timers 00017 bool SetPulse(int i = -1); 00018 virtual void OnPulse() {} 00019 00020 // Messages 00021 void PostEvent(int cmd, int a = 0, int b = 0); 00022 int OnEvent(GMessage *Msg); 00023 GMessage *GetMessage(); 00024 }; 00025 00026 00027 #endif