summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/ui/kopetestdaction.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 /kopete/libkopete/ui/kopetestdaction.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 'kopete/libkopete/ui/kopetestdaction.h')
-rw-r--r--kopete/libkopete/ui/kopetestdaction.h119
1 files changed, 119 insertions, 0 deletions
diff --git a/kopete/libkopete/ui/kopetestdaction.h b/kopete/libkopete/ui/kopetestdaction.h
new file mode 100644
index 00000000..8f06d296
--- /dev/null
+++ b/kopete/libkopete/ui/kopetestdaction.h
@@ -0,0 +1,119 @@
+/*
+ kopetestdaction.h - Kopete Standard Actionds
+
+ Copyright (c) 2001-2002 by Ryan Cumming <bodnar42@phalynx.dhs.org>
+ Copyright (c) 2002-2003 by Martijn Klingens <klingens@kde.org>
+
+ Kopete (c) 2002-2003 by the Kopete developers <kopete-devel@kde.org>
+
+ *************************************************************************
+ * *
+ * This library is free software; you can redistribute it and/or *
+ * modify it under the terms of the GNU Lesser General Public *
+ * License as published by the Free Software Foundation; either *
+ * version 2 of the License, or (at your option) any later version. *
+ * *
+ *************************************************************************
+*/
+
+#ifndef KOPETESTDACTION_H
+#define KOPETESTDACTION_H
+
+#undef KDE_NO_COMPAT
+#include <kaction.h>
+#include <qobject.h>
+
+#include "kopete_export.h"
+
+/**
+ * @author Ryan Cumming <bodnar42@phalynx.dhs.org>
+ */
+class KOPETE_EXPORT KopeteStdAction
+{
+public:
+ /**
+ * Standard action to start a chat
+ */
+ static KAction *chat( const QObject *recvr, const char *slot,
+ QObject* parent, const char *name = 0 );
+ /**
+ * Standard action to send a single message
+ */
+ static KAction *sendMessage(const QObject *recvr, const char *slot,
+ QObject* parent, const char *name = 0);
+ /**
+ * Standard action to open a user info dialog
+ */
+ static KAction *contactInfo(const QObject *recvr, const char *slot,
+ QObject* parent, const char *name = 0);
+ /**
+ * Standard action to open a history dialog or something similar
+ */
+ static KAction *viewHistory(const QObject *recvr, const char *slot,
+ QObject* parent, const char *name = 0);
+ /**
+ * Standard action to initiate sending a file to a contact
+ */
+ static KAction *sendFile(const QObject *recvr, const char *slot,
+ QObject* parent, const char *name = 0);
+ /**
+ * Standard action to change a contacts @ref Kopete::MetaContact
+ */
+ static KAction *changeMetaContact(const QObject *recvr, const char *slot,
+ QObject* parent, const char *name = 0);
+ /**
+ * Standard action to add a group
+ */
+ static KAction *addGroup(const QObject *recvr, const char *slot,
+ QObject* parent, const char *name = 0);
+ /**
+ * Standard action to delete a contact
+ */
+ static KAction *deleteContact(const QObject *recvr, const char *slot,
+ QObject* parent, const char *name = 0);
+ /**
+ * Standard action to change a contact alias/nickname in your contactlist
+ */
+ static KAction *changeAlias(const QObject *recvr, const char *slot,
+ QObject* parent, const char *name = 0);
+ /**
+ * Standard action to block a contact
+ */
+ static KAction *blockContact(const QObject *recvr, const char *slot,
+ QObject* parent, const char *name = 0);
+ /**
+ * Standard action to unblock a contact
+ */
+ static KAction *unblockContact(const QObject *recvr, const char *slot,
+ QObject* parent, const char *name = 0);
+
+ /**
+ * Return an action to change the Kopete preferences.
+ *
+ * The object has no signal/slot, the prefs are automatically shown
+ */
+ static KAction *preferences(KActionCollection *parent, const char *name = 0);
+};
+
+
+namespace KSettings
+{
+ class Dialog;
+}
+
+class KOPETE_EXPORT KopetePreferencesAction : public KAction
+{
+ Q_OBJECT
+
+ public:
+ KopetePreferencesAction( KActionCollection *parent, const char *name = 0 );
+ ~KopetePreferencesAction();
+
+ protected slots:
+ void slotShowPreferences();
+ private:
+ static KSettings::Dialog *s_settingsDialog;
+};
+
+#endif
+// vim: set noet ts=4 sts=4 sw=4: