~pkgcrosswire/sword/nroff-manpages

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/**
 * Title:
 * Description:
 * Copyright:    Copyright (c) 2001 CrossWire Bible Society under the terms of the GNU GPL
 * Company:
 * @author Troy A. Griffitts
 * @version 1.0
 */

#ifndef SWINPUTMETHOD_H
#define SWINPUTMETHOD_H

#include <defs.h>
SWORD_NAMESPACE_START

class SWDLLEXPORT SWInputMethod {

private:
    int state;

protected:
    virtual void setState(int state);

public:
    SWInputMethod();
    virtual ~SWInputMethod() {}

    virtual int *translate(char in) = 0;
    virtual int getState();
    virtual void clearState();
};

SWORD_NAMESPACE_END
#endif