1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-24 06:33:04 +02:00

Cleanup header

This commit is contained in:
Uwe L. Korn
2013-07-26 10:34:09 +02:00
parent 6fa9379dae
commit 852ef9d339
2 changed files with 31 additions and 14 deletions

View File

@@ -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
{

View File

@@ -2,6 +2,7 @@
*
* Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org>
* Copyright 2011-2012, Leo Franchi <lfranchi@kde.org>
* Copyright 2013, Uwe L. Korn <uwelk@xhochy.com>
*
* 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 <http://www.gnu.org/licenses/>.
*/
/*
Fetches and parses an XSPF document from a QFile or QUrl.
*/
#pragma once
#ifndef XSPFLOADER_H
#define XSPFLOADER_H
#include <QObject>
#include <QUrl>
#include <QFile>
#include <QNetworkReply>
#include <QNetworkRequest>
#include "DllMacro.h"
#include "Playlist.h"
#include "Typedefs.h"
#include "DllMacro.h"
#include <QFile>
/**
* @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 );