~ubuntu-branches/ubuntu/utopic/psi/utopic

« back to all changes in this revision

Viewing changes to src/libpsi/tools/spellchecker/spellchecker.h

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2010-02-19 09:37:12 UTC
  • mfrom: (6.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100219093712-e225xvm1wjcf1cgi
Tags: 0.14-2
* comment out only function which uses va_list to work around build
  problems on armel
* Set Standards-Version to 3.8.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * spellchecker.h
 
3
 *
 
4
 * Copyright (C) 2006  Remko Troncon
 
5
 *
 
6
 * This program is free software; you can redistribute it and/or
 
7
 * modify it under the terms of the GNU General Public License
 
8
 * as published by the Free Software Foundation; either version 2
 
9
 * of the License, or (at your option) any later version.
 
10
 *
 
11
 * You can also redistribute and/or modify this program under the
 
12
 * terms of the Psi License, specified in the accompanied COPYING
 
13
 * file, as published by the Psi Project; either dated January 1st,
 
14
 * 2005, or (at your option) any later version.
 
15
 *
 
16
 * This program is distributed in the hope that it will be useful,
 
17
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
18
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
19
 * GNU General Public License for more details.
 
20
 *
 
21
 * You should have received a copy of the GNU General Public License
 
22
 * along with this library; if not, write to the Free Software
 
23
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
24
 *
 
25
 */
 
26
 
 
27
#ifndef SPELLCHECKER_H
 
28
#define SPELLCHECKER_H
 
29
 
 
30
#include <QObject>
 
31
#include <QList>
 
32
#include <QString>
 
33
 
 
34
class SpellChecker : public QObject
 
35
{
 
36
public:
 
37
        static SpellChecker* instance();
 
38
        virtual bool available() const;
 
39
        virtual bool writable() const;
 
40
        virtual QList<QString> suggestions(const QString&);
 
41
        virtual bool isCorrect(const QString&);
 
42
        virtual bool add(const QString&);
 
43
 
 
44
protected:
 
45
        SpellChecker();
 
46
        virtual ~SpellChecker();
 
47
 
 
48
private:
 
49
        static SpellChecker* instance_;
 
50
};
 
51
 
 
52
#endif