From dc6b8e72fed2586239e3514819238c520636c9d9 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:54:04 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- quanta/utility/qpevents.h | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'quanta/utility/qpevents.h') diff --git a/quanta/utility/qpevents.h b/quanta/utility/qpevents.h index 83f6d37b..373ae089 100644 --- a/quanta/utility/qpevents.h +++ b/quanta/utility/qpevents.h @@ -17,7 +17,7 @@ #ifndef QPEVENTS_H #define QPEVENTS_H -#include +#include /** @author Andras Mantia @@ -36,10 +36,10 @@ struct EventAction { this is the name of the script, in case of internal events it can be one of the following: "email" */ - QString action; + TQString action; /** The arguments for the event action. It is different for each action. */ - QStringList arguments; + TQStringList arguments; }; /** The configured events. The key is the event name, the data is the event description. @@ -48,32 +48,32 @@ before a file is saved. Possible key names are: before_save, after_save, after_o after_project_open, after_project_save, before_upload, after_upload, after_project_add, after_project_remove, after_commit */ -typedef QMap > EventActions; +typedef TQMap > EventActions; class QPEvents : public QObject { Q_OBJECT public: - static QPEvents* const ref(QObject *parent = 0L) + static QPEvents* const ref(TQObject *parent = 0L) { static QPEvents *m_ref; if (!m_ref) m_ref = new QPEvents(parent); return m_ref; } ~QPEvents(); - QString fullEventName(const QString &name); - QString fullActionName(const QString &name); - QString eventName(const QString &fullName); - QString actionName(const QString &fullName); - QStringList eventNames(); - QStringList actionNames(); + TQString fullEventName(const TQString &name); + TQString fullActionName(const TQString &name); + TQString eventName(const TQString &fullName); + TQString actionName(const TQString &fullName); + TQStringList eventNames(); + TQStringList actionNames(); public slots: /** Called when an event has happened */ - void slotEventHappened(const QString& name, const QString& argument1, const QString& argument2); + void slotEventHappened(const TQString& name, const TQString& argument1, const TQString& argument2); private: - QPEvents(QObject *parent = 0, const char *name = 0); + QPEvents(TQObject *parent = 0, const char *name = 0); /** Calls the action associated with an event. Returns true if the call succeeded, false otherwise. The call might fail if: - the action type is unknown @@ -82,9 +82,9 @@ private: */ bool handleEvent(const EventAction& ev); - QMap m_eventNames; - QMap m_actionNames; - QString m_eventName; + TQMap m_eventNames; + TQMap m_actionNames; + TQString m_eventName; }; #endif -- cgit v1.2.1