~ubuntu-branches/ubuntu/wily/sonnet/wily

« back to all changes in this revision

Viewing changes to src/plugins/nsspellchecker/nsspellcheckerclient.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell, Scarlett Clark, Jonathan Riddell
  • Date: 2015-10-07 14:00:43 UTC
  • mfrom: (1.1.14)
  • Revision ID: package-import@ubuntu.com-20151007140043-xwyl21j9rxyqn1pa
Tags: 5.15.0-0ubuntu1
[ Scarlett Clark ]
* Vivid backport

[ Jonathan Riddell ]
* new upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * nsspellcheckerclient.h
 
3
 *
 
4
 * Copyright (C)  2015  Nick Shaforostoff <shaforostoff@gmail.com>
 
5
 *
 
6
 * This library is free software; you can redistribute it and/or
 
7
 * modify it under the terms of the GNU Lesser General Public
 
8
 * License as published by the Free Software Foundation; either
 
9
 * version 2.1 of the License, or (at your option) any later version.
 
10
 *
 
11
 * This library is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
14
 * Lesser General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU Lesser General Public
 
17
 * License along with this library; if not, write to the Free Software
 
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 
19
 * 02110-1301  USA
 
20
 */
 
21
#ifndef KSPELL_NSSPELLCLIENT_H
 
22
#define KSPELL_NSSPELLCLIENT_H
 
23
 
 
24
#include "client_p.h"
 
25
 
 
26
namespace Sonnet
 
27
{
 
28
class SpellerPlugin;
 
29
}
 
30
using Sonnet::SpellerPlugin;
 
31
 
 
32
class NSSpellCheckerClient : public Sonnet::Client
 
33
{
 
34
    Q_OBJECT
 
35
    Q_INTERFACES(Sonnet::Client)
 
36
    Q_PLUGIN_METADATA(IID "org.kde.Sonnet.NSSpellClient")
 
37
public:
 
38
    explicit NSSpellCheckerClient(QObject *parent = 0);
 
39
    ~NSSpellCheckerClient();
 
40
 
 
41
    int reliability() const
 
42
    {
 
43
        return 30;
 
44
    }
 
45
 
 
46
    SpellerPlugin *createSpeller(const QString &language);
 
47
    QStringList languages() const;
 
48
    QString name() const
 
49
    {
 
50
        return QStringLiteral("NSSpellChecker");
 
51
    }
 
52
};
 
53
 
 
54
#endif