2 KNode, the KDE newsreader
3 Copyright (c) 1999-2005 the KNode authors.
4 See file AUTHORS for details
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10 You should have received a copy of the GNU General Public License
11 along with this program; if not, write to the Free Software Foundation,
12 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US
15 #ifndef KNGROUPDIALOG_H
16 #define KNGROUPDIALOG_H
18 #include "kngroupbrowser.h"
21 /** New group subscription dialog. */
22 class KNGroupDialog
: public KNGroupBrowser
{
27 KNGroupDialog(QWidget
*parent
, KNNntpAccount
*a
);
30 void toSubscribe(QList
<KNGroupInfo
> *l
);
31 void toUnsubscribe(QStringList
*l
);
34 enum arrowDirection
{ right
, left
};
35 enum arrowButton
{ btn1
, btn2
};
36 void updateItemState(CheckItem
*it
);
37 void itemChangedState(CheckItem
*it
, bool s
);
38 void setButtonDirection(arrowButton b
, arrowDirection d
);
39 QPushButton
*newListBtn
;
40 Q3ListView
*subView
, *unsubView
;
41 arrowDirection dir1
, dir2
;
44 void slotItemSelected(Q3ListViewItem
*it
);
45 /** deactivates the button when a root item is selected */
46 void slotSelectionChanged();
53 void slotDatePickerEnabled( bool );
56 void fetchList(KNNntpAccount
*a
);
57 void checkNew(KNNntpAccount
*a
,QDate date
);