doc fixes found while translating
[kdepim.git] / knode / kngroupdialog.h
blobec30704074e24b4f3e2aed871507b7bb34f5f327
1 /*
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"
19 class KDatePicker;
21 /** New group subscription dialog. */
22 class KNGroupDialog : public KNGroupBrowser {
24 Q_OBJECT
26 public:
27 KNGroupDialog( QWidget *parent, KNNntpAccount::Ptr a );
28 ~KNGroupDialog();
30 void toSubscribe(QList<KNGroupInfo> *l);
31 void toUnsubscribe(QStringList *l);
33 protected:
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;
42 KDatePicker *dateSel;
43 protected slots:
44 void slotItemSelected(Q3ListViewItem *it);
45 /** deactivates the button when a root item is selected */
46 void slotSelectionChanged();
47 void slotArrowBtn1();
48 void slotArrowBtn2();
49 /** new list */
50 void slotUser1();
51 /** new groups */
52 void slotUser2();
53 void slotDatePickerEnabled( bool );
55 signals:
56 void fetchList( KNNntpAccount::Ptr a );
57 void checkNew( KNNntpAccount::Ptr a, QDate date );
60 #endif