Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 73c3a70d33
Fetching contributors…

Cannot retrieve contributors at this time

89 lines (69 sloc) 2.411 kB
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
*
* Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org>
*
* Tomahawk 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 3 of the License, or
* (at your option) any later version.
*
* Tomahawk 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 Tomahawk. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef AUDIOCONTROLS_H
#define AUDIOCONTROLS_H
#include <QWidget>
#include "result.h"
#include "playlistinterface.h"
#include "tomahawk/infosystem.h"
namespace Ui
{
class AudioControls;
}
class AudioControls : public QWidget
{
Q_OBJECT
public:
AudioControls( QWidget* parent = 0 );
~AudioControls();
signals:
void playPressed();
void pausePressed();
public slots:
void onRepeatModeChanged( PlaylistInterface::RepeatMode mode );
void onShuffleModeChanged( bool enabled );
void infoSystemInfo( QString caller, Tomahawk::InfoSystem::InfoType type, QVariant input, QVariant output, Tomahawk::InfoSystem::InfoCustomDataHash customData );
void infoSystemFinished( QString target );
protected:
void changeEvent( QEvent* e );
private slots:
void onPlaybackStarted( const Tomahawk::result_ptr& result );
void onPlaybackLoading( const Tomahawk::result_ptr& result );
void onPlaybackPaused();
void onPlaybackResumed();
void onPlaybackStopped();
void onPlaybackTimer( unsigned int seconds );
void onVolumeChanged( int volume );
void onRepeatClicked();
void onShuffleClicked();
void onArtistClicked();
void onAlbumClicked();
void onTrackClicked();
void onCoverArtDownloaded();
private:
Ui::AudioControls *ui;
QAction* m_playAction;
QAction* m_pauseAction;
QAction* m_prevAction;
QAction* m_nextAction;
QPixmap m_defaultCover;
Tomahawk::result_ptr m_currentTrack;
PlaylistInterface::RepeatMode m_repeatMode;
bool m_shuffled;
};
#endif // AUDIOCONTROLS_H
Jump to Line
Something went wrong with that request. Please try again.