X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpollable.h;fp=source%2Fpollable.h;h=46cfb2347629689987d165d49a3642d81933fbe6;hb=1013e3c216cdf8e0ecc0f3b1e8314989b5333818;hp=0000000000000000000000000000000000000000;hpb=5780f0826f057f99593de46a583be7c098efaf90;p=libs%2Fcore.git diff --git a/source/pollable.h b/source/pollable.h new file mode 100644 index 0000000..46cfb23 --- /dev/null +++ b/source/pollable.h @@ -0,0 +1,28 @@ +/* +This file is part of libmspframework +Copyright © 2006 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ +#ifndef MSP_FRAMEWORK_POLLABLE_H_ +#define MSP_FRAMEWORK_POLLABLE_H_ + +#include + +namespace Msp { + +class Pollable +{ +public: + sigc::signal signal_deleted; + + virtual short poll(short, int =0); + virtual ~Pollable() { signal_deleted.emit(); } +protected: + virtual int get_fd()=0; + + friend class Poller; +}; + +} + +#endif