diff options
Diffstat (limited to 'kttsd/libkttsd/notify.cpp')
-rw-r--r-- | kttsd/libkttsd/notify.cpp | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/kttsd/libkttsd/notify.cpp b/kttsd/libkttsd/notify.cpp index fd28587..c633779 100644 --- a/kttsd/libkttsd/notify.cpp +++ b/kttsd/libkttsd/notify.cpp @@ -18,8 +18,8 @@ // Qt includes. // Qt includes. -#include <qstring.h> -#include <qstringlist.h> +#include <tqstring.h> +#include <tqstringlist.h> // KDE includes. #include <kconfig.h> @@ -29,23 +29,23 @@ // KTTS includes. #include "notify.h" -static QStringList* s_actionNames = 0; -static KStaticDeleter<QStringList> s_actionNames_sd; +static TQStringList* s_actionNames = 0; +static KStaticDeleter<TQStringList> s_actionNames_sd; -static QStringList* s_actionDisplayNames = 0; -static KStaticDeleter<QStringList> s_actionDisplayNames_sd; +static TQStringList* s_actionDisplayNames = 0; +static KStaticDeleter<TQStringList> s_actionDisplayNames_sd; static void notifyaction_init() { if ( !s_actionNames ) { - s_actionNames_sd.setObject(s_actionNames, new QStringList); + s_actionNames_sd.setObject(s_actionNames, new TQStringList); s_actionNames->append( "SpeakEventName" ); s_actionNames->append( "SpeakMsg" ); s_actionNames->append( "DoNotSpeak" ); s_actionNames->append( "SpeakCustom" ); - s_actionDisplayNames_sd.setObject(s_actionDisplayNames, new QStringList); + s_actionDisplayNames_sd.setObject(s_actionDisplayNames, new TQStringList); s_actionDisplayNames->append( i18n("Speak event name") ); s_actionDisplayNames->append( i18n("Speak the notification message") ); s_actionDisplayNames->append( i18n("Do not speak the notification") ); @@ -59,25 +59,25 @@ static void notifyaction_init() return s_actionNames->count(); } -/*static*/ QString NotifyAction::actionName( const int action ) +/*static*/ TQString NotifyAction::actionName( const int action ) { notifyaction_init(); return (*s_actionNames)[ action ]; } -/*static*/ int NotifyAction::action( const QString& actionName ) +/*static*/ int NotifyAction::action( const TQString& actionName ) { notifyaction_init(); return s_actionNames->findIndex( actionName ); } -/*static*/ QString NotifyAction::actionDisplayName( const int action ) +/*static*/ TQString NotifyAction::actionDisplayName( const int action ) { notifyaction_init(); return (*s_actionDisplayNames)[ action ]; } -/*static*/ QString NotifyAction::actionDisplayName( const QString& actionName ) +/*static*/ TQString NotifyAction::actionDisplayName( const TQString& actionName ) { notifyaction_init(); return (*s_actionDisplayNames)[ action( actionName ) ]; @@ -85,24 +85,24 @@ static void notifyaction_init() // -------------------------------------------------------------------- -static QStringList* s_presentNames = 0; -static KStaticDeleter<QStringList> s_presentNames_sd; +static TQStringList* s_presentNames = 0; +static KStaticDeleter<TQStringList> s_presentNames_sd; -static QStringList* s_presentDisplayNames = 0; -static KStaticDeleter<QStringList> s_presentDisplayNames_sd; +static TQStringList* s_presentDisplayNames = 0; +static KStaticDeleter<TQStringList> s_presentDisplayNames_sd; static void notifypresent_init() { if ( !s_presentNames ) { - s_presentNames_sd.setObject( s_presentNames, new QStringList ); + s_presentNames_sd.setObject( s_presentNames, new TQStringList ); s_presentNames->append( "None" ); s_presentNames->append( "Dialog" ); s_presentNames->append( "Passive" ); s_presentNames->append( "DialogAndPassive" ); s_presentNames->append( "All" ); - s_presentDisplayNames_sd.setObject( s_presentDisplayNames, new QStringList ); + s_presentDisplayNames_sd.setObject( s_presentDisplayNames, new TQStringList ); s_presentDisplayNames->append( i18n("none") ); s_presentDisplayNames->append( i18n("notification dialogs") ); s_presentDisplayNames->append( i18n("passive popups") ); @@ -117,25 +117,25 @@ static void notifypresent_init() return s_presentNames->count(); } -/*static*/ QString NotifyPresent::presentName( const int present ) +/*static*/ TQString NotifyPresent::presentName( const int present ) { notifypresent_init(); return (*s_presentNames)[ present ]; } -/*static*/ int NotifyPresent::present( const QString& presentName ) +/*static*/ int NotifyPresent::present( const TQString& presentName ) { notifypresent_init(); return s_presentNames->findIndex( presentName ); } -/*static*/ QString NotifyPresent::presentDisplayName( const int present ) +/*static*/ TQString NotifyPresent::presentDisplayName( const int present ) { notifypresent_init(); return (*s_presentDisplayNames)[ present ]; } -/*static*/ QString NotifyPresent::presentDisplayName( const QString& presentName ) +/*static*/ TQString NotifyPresent::presentDisplayName( const TQString& presentName ) { notifypresent_init(); return (*s_presentDisplayNames)[ present( presentName ) ]; @@ -146,12 +146,12 @@ static void notifypresent_init() /** * Retrieves the displayable name for an event source. */ -/*static*/ QString NotifyEvent::getEventSrcName(const QString& eventSrc, QString& iconName) +/*static*/ TQString NotifyEvent::getEventSrcName(const TQString& eventSrc, TQString& iconName) { - QString configFilename = eventSrc + QString::fromLatin1( "/eventsrc" ); + TQString configFilename = eventSrc + TQString::fromLatin1( "/eventsrc" ); KConfig* config = new KConfig( configFilename, true, false, "data" ); - config->setGroup( QString::fromLatin1( "!Global!" ) ); - QString appDesc = config->readEntry( "Comment", i18n("No description available") ); + config->setGroup( TQString::fromLatin1( "!Global!" ) ); + TQString appDesc = config->readEntry( "Comment", i18n("No description available") ); iconName = config->readEntry( "IconName" ); delete config; return appDesc; @@ -160,16 +160,16 @@ static void notifypresent_init() /** * Retrieves the displayable name for an event from an event source. */ -/*static*/ QString NotifyEvent::getEventName(const QString& eventSrc, const QString& event) +/*static*/ TQString NotifyEvent::getEventName(const TQString& eventSrc, const TQString& event) { - QString eventName; - QString configFilename = eventSrc + QString::fromLatin1( "/eventsrc" ); + TQString eventName; + TQString configFilename = eventSrc + TQString::fromLatin1( "/eventsrc" ); KConfig* config = new KConfig( configFilename, true, false, "data" ); if ( config->hasGroup( event ) ) { config->setGroup( event ); - eventName = config->readEntry( QString::fromLatin1( "Comment" ), - config->readEntry( QString::fromLatin1( "Name" ))); + eventName = config->readEntry( TQString::fromLatin1( "Comment" ), + config->readEntry( TQString::fromLatin1( "Name" ))); } delete config; return eventName; |