mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-22 08:49:42 +01:00
* Added volume / setVolume methods to TomahawkSettings.
This commit is contained in:
parent
8d57ec3283
commit
8830593f1d
src/libtomahawk
@ -158,7 +158,6 @@ TomahawkSettings::doInitialSetup()
|
||||
// by default we add a local network resolver
|
||||
addAccount( "sipzeroconf_autocreated" );
|
||||
|
||||
|
||||
createLastFmAccount();
|
||||
createSpotifyAccount();
|
||||
}
|
||||
@ -712,6 +711,20 @@ TomahawkSettings::setCrashReporterEnabled( bool enable )
|
||||
}
|
||||
|
||||
|
||||
unsigned int
|
||||
TomahawkSettings::volume() const
|
||||
{
|
||||
return value( "audio/volume", 75 ).toUInt();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
TomahawkSettings::setVolume( unsigned int volume )
|
||||
{
|
||||
setValue( "audio/volume", volume );
|
||||
}
|
||||
|
||||
|
||||
QString
|
||||
TomahawkSettings::proxyHost() const
|
||||
{
|
||||
|
@ -47,11 +47,13 @@ public:
|
||||
|
||||
/// General settings
|
||||
virtual QString storageCacheLocation() const;
|
||||
|
||||
virtual QStringList scannerPaths() const; /// QDesktopServices::MusicLocation in TomahawkSettingsGui
|
||||
void setScannerPaths( const QStringList& paths );
|
||||
bool hasScannerPaths() const;
|
||||
uint scannerTime() const;
|
||||
void setScannerTime( uint time );
|
||||
|
||||
uint infoSystemCacheVersion() const;
|
||||
void setInfoSystemCacheVersion( uint version );
|
||||
|
||||
@ -81,6 +83,10 @@ public:
|
||||
bool enableEchonestCatalogs() const;
|
||||
void setEnableEchonestCatalogs( bool enable );
|
||||
|
||||
/// Audio stuff
|
||||
unsigned int volume() const;
|
||||
void setVolume( unsigned int volume );
|
||||
|
||||
/// Playlist stuff
|
||||
QByteArray playlistColumnSizes( const QString& playlistid ) const;
|
||||
void setPlaylistColumnSizes( const QString& playlistid, const QByteArray& state );
|
||||
|
Loading…
x
Reference in New Issue
Block a user