Clementine-audio-player-Mac.../src/scripting/python/player.sip

55 lines
1.1 KiB
Plaintext

class PlayerInterface : QObject {
%TypeHeaderCode
#include "core/player.h"
%End
public:
Engine::State GetState() const;
int GetVolume() const;
PlaylistItemPtr GetCurrentItem() const;
PlaylistItemPtr GetItemAt(int pos) const;
PlaylistManagerInterface* playlists() const;
public slots:
// Manual track change to the specified track
void PlayAt(int i, Engine::TrackChangeType change, bool reshuffle);
// If there's currently a song playing, pause it, otherwise play the track
// that was playing last, or the first one on the playlist
void PlayPause();
// Skips this track. Might load more of the current radio station.
void Next();
void Previous();
void SetVolume(int value);
void VolumeUp();
void VolumeDown();
void Mute();
void SeekTo(int seconds);
void SeekForward();
void SeekBackward();
void Pause();
void Stop();
void Play();
void ShowOSD();
signals:
void Playing();
void Paused();
void Stopped();
void PlaylistFinished();
void VolumeChanged(int volume);
void Error(const QString& message);
void TrackSkipped(PlaylistItemPtr old_track);
void ForceShowOSD(Song);
private:
PlayerInterface();
};