X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fmainwindow.h;h=7fc05dd5fa85228dd2d1ad35e4fe6db0779e6160;hb=684f9a2e23a11cbe3c5284c55fd45eb5d51a31fc;hp=e9b4608c24838e0a6b01a753971a297652d563a6;hpb=b0e8612b3fe8ff513f9c63637c4a546a4a0cea58;p=someplayer diff --git a/src/mainwindow.h b/src/mainwindow.h index e9b4608..7fc05dd 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 @@ -6,7 +25,9 @@ #include "playerform.h" #include "libraryform.h" #include "busywidget.h" +#include "equalizerdialog.h" #include "library.h" +#include namespace Ui { class MainWindow; @@ -25,28 +46,34 @@ public: private: Ui::MainWindow *ui; +signals: + void landscapeMode(); + void portraitMode(); + public slots: - void aboutQt(); void about(); - void player(); + void player(bool); void library(); + void settings(); void showBusyWidget(QString); - void showSearchPanel(); - void hideSearchPanel(); private slots: void _add_directory(); void _save_playlist(); void _clear_current_playlist(); - void _toggle_search_line(); - void _search(QString); - void _nextItem(); - void _prevItem(); - void _cancelSearch(); + void _add_files(); + void _set_timer(); + void _timeout(); + void _equalizer(); + void _equalizer_value_changed(int, int); + void _orientation_changed(); + void _fullscreen(bool); private: PlayerForm *_player_form; LibraryForm *_library_form; BusyWidget *_busy_widget; Library *_library; + QTimer *_timer; + EqualizerDialog *_equalizer_dialog; }; #endif // MAINWINDOW_H