summaryrefslogtreecommitdiffstats
path: root/ksirc/usercontrolmenu.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitbcb704366cb5e333a626c18c308c7e0448a8e69f (patch)
treef0d6ab7d78ecdd9207cf46536376b44b91a1ca71 /ksirc/usercontrolmenu.h
downloadtdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.tar.gz
tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksirc/usercontrolmenu.h')
-rw-r--r--ksirc/usercontrolmenu.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/ksirc/usercontrolmenu.h b/ksirc/usercontrolmenu.h
new file mode 100644
index 00000000..1f7a983a
--- /dev/null
+++ b/ksirc/usercontrolmenu.h
@@ -0,0 +1,52 @@
+#ifndef USERCONTROLLERMENU_H
+#define USERCONTROLLERMENU_H
+
+#include <qstring.h>
+#include <qptrlist.h>
+
+class UserControlMenu {
+ public:
+ /**
+ Basic constructor, everything defaults to a Seperator. All data
+ is public so there is no problems changing it in the future.
+ Data is copied internally and deleted when finished.
+ */
+ UserControlMenu(const QString& _title = 0,
+ const QString& _action = 0,
+ int _accel = 0,
+ int _type = 0,
+ bool _op_only = FALSE);
+
+ ~UserControlMenu();
+
+ static QPtrList<UserControlMenu> UserMenu;
+
+ static QPtrList<UserControlMenu> *parseKConfig();
+ static void writeKConfig();
+
+ /**
+ * title in the popup menu
+ */
+ QString title;
+ /**
+ * Action to preform, must be of the format "blah lbah %s blah"
+ * where %s will be expanded into the selected nick.
+ */
+ QString action;
+
+ /**
+ * Accelerator key, currently does nothing.
+ */
+ int accel;
+ /**
+ * is this function only available to ops?
+ */
+ bool op_only;
+ /**
+ * What type of menu item is this? a Seperator of Text?
+ */
+ enum itype { Seperator, Text } type;
+};
+
+
+#endif