Add GUI for Xtraz status.
[kdenetwork.git] / kopete / protocols / oscar / icq / ui / xtrazicqstatuseditor.h
blob311d9c4f3996854e424d8b2724cf26697170a29c
1 /*
2 xtrazicqstatuseditor.h - Xtraz ICQ Status Editor
4 Copyright (c) 2007 by Roman Jarosz <kedgedev@centrum.cz>
5 Kopete (c) 2007 by the Kopete developers <kopete-devel@kde.org>
7 *************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 *************************************************************************
17 #ifndef XTRAZICQSTATUSEDITOR_H
18 #define XTRAZICQSTATUSEDITOR_H
20 #include <kdialog.h>
22 /**
23 @author Roman Jarosz <kedgedev@centrum.cz>
26 namespace Ui { class XtrazICQStatusEditorUI; }
28 class ICQStatusManager;
29 class QModelIndex;
31 namespace Xtraz
34 class StatusModel;
36 class ICQStatusEditor : public KDialog
38 Q_OBJECT
40 public:
41 ICQStatusEditor( ICQStatusManager *statusManager, QWidget *parent = 0 );
42 ~ICQStatusEditor();
44 public slots:
45 void save();
47 void moveUp();
48 void moveDown();
50 void addStatus();
51 void deleteStatus();
53 private slots:
54 void updateButtons();
56 private:
57 Ui::XtrazICQStatusEditorUI *mUi;
58 Xtraz::StatusModel* mXtrazStatusModel;
59 ICQStatusManager *mStatusManager;
65 #endif