mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-13 20:39:57 +01:00
Settings backend for preferred download format.
This commit is contained in:
parent
b265af268a
commit
013d54ed63
@ -1,6 +1,6 @@
|
||||
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
|
||||
*
|
||||
* Copyright 2010-2014, Christian Muehlhaeuser <muesli@tomahawk-player.org>
|
||||
* Copyright 2010-2015, Christian Muehlhaeuser <muesli@tomahawk-player.org>
|
||||
* Copyright 2010-2011 Leo Franchi <lfranchi@kde.org>
|
||||
* Copyright 2010-2012, Jeff Mitchell <jeff@tomahawk-player.org>
|
||||
*
|
||||
@ -799,6 +799,20 @@ TomahawkSettings::setWatchForChanges( bool watch )
|
||||
}
|
||||
|
||||
|
||||
QString
|
||||
TomahawkSettings::downloadsPreferredFormat() const
|
||||
{
|
||||
return value( "downloadmanager/preferredFormat", "MP3" ).toString();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
TomahawkSettings::setDownloadsPreferredFormat( const QString& format )
|
||||
{
|
||||
setValue( "downloadmanager/preferredFormat", format );
|
||||
}
|
||||
|
||||
|
||||
QString
|
||||
TomahawkSettings::downloadsPath() const
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
|
||||
*
|
||||
* Copyright 2010-2014, Christian Muehlhaeuser <muesli@tomahawk-player.org>
|
||||
* Copyright 2010-2015, Christian Muehlhaeuser <muesli@tomahawk-player.org>
|
||||
* Copyright 2010-2012 Leo Franchi <lfranchi@kde.org>
|
||||
* Copyright 2010-2012, Jeff Mitchell <jeff@tomahawk-player.org>
|
||||
*
|
||||
@ -57,6 +57,9 @@ public:
|
||||
uint scannerTime() const;
|
||||
void setScannerTime( uint time );
|
||||
|
||||
QString downloadsPreferredFormat() const;
|
||||
void setDownloadsPreferredFormat( const QString& format );
|
||||
|
||||
QString downloadsPath() const;
|
||||
void setDownloadsPath( const QString& path );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user