2 kopetecontactaction.cpp - KAction for selecting a Kopete::Contact
4 Copyright (c) 2003 by Martijn Klingens <klingens@kde.org>
5 Copyright (c) 2006 by Matt Rogers <mattr@kde.org>
6 Kopete (c) 2003-2006 by the Kopete developers <kopete-devel@kde.org>
8 *************************************************************************
10 * This library is free software; you can redistribute it and/or *
11 * modify it under the terms of the GNU Lesser General Public *
12 * License as published by the Free Software Foundation; either *
13 * version 2 of the License, or (at your option) any later version. *
15 *************************************************************************
18 #ifndef __kopetecontactaction_h__
19 #define __kopetecontactaction_h__
22 #include "kopete_export.h"
24 class KActionCollection
;
33 * @author Martijn Klingens <klingens@kde.org>
34 * @author Matt Rogers <mattr@kde.org>
36 class KOPETE_EXPORT ContactAction
: public KAction
41 * Create a new KopeteContactAction
43 * The icon, text, and internal KAction name are taken from the
44 * Kopete::Contact object given to this constructor
46 * @param contact the contact this action is for
47 * @param parent the collection this action belongs to. The action is automatically added to the collection.
50 ContactAction( Kopete::Contact
*contact
, KActionCollection
* parent
);
54 * Emitted when the action is triggered. Connect to this slot when
55 * you need to know which contact the action was triggered for
57 void triggered( Kopete::Contact
*, bool checked
);
62 * Reimplemented to emit triggered with a Kopete::Contact object
64 void slotTriggered( bool );
67 Kopete::Contact
*m_contact
;
74 // vim: set noet ts=4 sts=4 sw=4:
75 // kate: tab-width 4; auto-insert-doxygen on; indent-mode cstyle;