root/src/add-ons/input_server/methods/t9/DictionaryInputServerMethod.h
/*
        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
//#include <File.h>
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;
        //BLocker fLocker;
        BMessenger fLooper;
#if DEBUG
        //BFile fDebugFile;
        BAlert *fDebugAlert;
#endif
};

#endif /* _DICTIONARY_INPUT_SERVER_METHOD_H */