1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-19 15:29:42 +01:00

Updated TomahawkSettings to handle download folder.

This commit is contained in:
Christian Muehlhaeuser 2015-03-11 05:15:38 +01:00
parent 55feb3f3e1
commit 94ee994112
2 changed files with 21 additions and 0 deletions

View File

@ -799,6 +799,24 @@ TomahawkSettings::setWatchForChanges( bool watch )
}
QString
TomahawkSettings::downloadsPath() const
{
QString musicLocation;
if ( scannerPaths().count() )
musicLocation = scannerPaths().first();
return value( "downloadmanager/path", musicLocation ).toString();
}
void
TomahawkSettings::setDownloadsPath( const QString& path )
{
setValue( "downloadmanager/path", path );
}
bool
TomahawkSettings::httpEnabled() const
{

View File

@ -57,6 +57,9 @@ public:
uint scannerTime() const;
void setScannerTime( uint time );
QString downloadsPath() const;
void setDownloadsPath( const QString& path );
uint infoSystemCacheVersion() const;
void setInfoSystemCacheVersion( uint version );
uint genericCacheVersion() const;