Copyright 2005, Francois Revol. All Rights Reserved.
This file may be used under the terms of the Be Sample Code License.
*/
#ifndef _DICTIONARY_INPUT_SERVER_METHOD_H
#define _DICTIONARY_INPUT_SERVER_METHOD_H
#include <OS.h>
#include <Messenger.h>
#include <add-ons/input_server/InputServerMethod.h>
#if DEBUG
class BAlert;
#endif
class BList;
class BMessage;
class DictionaryInputLooper;
class DictionaryInputServerMethod : public BInputServerMethod
{
public:
DictionaryInputServerMethod();
virtual ~DictionaryInputServerMethod();
virtual status_t InitCheck();
virtual filter_result Filter(BMessage *message, BList *outList);
virtual status_t MethodActivated(bool active);
bool IsEnabled() const { return fEnabled; };
private:
bool fEnabled;
BMessenger fLooper;
#if DEBUG
BAlert *fDebugAlert;
#endif
};
#endif