1 //----------------------------------------------------------------------- 2 // This software is part of the OpenBeOS distribution and is covered 3 // by the OpenBeOS license. 4 // 5 // Copyright (c) 2004 Waldemar Kornewald, Waldemar.Kornewald@web.de 6 //----------------------------------------------------------------------- 7 8 #ifndef _SIMPLE_MESSAGE_FILTER__H 9 #define _SIMPLE_MESSAGE_FILTER__H 10 11 #include <MessageFilter.h> 12 13 14 class SimpleMessageFilter : public BMessageFilter { 15 public: 16 SimpleMessageFilter(const uint32 *what, BHandler *target); 17 virtual ~SimpleMessageFilter(); 18 19 virtual filter_result Filter(BMessage *message, BHandler **target); 20 21 private: 22 uint32 *fWhatArray; 23 BHandler *fTarget; 24 }; 25 26 27 #endif 28