summaryrefslogtreecommitdiffstats
path: root/quanta/utility/qpevents.h
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/utility/qpevents.h')
-rw-r--r--quanta/utility/qpevents.h32
1 files changed, 16 insertions, 16 deletions
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 <qobject.h>
+#include <tqobject.h>
/**
@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<QString, QValueList<EventAction> > EventActions;
+typedef TQMap<TQString, TQValueList<EventAction> > 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<QString, QString> m_eventNames;
- QMap<QString, QString> m_actionNames;
- QString m_eventName;
+ TQMap<TQString, TQString> m_eventNames;
+ TQMap<TQString, TQString> m_actionNames;
+ TQString m_eventName;
};
#endif