1/*
2 * Copyright 2004, Waldemar Kornewald <wkornew@gmx.net>
3 * Distributed under the terms of the MIT License.
4 */
5
6#ifndef _SIMPLE_MESSAGE_FILTER__H
7#define _SIMPLE_MESSAGE_FILTER__H
8
9#include <MessageFilter.h>
10
11
12class SimpleMessageFilter : public BMessageFilter {
13	public:
14		SimpleMessageFilter(const uint32 *what, BHandler *target);
15		virtual ~SimpleMessageFilter();
16
17		virtual filter_result Filter(BMessage *message, BHandler **target);
18
19	private:
20		uint32 *fWhatArray;
21		BHandler *fTarget;
22};
23
24
25#endif
26