kttsd Library API Documentation

pluginconf.h

00001 /***************************************************** vim:set ts=4 sw=4 sts=4:
00002   pluginconf.h
00003   This file is the template for the configuration plug ins.
00004   -------------------
00005   Copyright : (C) 2002-2003 by José Pablo Ezequiel "Pupeno" Fernández
00006   -------------------
00007   Original author: José Pablo Ezequiel "Pupeno" Fernández <pupeno@kde.org>
00008   Current Maintainer: Gary Cramblitt <garycramblitt@comcast.net>
00009  ******************************************************************************/
00010 
00011 /***************************************************************************
00012  *                                                                         *
00013  *   This program is free software; you can redistribute it and/or modify  *
00014  *   it under the terms of the GNU General Public License as published by  *
00015  *   the Free Software Foundation; version 2 of the License.               *
00016  *                                                                         *
00017  ***************************************************************************/
00018 
00019 #ifndef _PLUGINCONF_H_
00020 #define _PLUGINCONF_H_
00021 
00022 // Qt includes.
00023 #include <qwidget.h>
00024 
00025 // KDE includes.
00026 #include <kconfig.h>
00027 #include <kdebug.h>
00028 
00029 // KTTS includes.
00030 #include "testplayer.h"
00031 
00209 class PlugInConf : public QWidget{
00210     Q_OBJECT
00211 
00212     public:
00216         PlugInConf( QWidget *parent = 0, const char *name = 0);
00217 
00221         virtual ~PlugInConf();
00222 
00243         virtual void load(KConfig *config, const QString &configGroup);
00244 
00259         virtual void save(KConfig *config, const QString &configGroup);
00260 
00268         virtual void defaults();
00269       
00277         virtual bool supportsMultiInstance();
00278 
00295         virtual void setDesiredLanguage(const QString &lang);
00296 
00304         virtual QString getTalkerCode();
00305 
00323         virtual QStringList getSupportedLanguages();
00324 
00328         void setPlayer(TestPlayer* player);
00329         TestPlayer* getPlayer();
00330 
00331         static QString realFilePath(const QString &filename);
00332 
00333     public slots:
00339         void configChanged(){
00340             kdDebug() << "PlugInConf::configChanged: Running"<< endl;
00341             emit changed(true);
00342         };
00343 
00344     signals:
00349         void changed(bool);
00350 
00351     protected:
00359         QString getLocation(const QString &name);
00360 
00367         QString splitLanguageCode(const QString& languageCode, QString& countryCode);
00368 
00370         QStringList m_path;
00371 
00372         TestPlayer* m_player;
00373 };
00374 
00375 #endif  //_PLUGINCONF_H_
KDE Logo
This file is part of the documentation for kttsd Library Version 3.3.90.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sun Dec 12 14:37:18 2004 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003