1dceee0deSWaldemar Kornewald /* 2*6e17c55aSWaldemar Kornewald * Copyright 2004, Waldemar Kornewald <wkornew@gmx.net> 3dceee0deSWaldemar Kornewald * Distributed under the terms of the MIT License. 4dceee0deSWaldemar Kornewald */ 560abfca0SWaldemar Kornewald 660abfca0SWaldemar Kornewald #ifndef _SIMPLE_MESSAGE_FILTER__H 760abfca0SWaldemar Kornewald #define _SIMPLE_MESSAGE_FILTER__H 860abfca0SWaldemar Kornewald 960abfca0SWaldemar Kornewald #include <MessageFilter.h> 1060abfca0SWaldemar Kornewald 1160abfca0SWaldemar Kornewald 1260abfca0SWaldemar Kornewald class SimpleMessageFilter : public BMessageFilter { 1360abfca0SWaldemar Kornewald public: 1460abfca0SWaldemar Kornewald SimpleMessageFilter(const uint32 *what, BHandler *target); 1560abfca0SWaldemar Kornewald virtual ~SimpleMessageFilter(); 1660abfca0SWaldemar Kornewald 1760abfca0SWaldemar Kornewald virtual filter_result Filter(BMessage *message, BHandler **target); 1860abfca0SWaldemar Kornewald 1960abfca0SWaldemar Kornewald private: 2060abfca0SWaldemar Kornewald uint32 *fWhatArray; 2160abfca0SWaldemar Kornewald BHandler *fTarget; 2260abfca0SWaldemar Kornewald }; 2360abfca0SWaldemar Kornewald 2460abfca0SWaldemar Kornewald 2560abfca0SWaldemar Kornewald #endif 26