From 852ef9d339ef59ad533f67ba49afce0b71fcb93d Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Fri, 26 Jul 2013 10:34:09 +0200 Subject: [PATCH] Cleanup header --- src/libtomahawk/utils/XspfLoader.cpp | 21 +++++++++++++++++++++ src/libtomahawk/utils/XspfLoader.h | 24 ++++++++++-------------- 2 files changed, 31 insertions(+), 14 deletions(-) diff --git a/src/libtomahawk/utils/XspfLoader.cpp b/src/libtomahawk/utils/XspfLoader.cpp index be3af176c..de1ad5001 100644 --- a/src/libtomahawk/utils/XspfLoader.cpp +++ b/src/libtomahawk/utils/XspfLoader.cpp @@ -83,6 +83,27 @@ XSPFLoader::setOverrideTitle( const QString& newTitle ) } +void +XSPFLoader::setAutoResolveTracks( bool autoResolve ) +{ + m_autoResolve = autoResolve; +} + + +void +XSPFLoader::setAutoDelete( bool autoDelete ) +{ + m_autoDelete = autoDelete; +} + + +void +XSPFLoader::setErrorTitle( const QString& error) +{ + m_errorTitle = error; +} + + QList< Tomahawk::query_ptr > XSPFLoader::entries() const { diff --git a/src/libtomahawk/utils/XspfLoader.h b/src/libtomahawk/utils/XspfLoader.h index c23279196..80246e919 100644 --- a/src/libtomahawk/utils/XspfLoader.h +++ b/src/libtomahawk/utils/XspfLoader.h @@ -2,6 +2,7 @@ * * Copyright 2010-2011, Christian Muehlhaeuser * Copyright 2011-2012, Leo Franchi + * Copyright 2013, Uwe L. Korn * * Tomahawk is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -17,24 +18,19 @@ * along with Tomahawk. If not, see . */ -/* - Fetches and parses an XSPF document from a QFile or QUrl. - */ - +#pragma once #ifndef XSPFLOADER_H #define XSPFLOADER_H -#include -#include -#include -#include -#include - +#include "DllMacro.h" #include "Playlist.h" #include "Typedefs.h" -#include "DllMacro.h" +#include +/** + * @brief Fetches and parses an XSPF document from a QFile or QUrl. + */ class DLLEXPORT XSPFLoader : public QObject { Q_OBJECT @@ -48,9 +44,9 @@ public: QString title() const; void setOverrideTitle( const QString& newTitle ); - void setAutoResolveTracks( bool autoResolve ) { m_autoResolve = autoResolve; } - void setAutoDelete( bool autoDelete ) { m_autoDelete = autoDelete; } - void setErrorTitle( const QString& error ) { m_errorTitle = error; } + void setAutoResolveTracks( bool autoResolve ); + void setAutoDelete( bool autoDelete ); + void setErrorTitle( const QString& error ); static QString errorToString( XSPFErrorCode error );