summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/ui/kopetestdaction.h
blob: 376548b962e50a3ea4fe44ddf8001529069e2a53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
/*
    kopetestdaction.h  -  Kopete Standard Actionds

    Copyright (c) 2001-2002 by Ryan Cumming     <[email protected]>
    Copyright (c) 2002-2003 by Martijn Klingens <[email protected]>

    Kopete    (c) 2002-2003 by the Kopete developers  <[email protected]>

    *************************************************************************
    *                                                                       *
    * 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 <tqobject.h>

#include "kopete_export.h"

/**
 * @author Ryan Cumming <[email protected]>
 */
class KOPETE_EXPORT KopeteStdAction
{
public:
	/**
	 * Standard action to start a chat
	 */
	static TDEAction *chat( const TQObject *recvr, const char *slot,
		TQObject* parent, const char *name = 0 );
	/**
	 * Standard action to send a single message
	 */
	static TDEAction *sendMessage(const TQObject *recvr, const char *slot,
		TQObject* parent, const char *name = 0);
	/**
	 * Standard action to open a user info dialog
	 */
	static TDEAction *contactInfo(const TQObject *recvr, const char *slot,
		TQObject* parent, const char *name = 0);
	/**
	 * Standard action to open a history dialog or something similar
	 */
	static TDEAction *viewHistory(const TQObject *recvr, const char *slot,
		TQObject* parent, const char *name = 0);
	/**
	 * Standard action to initiate sending a file to a contact
	 */
	static TDEAction *sendFile(const TQObject *recvr, const char *slot,
		TQObject* parent, const char *name = 0);
	/**
	 * Standard action to change a contacts @ref Kopete::MetaContact
	 */
	static TDEAction *changeMetaContact(const TQObject *recvr, const char *slot,
		TQObject* parent, const char *name = 0);
	/**
	 * Standard action to add a group
	 */
	static TDEAction *addGroup(const TQObject *recvr, const char *slot,
		TQObject* parent, const char *name = 0);
	/**
	 * Standard action to delete a contact
	 */
	static TDEAction *deleteContact(const TQObject *recvr, const char *slot,
		TQObject* parent, const char *name = 0);
	/**
	 * Standard action to change a contact alias/nickname in your contactlist
	 */
	static TDEAction *changeAlias(const TQObject *recvr, const char *slot,
		TQObject* parent, const char *name = 0);
	/**
	 * Standard action to block a contact
	 */
	static TDEAction *blockContact(const TQObject *recvr, const char *slot,
		TQObject* parent, const char *name = 0);
	/**
	 * Standard action to unblock a contact
	 */
	static TDEAction *unblockContact(const TQObject *recvr, const char *slot,
		TQObject* 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 TDEAction *preferences(TDEActionCollection *parent, const char *name = 0);
};


namespace KSettings
{
	  class Dialog;
}

class KOPETE_EXPORT KopetePreferencesAction : public TDEAction
{
	  Q_OBJECT
  

	  public:
			 KopetePreferencesAction( TDEActionCollection *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: