2 // C++ Interface: kttsdplugin
7 // Author: Robert Vogl <voglrobe@lapislazuli>, (C) 2004
9 // Copyright: See COPYING file that comes with this distribution
20 #include <QtCore/QObject>
21 #include <QtGui/QWidget>
22 #include <Qt3Support/Q3Frame>
25 #include <kdemacros.h>
26 #include "kdeexportfix.h"
28 // App specific includes
29 #include "ui_KTTSDlibSetup.h"
36 enum {PLAY
=1, STOP
=2, PAUSE
=4, FFWD
=8, FREV
=16};
40 // forward declarations
41 class kttsdlibtalker2
;
47 class KDE_EXPORT KTTSDLib
: public QObject
51 /** Emitted when the plugin has been finished speeking.
53 void signalFinished();
56 /** Called from the talker on textFinished().
57 * \param job The number of the finished job.
59 void slotTextFinished(const uint job
);
61 /** Called from the talker on textStopped().
62 * \param job The number of the stopped job.
64 void slotTextStopped(const uint job
);
66 /** Called from the talker on textStarted().
67 * \param job The number of the stopped job.
69 void slotTextStarted(const uint job
);
72 KTTSDLib(QObject
*parent
=0, const char *name
=0, KApplication
*Appl
=0);
76 /** Reimplementations from the base class.
78 QString
getName() const;
80 QString
getDescription() const;
84 const QWidget
* getGUI(QFrame
*frame
);
86 void reloadConfiguration();
88 bool saveWasClicked() const;
90 void setText(const QString
&text
);
94 int getStatus() const;
107 void removeAllJobsFromList();
108 void slotLaunchControlcenter();
109 void slotKCMProcessExited(K3Process
*p
);
112 KApplication
*m_Appl
;
113 kttsdlibtalker2
*m_talker
;
115 typedef queue
<uint
> jobListType
;
117 Ui::KTTSDlibSetup
*m_gui
;