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

jovie

  • sources
  • kde-4.12
  • kdeaccessibility
  • jovie
  • jovie
talkermgr.h
Go to the documentation of this file.
1 /***************************************************** vim:set ts=4 sw=4 sts=4:
2  Manages all the Talker (synth) plugins.
3  -------------------
4  Copyright:
5  (C) 2004-2005 by Gary Cramblitt <garycramblitt@comcast.net>
6  -------------------
7  Original author: Gary Cramblitt <garycramblitt@comcast.net>
8 
9  This program is free software; you can redistribute it and/or modify
10  it under the terms of the GNU General Public License as published by
11  the Free Software Foundation; either version 2 of the License, or
12  (at your option) any later version.
13 
14  This program is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with this program; if not, write to the Free Software
21  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22  ******************************************************************************/
23 
24 #ifndef TALKERMGR_H
25 #define TALKERMGR_H
26 
27 // Qt includes.
28 #include <QtCore/QMap>
29 #include <QtCore/QList>
30 #include <QtCore/QStringList>
31 
32 // KDE includes.
33 #include <kdemacros.h>
34 #include <kconfig.h>
35 
36 // KTTS includes.
37 #include "talkercode.h"
38 
39 class TalkerMgr: public QObject
40 {
41  Q_OBJECT
42 
43 public:
44 
48  static TalkerMgr * Instance();
49 
53  ~TalkerMgr();
54 
60  QStringList getTalkers();
61 
66  void loadTalkers(KConfig* c);
67 
80  TalkerCode* talkerToTalkerCode(const QString& talker);
81 
88  QString talkerCodeToTalkerId(const QString& talkerCode);
89 
97  QString userDefaultTalker() const;
98 
107  bool autoconfigureTalker(const QString& langCode, KConfig* config);
108 
109 private:
110 
114  explicit TalkerMgr(QObject *parent = 0);
115 
120  QStringList m_loadedTalkerIds;
121  TalkerCode::TalkerCodeList m_loadedTalkerCodes;
122 
123  static TalkerMgr * m_instance;
124 };
125 
126 #endif // TALKERMGR_H
TalkerMgr::talkerCodeToTalkerId
QString talkerCodeToTalkerId(const QString &talkerCode)
Given a Talker Code, returns the Talker ID of the talker that would speak a text job with that Talker...
Definition: talkermgr.cpp:326
TalkerMgr::autoconfigureTalker
bool autoconfigureTalker(const QString &langCode, KConfig *config)
Try to automatically configure a Talker in the specified language.
Definition: talkermgr.cpp:345
TalkerCode::TalkerCodeList
QList< TalkerCode > TalkerCodeList
Definition: talkercode.h:61
TalkerMgr::~TalkerMgr
~TalkerMgr()
Destructor.
Definition: talkermgr.cpp:56
QObject
TalkerMgr::loadTalkers
void loadTalkers(KConfig *c)
load the talkers from the given config object
Definition: talkermgr.cpp:65
talkercode.h
TalkerCode
Definition: talkercode.h:38
TalkerMgr::getTalkers
QStringList getTalkers()
Get a list of the talkers configured in Speech Dispatcher.
Definition: talkermgr.cpp:239
TalkerMgr::talkerToTalkerCode
TalkerCode * talkerToTalkerCode(const QString &talker)
Given a talker code, returns the parsed TalkerCode of the closest matching Talker.
Definition: talkermgr.cpp:313
TalkerMgr::userDefaultTalker
QString userDefaultTalker() const
Get the user's default talker.
Definition: talkermgr.cpp:340
TalkerMgr::Instance
static TalkerMgr * Instance()
singleton accessor
Definition: talkermgr.cpp:36
TalkerMgr
Definition: talkermgr.h:39
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:32:25 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

jovie

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

kdeaccessibility API Reference

Skip menu "kdeaccessibility API Reference"
  • jovie

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