2 * Copyright (C) 2011 Toni Gundogdu <legatvs@gmail.com>
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
35 class NFeedDialog
: public QDialog
39 static void m_info(QWidget
*, const QString
&);
41 NFeedDialog(QWidget
*parent
, const QString
&);
43 QString
selected() const;
44 QString
errmsg() const;
50 void parse(QStringList
);
51 void selected(QString
);
59 class NFeedWidget
: public QWidget
63 NFeedWidget(QWidget
*parent
);
65 virtual void init() = 0;
67 friend class NFeedDialog
;
70 class NFeedInfo
: public NFeedWidget
74 NFeedInfo(const QString
&, QWidget
*parent
=NULL
);
78 void enableRange(bool state
=true);
79 void typeChanged(int); // Feed type
80 void modeChanged(int); // "Get all" or "specified range"
84 void parse(QStringList
);
86 QGroupBox
*_rangeGroup
;
87 QComboBox
*_typeCombo
;
88 QLineEdit
*_identEdit
;
89 QButtonGroup
*_bgroup
;
96 class NFeedItems
: public NFeedWidget
100 NFeedItems(QWidget
*parent
=NULL
);
107 void selected(QString
);
116 /* vim: set ts=2 sw=2 tw=72 expandtab: */