1/* 2 Copyright 2005, Francois Revol. All Rights Reserved. 3 This file may be used under the terms of the Be Sample Code License. 4*/ 5#ifndef _DICTIONARY_INPUT_SERVER_METHOD_H 6#define _DICTIONARY_INPUT_SERVER_METHOD_H 7 8#include <OS.h> 9#include <Messenger.h> 10#include <add-ons/input_server/InputServerMethod.h> 11 12#if DEBUG 13//#include <File.h> 14class BAlert; 15#endif 16class BList; 17class BMessage; 18class DictionaryInputLooper; 19 20 21class DictionaryInputServerMethod : public BInputServerMethod 22{ 23public: 24 DictionaryInputServerMethod(); 25 virtual ~DictionaryInputServerMethod(); 26 virtual status_t InitCheck(); 27 virtual filter_result Filter(BMessage *message, BList *outList); 28 virtual status_t MethodActivated(bool active); 29 30 bool IsEnabled() const { return fEnabled; }; 31 32private: 33 bool fEnabled; 34 //BLocker fLocker; 35 BMessenger fLooper; 36#if DEBUG 37 //BFile fDebugFile; 38 BAlert *fDebugAlert; 39#endif 40}; 41 42#endif /* _DICTIONARY_INPUT_SERVER_METHOD_H */ 43