3 Kopete (c) 2003-2007 by the Kopete developers <kopete-devel@kde.org>
5 ***************************************************************************
7 * This program is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation; either version 2 of the License, or *
10 * (at your option) any later version. *
12 ***************************************************************************
15 #ifndef AliasPREFERENCES_H
16 #define AliasPREFERENCES_H
24 typedef QList
<Kopete::Protocol
*> ProtocolList
;
26 namespace Ui
{ class AliasDialogBase
; }
27 namespace Kopete
{ class Protocol
; }
31 namespace Kopete
{ class Plugin
; }
33 class AliasPreferences
: public KCModule
38 explicit AliasPreferences( QWidget
*parent
= 0,
39 const QVariantList
&args
= QVariantList() );
48 void slotDeleteAliases();
49 void slotCheckAliasSelected();
50 void slotPluginLoaded( Kopete::Plugin
* );
53 Ui::AliasDialogBase
* preferencesDialog
;
54 void addAlias( QString
&alias
, QString
&command
, const ProtocolList
&p
, uint id
= 0 );
55 void loadProtocols( EditAliasDialog
*dialog
);
56 const ProtocolList
selectedProtocols( EditAliasDialog
*dialog
);
57 QMap
<Kopete::Protocol
*,ProtocolItem
*> itemMap
;
58 QMap
<QPair
<Kopete::Protocol
*,QString
>, bool> protocolMap
;
59 QMap
<QString
,AliasItem
*> aliasMap
;
64 // vim: set noet ts=4 sts=4 sw=4: