• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdespell2
 

tdespell2

threadevents.h

00001 /*
00002  * threadevents.h
00003  *
00004  * Copyright (C)  2004  Zack Rusin <zack@kde.org>
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00019  * 02110-1301  USA
00020  */
00021 #ifndef TDESPELL_THREADEVENTS_H
00022 #define TDESPELL_THREADEVENTS_H
00023 
00024 #include <tqevent.h>
00025 #include <tqstring.h>
00026 
00027 namespace KSpell2
00028 {
00029     enum {
00030         FoundMisspelling = 2003,
00031         FinishedChecking  = 2004
00032     };
00033     class MisspellingEvent : public TQCustomEvent
00034     {
00035     public:
00036         MisspellingEvent( const TQString& word,
00037                          int pos )
00038             : TQCustomEvent( FoundMisspelling ), m_word( word ),
00039               m_position( pos )
00040             {}
00041 
00042         TQString word() const {
00043             return m_word;
00044         }
00045         int     position() const {
00046             return m_position;
00047         }
00048     private:
00049         TQString m_word;
00050         int     m_position;
00051     };
00052     class FinishedCheckingEvent : public TQCustomEvent
00053     {
00054     public:
00055         FinishedCheckingEvent()
00056             : TQCustomEvent( FinishedChecking )
00057             {}
00058     };
00059 
00060 }
00061 
00062 #endif

tdespell2

Skip menu "tdespell2"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

tdespell2

Skip menu "tdespell2"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdespell2 by doxygen 1.6.3
This website is maintained by Timothy Pearson.