mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-14 10:05:32 +02:00
Settings backend for preferred download format.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
|
/* === 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-2011 Leo Franchi <lfranchi@kde.org>
|
||||||
* Copyright 2010-2012, Jeff Mitchell <jeff@tomahawk-player.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
|
QString
|
||||||
TomahawkSettings::downloadsPath() const
|
TomahawkSettings::downloadsPath() const
|
||||||
{
|
{
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
|
/* === 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 Leo Franchi <lfranchi@kde.org>
|
||||||
* Copyright 2010-2012, Jeff Mitchell <jeff@tomahawk-player.org>
|
* Copyright 2010-2012, Jeff Mitchell <jeff@tomahawk-player.org>
|
||||||
*
|
*
|
||||||
@@ -57,6 +57,9 @@ public:
|
|||||||
uint scannerTime() const;
|
uint scannerTime() const;
|
||||||
void setScannerTime( uint time );
|
void setScannerTime( uint time );
|
||||||
|
|
||||||
|
QString downloadsPreferredFormat() const;
|
||||||
|
void setDownloadsPreferredFormat( const QString& format );
|
||||||
|
|
||||||
QString downloadsPath() const;
|
QString downloadsPath() const;
|
||||||
void setDownloadsPath( const QString& path );
|
void setDownloadsPath( const QString& path );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user