~neon/pykde4/master

« back to all changes in this revision

Viewing changes to sip/kdecore/backgroundchecker.sip

  • Committer: Simon Edwards
  • Date: 2007-09-02 19:43:19 UTC
  • Revision ID: git-v1:6b8df0c7009f6b218f54589a9bc313cd8c4f82b9

Initial drop of PyKDE4 - Python bindings for the KDE API. See the README file
for more info about the current state of PyKDE4.


svn path=/trunk/KDE/kdebindings/python/pykde4/; revision=707731

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//
 
2
//     Copyright 2007 Jim Bublitz <jbublitz@nwinternet.com>
 
3
//     Earlier copyrights 1998 - 2006 Jim Bublitz also apply
 
4
 
 
5
 
 
6
//                 Generated by preSip
 
7
//            PyKDE4 module kdecore  version KDE 3.92.0
 
8
 
 
9
 
 
10
// This file is part of PyKDE4.
 
11
 
 
12
// PyKDE4 is free software; you can redistribute it and/or modify
 
13
// it under the terms of the GNU Lesser General Public License as
 
14
// published by the Free Software Foundation; either version 2.1 of
 
15
// the License, or (at your option) any later version.
 
16
 
 
17
// PyKDE4 is distributed in the hope that it will be useful,
 
18
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 
19
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
20
// GNU General Public License for more details.
 
21
 
 
22
// You should have received a copy of the GNU General Public License
 
23
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
24
 
 
25
namespace Sonnet
 
26
{
 
27
 
 
28
class BackgroundChecker : QObject
 
29
{
 
30
%TypeHeaderCode
 
31
#include <backgroundchecker.h>
 
32
%End
 
33
 
 
34
 
 
35
public:
 
36
                         BackgroundChecker (QObject* /TransferThis/ = 0);
 
37
                         BackgroundChecker (const Sonnet::Speller&, QObject* /TransferThis/ = 0);
 
38
    void                 setText (const QString&);
 
39
    QString              text () const;
 
40
    QString              currentContext () const;
 
41
    Sonnet::Speller      speller () const;
 
42
    void                 setSpeller (const Sonnet::Speller&);
 
43
    void                 changeLanguage (const QString&);
 
44
    bool                 checkWord (const QString&);
 
45
    QStringList          suggest (const QString&) const;
 
46
    bool                 addWordToPersonal (const QString&);
 
47
 
 
48
public slots:
 
49
    virtual void         start ();
 
50
    virtual void         stop ();
 
51
    void                 replace (int, const QString&, const QString&);
 
52
    virtual void         continueChecking ();
 
53
 
 
54
signals:
 
55
    void                 misspelling (const QString&, int);
 
56
    void                 done ();
 
57
 
 
58
protected:
 
59
    virtual QString      fetchMoreText ();
 
60
    virtual void         finishedCurrentFeed ();
 
61
 
 
62
protected slots:
 
63
    void                 slotEngineDone ();
 
64
 
 
65
};  // class BackgroundChecker
 
66
 
 
67
};  // namespace Sonnet
 
68