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:
@@ -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 >
|
QList< Tomahawk::query_ptr >
|
||||||
XSPFLoader::entries() const
|
XSPFLoader::entries() const
|
||||||
{
|
{
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org>
|
* Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org>
|
||||||
* Copyright 2011-2012, Leo Franchi <lfranchi@kde.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
|
* Tomahawk is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* 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/>.
|
* along with Tomahawk. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
#pragma once
|
||||||
Fetches and parses an XSPF document from a QFile or QUrl.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef XSPFLOADER_H
|
#ifndef XSPFLOADER_H
|
||||||
#define XSPFLOADER_H
|
#define XSPFLOADER_H
|
||||||
|
|
||||||
#include <QObject>
|
#include "DllMacro.h"
|
||||||
#include <QUrl>
|
|
||||||
#include <QFile>
|
|
||||||
#include <QNetworkReply>
|
|
||||||
#include <QNetworkRequest>
|
|
||||||
|
|
||||||
#include "Playlist.h"
|
#include "Playlist.h"
|
||||||
#include "Typedefs.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
|
class DLLEXPORT XSPFLoader : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
@@ -48,9 +44,9 @@ public:
|
|||||||
QString title() const;
|
QString title() const;
|
||||||
|
|
||||||
void setOverrideTitle( const QString& newTitle );
|
void setOverrideTitle( const QString& newTitle );
|
||||||
void setAutoResolveTracks( bool autoResolve ) { m_autoResolve = autoResolve; }
|
void setAutoResolveTracks( bool autoResolve );
|
||||||
void setAutoDelete( bool autoDelete ) { m_autoDelete = autoDelete; }
|
void setAutoDelete( bool autoDelete );
|
||||||
void setErrorTitle( const QString& error ) { m_errorTitle = error; }
|
void setErrorTitle( const QString& error );
|
||||||
|
|
||||||
static QString errorToString( XSPFErrorCode error );
|
static QString errorToString( XSPFErrorCode error );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user