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