X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fplayerform.h;h=b1093a4934a8b5933dbeeaa5321671e902233d9f;hb=1d213a9db9b725dc285e92021f35e2f83a813080;hp=9d74ad7e643473b61354e9140c6708f6ad542fba;hpb=b0e8612b3fe8ff513f9c63637c4a546a4a0cea58;p=someplayer diff --git a/src/playerform.h b/src/playerform.h index 9d74ad7..b1093a4 100644 --- a/src/playerform.h +++ b/src/playerform.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 PLAYERFORM_H #define PLAYERFORM_H @@ -10,6 +29,7 @@ #include #include #include "trackrenderer.h" +#include "tagresolver.h" namespace Ui { class PlayerForm; @@ -20,6 +40,7 @@ using SomePlayer::DataObjects::Playlist; using SomePlayer::DataObjects::Track; using SomePlayer::Playback::Player; using SomePlayer::Playback::PlayerState; +using SomePlayer::DataObjects::TagResolver; class PlayerForm : public QWidget { @@ -27,7 +48,10 @@ class PlayerForm : public QWidget public: explicit PlayerForm(Library *lib, QWidget *parent = 0); - ~PlayerForm(); + ~PlayerForm(); + bool isEqualizerEnabled() { return _player->equalizerEnabled(); } + bool isEqualizerAvailable() { return _player->equalizerAvailable(); } + signals: void library(); void showSearchPanel(); @@ -39,6 +63,12 @@ public slots: void nextItem(); void prevItem(); void cancelSearch(); + void addFiles(QList files); + void stop(); + void setEqualizerValue(int band, double value) { _player->setEqualizerValue(band, value); } + void equalizerValue(int band, double *value) { _player->equalizerValue(band, value); } + void enableEqualizer() { _player->enableEqualizer(); } + void disableEqualizer() { _player->disableEqualizer(); } private slots: void _library(); @@ -51,9 +81,14 @@ private slots: void _delete_track(); void _enqueue_track(); void _add_to_favorites(); + void _add_to_playlists(); + void _edit_tags(); void _state_changed(PlayerState); void _toggle_repeat(); void _toggle_random(); + void _toggle_volume(); + void _track_decoded(Track); + void _volume_changed(); private: Ui::PlayerForm *ui; @@ -67,7 +102,9 @@ private: QString _search_pattern; TrackRenderer *_track_renderer; + TagResolver *_tag_resolver; void _display_track(Track); + int _search_current_id; }; #endif // PLAYERFORM_H