X-Git-Url: http://git.maemo.org/git/?p=someplayer;a=blobdiff_plain;f=src%2Fmainwindow.h;h=0239c59035bf8861d5faa3381a556cb12a2b8719;hp=5acedb4ff395a79e915ec4a70213dd87096e0ea2;hb=1d213a9db9b725dc285e92021f35e2f83a813080;hpb=f51c4ea03daed5d168cacb15335023ba441cd7c0 diff --git a/src/mainwindow.h b/src/mainwindow.h index 5acedb4..0239c59 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -1,3 +1,22 @@ +/* + * SomePlayer - An alternate music player for Maemo 5 + * Copyright (C) 2010 Nikolay (somebody) Tischenko + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + #ifndef MAINWINDOW_H #define MAINWINDOW_H @@ -5,11 +24,17 @@ #include #include "playerform.h" #include "libraryform.h" +#include "busywidget.h" +#include "equalizerdialog.h" +#include "library.h" +#include namespace Ui { class MainWindow; } +using SomePlayer::DataObjects::Library; + class MainWindow : public QMainWindow { Q_OBJECT @@ -22,14 +47,35 @@ private: Ui::MainWindow *ui; public slots: - void openMedia(); void aboutQt(); void about(); void player(); void library(); + void showBusyWidget(QString); + void showSearchPanel(); + void hideSearchPanel(); +private slots: + void _add_directory(); + void _save_playlist(); + void _clear_current_playlist(); + void _add_files(); + void _toggle_search_line(); + void _search(QString); + void _nextItem(); + void _prevItem(); + void _cancelSearch(); + void _toggle_full_screen(); + void _set_timer(); + void _timeout(); + void _equalizer(); + void _equalizer_value_changed(int, int); private: - PlayerForm *_playerForm; - LibraryForm *_libraryForm; + PlayerForm *_player_form; + LibraryForm *_library_form; + BusyWidget *_busy_widget; + Library *_library; + QTimer *_timer; + EqualizerDialog *_equalizer_dialog; }; #endif // MAINWINDOW_H