summaryrefslogtreecommitdiffstats
path: root/kdelirc/kdelirc/remoteserver.h
diff options
context:
space:
mode:
Diffstat (limited to 'kdelirc/kdelirc/remoteserver.h')
-rw-r--r--kdelirc/kdelirc/remoteserver.h62
1 files changed, 31 insertions, 31 deletions
diff --git a/kdelirc/kdelirc/remoteserver.h b/kdelirc/kdelirc/remoteserver.h
index 3700acd..e74b02e 100644
--- a/kdelirc/kdelirc/remoteserver.h
+++ b/kdelirc/kdelirc/remoteserver.h
@@ -13,9 +13,9 @@
#ifndef REMOTESERVER_H
#define REMOTESERVER_H
-#include <qstring.h>
-#include <qxml.h>
-#include <qdict.h>
+#include <tqstring.h>
+#include <tqxml.h>
+#include <tqdict.h>
/**
@author Gav Wood
@@ -24,45 +24,45 @@
class RemoteButton
{
- QString theName, theId, theClass, theParameter;
+ TQString theName, theId, theClass, theParameter;
friend class Remote;
public:
- void setName(const QString &a) { theName = a; }
- const QString &name(void) const { return theName; }
- void setClass(const QString &a) { theClass = a; }
- const QString &getClass(void) const { return theClass; }
- void setParameter(const QString &a) { theParameter = a; }
- const QString &parameter(void) const { return theParameter; }
- void setId(const QString &a) { theId = a; }
- const QString &id(void) const { return theId; }
+ void setName(const TQString &a) { theName = a; }
+ const TQString &name(void) const { return theName; }
+ void setClass(const TQString &a) { theClass = a; }
+ const TQString &getClass(void) const { return theClass; }
+ void setParameter(const TQString &a) { theParameter = a; }
+ const TQString &parameter(void) const { return theParameter; }
+ void setId(const TQString &a) { theId = a; }
+ const TQString &id(void) const { return theId; }
};
class Remote : public QXmlDefaultHandler
{
- QString theName, theId, theAuthor;
- QDict<RemoteButton> theButtons;
+ TQString theName, theId, theAuthor;
+ TQDict<RemoteButton> theButtons;
- QString charBuffer;
+ TQString charBuffer;
RemoteButton *curRB;
friend class RemoteServer;
public:
- bool characters(const QString &data);
- bool startElement(const QString &, const QString &, const QString &name, const QXmlAttributes &attributes);
- bool endElement(const QString &, const QString &, const QString &name);
+ bool characters(const TQString &data);
+ bool startElement(const TQString &, const TQString &, const TQString &name, const TQXmlAttributes &attributes);
+ bool endElement(const TQString &, const TQString &, const TQString &name);
- void setName(const QString &a) { theName = a; }
- const QString &name(void) const { return theName; }
- void setId(const QString &a) { theId = a; }
- const QString &id(void) const { return theId; }
- void setAuthor(const QString &a) { theAuthor = a; }
- const QString &author(void) const { return theAuthor; }
- const QDict<RemoteButton> &buttons() const { return theButtons; }
+ void setName(const TQString &a) { theName = a; }
+ const TQString &name(void) const { return theName; }
+ void setId(const TQString &a) { theId = a; }
+ const TQString &id(void) const { return theId; }
+ void setAuthor(const TQString &a) { theAuthor = a; }
+ const TQString &author(void) const { return theAuthor; }
+ const TQDict<RemoteButton> &buttons() const { return theButtons; }
- void loadFromFile(const QString &fileName);
+ void loadFromFile(const TQString &fileName);
- const QString &getButtonName(const QString &id) const { if(theButtons[id]) return theButtons[id]->name(); return id; }
+ const TQString &getButtonName(const TQString &id) const { if(theButtons[id]) return theButtons[id]->name(); return id; }
Remote();
~Remote();
@@ -72,15 +72,15 @@ class RemoteServer
{
static RemoteServer *theInstance;
void loadRemotes();
- QDict<Remote> theRemotes;
+ TQDict<Remote> theRemotes;
public:
static RemoteServer *remoteServer() { if(!theInstance) theInstance = new RemoteServer(); return theInstance; }
- const QDict<Remote> &remotes() const { return theRemotes; }
+ const TQDict<Remote> &remotes() const { return theRemotes; }
- const QString &getRemoteName(const QString &id) const { if(theRemotes[id]) return theRemotes[id]->name(); return id; }
- const QString &getButtonName(const QString &remote, const QString &button) const { if(theRemotes[remote]) return theRemotes[remote]->getButtonName(button); return button; }
+ const TQString &getRemoteName(const TQString &id) const { if(theRemotes[id]) return theRemotes[id]->name(); return id; }
+ const TQString &getButtonName(const TQString &remote, const TQString &button) const { if(theRemotes[remote]) return theRemotes[remote]->getButtonName(button); return button; }
RemoteServer();
~RemoteServer();