mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-08 23:26:40 +02:00
* Added methods to save / load queue state.
This commit is contained in:
@@ -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
|
void
|
||||||
TomahawkSettings::setRepeatMode( const QString& playlistid, Tomahawk::PlaylistModes::RepeatMode mode )
|
TomahawkSettings::setRepeatMode( const QString& playlistid, Tomahawk::PlaylistModes::RepeatMode mode )
|
||||||
{
|
{
|
||||||
|
@@ -108,6 +108,9 @@ public:
|
|||||||
// remove shuffle state and repeat state
|
// remove shuffle state and repeat state
|
||||||
void removePlaylistSettings( const QString& playlistid );
|
void removePlaylistSettings( const QString& playlistid );
|
||||||
|
|
||||||
|
QVariant queueState() const;
|
||||||
|
void setQueueState( const QVariant& state );
|
||||||
|
|
||||||
/// SIP plugins
|
/// SIP plugins
|
||||||
// all plugins we know about. loaded, unloaded, enabled, disabled.
|
// all plugins we know about. loaded, unloaded, enabled, disabled.
|
||||||
void setSipPlugins( const QStringList& plugins );
|
void setSipPlugins( const QStringList& plugins );
|
||||||
@@ -127,7 +130,6 @@ public:
|
|||||||
void addAccount( const QString& accountId );
|
void addAccount( const QString& accountId );
|
||||||
void removeAccount( const QString& accountId );
|
void removeAccount( const QString& accountId );
|
||||||
|
|
||||||
|
|
||||||
void setBookmarkPlaylist( const QString& guid );
|
void setBookmarkPlaylist( const QString& guid );
|
||||||
QString bookmarkPlaylist() const;
|
QString bookmarkPlaylist() const;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user