1
/* BEGIN_COMMON_COPYRIGHT_HEADER
4
* Copyright: 2012 Labo A.L
6
* Aaron Lewis <the.warl0ck.1989@gmail.com>
8
* This program or library is free software; you can redistribute it
9
* and/or modify it under the terms of the GNU Lesser General Public
10
* License as published by the Free Software Foundation; either
11
* version 2.1 of the License, or (at your option) any later version.
13
* This library is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* Lesser General Public License for more details.
18
* You should have received a copy of the GNU Lesser General
19
* Public License along with this library; if not, write to the
20
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21
* Boston, MA 02110-1301 USA
23
* END_COMMON_COPYRIGHT_HEADER */
28
#include <QSortFilterProxyModel>
29
#include <QStandardItemModel>
30
#include <QMainWindow>
34
#include <QMessageBox>
39
#include "qmpwidget.h"
45
class MainWindow : public QMainWindow
50
explicit MainWindow(QWidget *parent = 0);
55
void on_stopButton_clicked();
57
void on_playPauseButton_clicked();
59
void on_muteButton_toggled(bool checked);
62
void keyPressEvent(QKeyEvent *e);
63
void closeEvent(QCloseEvent *);
67
int m_vol, m_completed_cnt;
69
QSortFilterProxyModel *m_filterModel;
70
QStandardItemModel *m_model;
72
QList<Provider*> m_providers;
75
void copyDownloadURL ();
77
void loadCompleted ();
78
void mplayerStateChanged (int s);
79
void update_volume_icon();
80
void on_actionRefresh_triggered();
81
void on_actionToggleView_triggered(bool checked);
82
void on_programeListView_doubleClicked(const QModelIndex &index);
83
void on_subtitleFilter_textChanged(const QString &arg1);
84
void on_searchTextLine_textChanged(const QString &arg1);
85
void on_lookForward_clicked();
86
void on_lookBackward_clicked();
87
void on_searchTextLine_returnPressed();
88
void on_actionAbout_Qt_triggered();
89
void on_actionAbout_Me_triggered();
90
void on_actionQuit_Q_triggered();
93
#endif // MAINWINDOW_H
94
/* BEGIN_COMMON_COPYRIGHT_HEADER
97
* Copyright: 2012 Labo A.L
99
* Aaron Lewis <the.warl0ck.1989@gmail.com>
101
* This program or library is free software; you can redistribute it
102
* and/or modify it under the terms of the GNU Lesser General Public
103
* License as published by the Free Software Foundation; either
104
* version 2.1 of the License, or (at your option) any later version.
106
* This library is distributed in the hope that it will be useful,
107
* but WITHOUT ANY WARRANTY; without even the implied warranty of
108
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
109
* Lesser General Public License for more details.
111
* You should have received a copy of the GNU Lesser General
112
* Public License along with this library; if not, write to the
113
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
114
* Boston, MA 02110-1301 USA
116
* END_COMMON_COPYRIGHT_HEADER */
1
117
#ifndef MAINWINDOW_H
2
118
#define MAINWINDOW_H