• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

akregator

  • sources
  • kde-4.14
  • kdepim
  • akregator
  • src
speechclient.h
Go to the documentation of this file.
1 /*
2  This file is part of Akregator.
3 
4  Copyright (C) 2005 Frank Osterfeld <osterfeld@kde.org>
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10 
11  This program 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
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program; if not, write to the Free Software
18  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 
20  As a special exception, permission is given to link this program
21  with any edition of Qt, and distribute the resulting executable,
22  without including the source code for Qt in the source distribution.
23 */
24 
25 #ifndef AKREGATOR_SPEECHCLIENT_H
26 #define AKREGATOR_SPEECHCLIENT_H
27 
28 #include "kspeechinterface.h"
29 #include <QObject>
30 
31 class QString;
32 template <class T> class QList;
33 
34 namespace Akregator
35 {
36 
37 class Article;
38 
39 class SpeechClient : public QObject
40 {
41 
42  Q_OBJECT
43 
44  public:
45 
46  static SpeechClient* self();
47  bool isTextToSpeechInstalled() const;
48  ~SpeechClient();
49 
50  public slots:
51 
52  void slotSpeak(const QString& text, const QString& language);
53  void slotSpeak(const Akregator::Article& article);
54  void slotSpeak(const QList<Akregator::Article>& articles);
55  void slotAbortJobs();
56  void textRemoved(const QString &appId, int jobNum, int state);
57  private slots:
58  void slotServiceUnregistered( const QString & );
59  void slotServiceOwnerChanged( const QString &, const QString &, const QString & );
60  signals:
61 
63  void signalJobsStarted();
64 
66  void signalJobsDone();
67 
68  void signalActivated(bool);
69 
70  protected:
71 
72  SpeechClient();
73  void setupSpeechSystem();
74  void removeSpeech();
75  private:
76  org::kde::KSpeech *m_kspeech;
77  class SpeechClientPrivate;
78  SpeechClientPrivate* d;
79 
80  static SpeechClient* m_self;
81 };
82 
83 } // namespace Akregator
84 
85 #endif // AKREGATOR_SPEECHCLIENT_H
Akregator::SpeechClient::signalActivated
void signalActivated(bool)
Akregator::SpeechClient::removeSpeech
void removeSpeech()
Definition: speechclient.cpp:217
Akregator::SpeechClient::signalJobsDone
void signalJobsDone()
emitted when all jobs were finished or aborted and no further jobs are queued
Akregator::SpeechClient::SpeechClient
SpeechClient()
Definition: speechclient.cpp:62
Akregator::SpeechClient::setupSpeechSystem
void setupSpeechSystem()
Definition: speechclient.cpp:156
Akregator::SpeechClient::~SpeechClient
~SpeechClient()
Definition: speechclient.cpp:68
QObject
Akregator::SpeechClient::slotAbortJobs
void slotAbortJobs()
Definition: speechclient.cpp:122
QString
QList
Definition: article.h:41
Akregator::SpeechClient
Definition: speechclient.h:39
Akregator::SpeechClient::isTextToSpeechInstalled
bool isTextToSpeechInstalled() const
Definition: speechclient.cpp:151
Akregator::Article
A proxy class for Syndication::ItemPtr with some additional methods to assist sorting.
Definition: article.h:63
Akregator::SpeechClient::textRemoved
void textRemoved(const QString &appId, int jobNum, int state)
Definition: speechclient.cpp:137
Akregator::SpeechClient::signalJobsStarted
void signalJobsStarted()
emitted when the job queue was empty before and the first job was just queued
Akregator::SpeechClient::slotSpeak
void slotSpeak(const QString &text, const QString &language)
Definition: speechclient.cpp:74
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akregator

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

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal