summaryrefslogtreecommitdiffstats
path: root/tdelirc/tdelirc/iractions.h
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2013-05-17 12:45:40 -0500
committerDarrell Anderson <humanreadable@yahoo.com>2013-05-17 12:45:40 -0500
commit359294c33620c8328d61f67635046d7cc060530c (patch)
treef2ac08fdad8860f7bc1ac76203e31013a799fda7 /tdelirc/tdelirc/iractions.h
parent7be7990fc5770d2cbcd937772e8239167b5900c6 (diff)
downloadtdeutils-359294c33620c8328d61f67635046d7cc060530c.tar.gz
tdeutils-359294c33620c8328d61f67635046d7cc060530c.zip
Rename kdessh -> tdessh and kdelirc -> tdelirc.
Diffstat (limited to 'tdelirc/tdelirc/iractions.h')
-rw-r--r--tdelirc/tdelirc/iractions.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/tdelirc/tdelirc/iractions.h b/tdelirc/tdelirc/iractions.h
new file mode 100644
index 0000000..4c44c46
--- /dev/null
+++ b/tdelirc/tdelirc/iractions.h
@@ -0,0 +1,52 @@
+//
+//
+// C++ Interface: $MODULE$
+//
+// Description:
+//
+//
+// Author: Gav Wood <gav@kde.org>, (C) 2003
+//
+// Copyright: See COPYING file that comes with this distribution
+//
+//
+#ifndef IRACTIONS_H
+#define IRACTIONS_H
+
+#include <tqvaluelist.h>
+#include <tqpair.h>
+#include <tqstring.h>
+#include <tqmap.h>
+
+#include "iraction.h"
+#include "mode.h"
+
+/**
+@author Gav Wood
+*/
+
+class TDEConfig;
+
+typedef TQValueListIterator<IRAction> IRAIt;
+typedef TQValueList<IRAIt> IRAItList;
+
+class IRActions: protected TQValueList<IRAction>
+{
+private:
+ void purgeAllBindings(TDEConfig &theConfig);
+
+public:
+ IRAIt addAction(const IRAction &theAction);
+ IRAItList findByButton(const TQString &remote, const TQString &button);
+ IRAItList findByMode(const Mode &mode);
+ IRAItList findByModeButton(const Mode &mode, const TQString &button);
+
+ void erase(const IRAIt &action) { TQValueList<IRAction>::erase(action); }
+ void renameMode(const Mode &mode, const TQString &to);
+
+ void loadFromConfig(TDEConfig &theConfig);
+ void saveToConfig(TDEConfig &theConfig);
+};
+
+
+#endif