mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 05:37:29 +02:00
Updated TomahawkSettings to handle download folder.
This commit is contained in:
@@ -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
|
bool
|
||||||
TomahawkSettings::httpEnabled() const
|
TomahawkSettings::httpEnabled() const
|
||||||
{
|
{
|
||||||
|
@@ -57,6 +57,9 @@ public:
|
|||||||
uint scannerTime() const;
|
uint scannerTime() const;
|
||||||
void setScannerTime( uint time );
|
void setScannerTime( uint time );
|
||||||
|
|
||||||
|
QString downloadsPath() const;
|
||||||
|
void setDownloadsPath( const QString& path );
|
||||||
|
|
||||||
uint infoSystemCacheVersion() const;
|
uint infoSystemCacheVersion() const;
|
||||||
void setInfoSystemCacheVersion( uint version );
|
void setInfoSystemCacheVersion( uint version );
|
||||||
uint genericCacheVersion() const;
|
uint genericCacheVersion() const;
|
||||||
|
Reference in New Issue
Block a user