X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmainwindow.h;h=fecda17e17fee9fc26da82e627d1ccaa53131627;hb=e08a905e6eb9553acdbf149ea98ca199785a05e0;hp=24f8efffdf0925c2f6627972806b215af101b056;hpb=dd00ef6be1a5989020c9ae2c1fa6c17910b260d1;p=someplayer diff --git a/src/mainwindow.h b/src/mainwindow.h index 24f8eff..fecda17 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -1,19 +1,45 @@ +/* + * 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 #include #include -#include +#include #include "playerform.h" #include "libraryform.h" #include "busywidget.h" +#include "equalizerdialog.h" +#include "managelibraryform.h" +#include "directoryview.h" +#include "settingsform.h" #include "library.h" +#include "dbusclient.h" +#include namespace Ui { class MainWindow; } using SomePlayer::DataObjects::Library; +using SomePlayer::DataObjects::Track; class MainWindow : public QMainWindow { @@ -26,21 +52,46 @@ public: private: Ui::MainWindow *ui; +signals: + void landscapeMode(); + void portraitMode(); + public slots: - void openMedia(); - void aboutQt(); void about(); void player(); void library(); + void settings(); + void updateTranslations(); private slots: - void _add_directory(); + 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); + void _change_orientation(); + void _hw_zoom_policy_changed(); + void _set_display_state(bool); + void _zoom_key_pressed(quint32); private: PlayerForm *_player_form; LibraryForm *_library_form; BusyWidget *_busy_widget; - QMenu *_library_menu; - QMenu *_player_menu; + DirectoryView *_directory_form; + SettingsForm *_settings_form; Library *_library; + QTimer *_timer; + EqualizerDialog *_equalizer_dialog; + ManageLibraryForm *_manage_library_form; + int _timeout_interval; + QTranslator *_translator; + DBusClient _dbus_client; + bool _display_unlocked; + quint32 _system_volume; // yes, it is here }; #endif // MAINWINDOW_H