Bugfix: category dublicates
[speedfreak] / Client / topresultdialog.h
1 /*
2  * Topresultdialog
3  *
4  * @author     Olavi Pulkkinen <olavi.pulkkinena@fudeco.com>
5  * @author     Toni Jussila <toni.jussila@fudeco.com>
6  * @copyright  (c) 2010 Speed Freak team
7  * @license    http://opensource.org/licenses/gpl-license.php GNU Public License
8  */
9
10 #ifndef TOPRESULTDIALOG_H
11 #define TOPRESULTDIALOG_H
12
13 #include <QDialog>
14
15 namespace Ui {
16     class TopResultDialog;
17 }
18
19 class TopResultDialog : public QDialog {
20     Q_OBJECT
21 public:
22     TopResultDialog(QWidget *parent = 0);
23     ~TopResultDialog();
24     void setCompoBoxCategories(QStringList list);
25     void showTopList(QString str);
26     int getRecentCategoryIndex();
27     int getLimitNr();
28     void setLimitNr(int number);
29     void setLabelInfoToUser(QString infoText);
30
31 protected:
32     void changeEvent(QEvent *e);
33
34 signals:
35     void refreshCategoryList();
36     void refreshTopList(int index);
37
38 private:
39     Ui::TopResultDialog *ui;
40     int recentCategoryIndex;
41     int limitNr;
42
43 private slots:
44     void on_comboBoxTopCategory_currentIndexChanged(int index);
45     void on_buttonTopRefresh_clicked();
46
47 };
48
49 #endif // TOPRESULTDIALOG_H