mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-19 15:29:42 +01:00
* Added methods to save / load queue state.
This commit is contained in:
parent
2b6081f4c7
commit
a074af2c22
@ -1038,6 +1038,20 @@ TomahawkSettings::removePlaylistSettings( const QString& playlistid )
|
||||
}
|
||||
|
||||
|
||||
QVariant
|
||||
TomahawkSettings::queueState() const
|
||||
{
|
||||
return value( QString( "playlists/queue/state" ) );
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
TomahawkSettings::setQueueState( const QVariant& state )
|
||||
{
|
||||
setValue( QString( "playlists/queue/state" ), state );
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
TomahawkSettings::setRepeatMode( const QString& playlistid, Tomahawk::PlaylistModes::RepeatMode mode )
|
||||
{
|
||||
|
@ -108,6 +108,9 @@ public:
|
||||
// remove shuffle state and repeat state
|
||||
void removePlaylistSettings( const QString& playlistid );
|
||||
|
||||
QVariant queueState() const;
|
||||
void setQueueState( const QVariant& state );
|
||||
|
||||
/// SIP plugins
|
||||
// all plugins we know about. loaded, unloaded, enabled, disabled.
|
||||
void setSipPlugins( const QStringList& plugins );
|
||||
@ -127,7 +130,6 @@ public:
|
||||
void addAccount( const QString& accountId );
|
||||
void removeAccount( const QString& accountId );
|
||||
|
||||
|
||||
void setBookmarkPlaylist( const QString& guid );
|
||||
QString bookmarkPlaylist() const;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user