Show invite menu in wlm chat window immediately
[kdenetwork.git] / kopete / plugins / alias / aliaspreferences.h
blob129dd5c855c5d86e9ab020fff2929322e30927cc
1 /*
3 Kopete (c) 2003-2007 by the Kopete developers <kopete-devel@kde.org>
5 ***************************************************************************
6 * *
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. *
11 * *
12 ***************************************************************************
15 #ifndef AliasPREFERENCES_H
16 #define AliasPREFERENCES_H
18 #define KDE3_SUPPORT
19 #include <kcmodule.h>
20 #undef KDE3_SUPPORT
22 #include <QList>
24 typedef QList<Kopete::Protocol*> ProtocolList;
26 namespace Ui { class AliasDialogBase; }
27 namespace Kopete { class Protocol; }
28 class ProtocolItem;
29 class AliasItem;
30 class AliasDialog;
31 namespace Kopete { class Plugin; }
33 class AliasPreferences : public KCModule
35 Q_OBJECT
37 public:
38 explicit AliasPreferences( QWidget *parent = 0,
39 const QVariantList &args = QVariantList() );
40 ~AliasPreferences();
42 virtual void save();
43 virtual void load();
45 private slots:
46 void slotAddAlias();
47 void slotEditAlias();
48 void slotDeleteAliases();
49 void slotCheckAliasSelected();
50 void slotPluginLoaded( Kopete::Plugin * );
52 private:
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;
62 #endif
64 // vim: set noet ts=4 sts=4 sw=4: