Tizen 2.1 base
[external/enchant.git] / src / zemberek / zemberek.h
1 /* Copyright (C) 2006 Barış Metin <baris@pardus.org.tr>
2  * Copyright (C) 2007 Serkan Kaba <serkan_kaba@yahoo.com>
3  * 
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02110-1301, USA.
18  *
19  * In addition, as a special exception, Dom Lachowicz
20  * gives permission to link the code of this program with
21  * non-LGPL Spelling Provider libraries (eg: a MSFT Office
22  * spell checker backend) and distribute linked combinations including
23  * the two.  You must obey the GNU Lesser General Public License in all
24  * respects for all of the code used other than said providers.  If you modify
25  * this file, you may extend this exception to your version of the
26  * file, but you are not obligated to do so.  If you do not wish to
27  * do so, delete this exception statement from your version.
28  */
29
30 #ifndef ZEMBEREK_H
31 #define ZEMBEREK_H
32
33 #include <dbus/dbus-glib.h>
34 #include <glib.h>
35
36 class Zemberek
37 {
38 public:
39     Zemberek();
40     ~Zemberek();
41     
42     int checkWord(const char* word) const;
43     char** suggestWord(const char* word, size_t *out_n_suggs);
44
45 private:
46     DBusGConnection *connection;
47     DBusGProxy *proxy;
48 };
49
50 bool zemberek_service_is_running ();
51 #endif