X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fmainwindow.h;h=4a8f41ddbbc7df4bf4220c710cf2f45ffc370bfe;hb=d3b1b0233563d5f6fabb15d53ac450b7dfd915ad;hp=5acedb4ff395a79e915ec4a70213dd87096e0ea2;hpb=de6604ba0154d3233889a330b8f229c952614021;p=someplayer diff --git a/src/mainwindow.h b/src/mainwindow.h index 5acedb4..4a8f41d 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,20 @@ #include #include "playerform.h" #include "libraryform.h" +#include "busywidget.h" +#include "equalizerdialog.h" +#include "managelibraryform.h" +#include "directoryview.h" +#include "library.h" +#include namespace Ui { class MainWindow; } +using SomePlayer::DataObjects::Library; +using SomePlayer::DataObjects::Track; + class MainWindow : public QMainWindow { Q_OBJECT @@ -21,15 +49,36 @@ public: private: Ui::MainWindow *ui; +signals: + void landscapeMode(); + void portraitMode(); + public slots: - void openMedia(); - void aboutQt(); void about(); void player(); void library(); + void settings(); +private slots: + void _manage_library(); + void _save_playlist(); + void _clear_current_playlist(); + void _set_timer(); + void _timeout(); + void _equalizer(); + void _equalizer_value_changed(int, int); + void _orientation_changed(); + void _fullscreen(bool); + void _add_tracks(QList); private: - PlayerForm *_playerForm; - LibraryForm *_libraryForm; + PlayerForm *_player_form; + LibraryForm *_library_form; + BusyWidget *_busy_widget; + DirectoryView *_directory_form; + Library *_library; + QTimer *_timer; + EqualizerDialog *_equalizer_dialog; + ManageLibraryForm *_manage_library_form; + int _timeout_interval; }; #endif // MAINWINDOW_H