mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 03:10:12 +02:00
fix style
This commit is contained in:
@@ -84,13 +84,13 @@ XSPFLoader::gotBody()
|
|||||||
QDomNodeList tracklist;
|
QDomNodeList tracklist;
|
||||||
QDomElement n = docElement.firstChildElement();
|
QDomElement n = docElement.firstChildElement();
|
||||||
for ( ; !n.isNull(); n = n.nextSiblingElement() ) {
|
for ( ; !n.isNull(); n = n.nextSiblingElement() ) {
|
||||||
if (n.namespaceURI() == NS && n.localName() == "title") {
|
if (n.namespaceURI() == m_NS && n.localName() == "title") {
|
||||||
origTitle = n.text();
|
origTitle = n.text();
|
||||||
} else if (n.namespaceURI() == NS && n.localName() == "creator") {
|
} else if (n.namespaceURI() == m_NS && n.localName() == "creator") {
|
||||||
m_creator = n.text();
|
m_creator = n.text();
|
||||||
} else if (n.namespaceURI() == NS && n.localName() == "info") {
|
} else if (n.namespaceURI() == m_NS && n.localName() == "info") {
|
||||||
m_info = n.text();
|
m_info = n.text();
|
||||||
} else if (n.namespaceURI() == NS && n.localName() == "trackList") {
|
} else if (n.namespaceURI() == m_NS && n.localName() == "trackList") {
|
||||||
tracklist = n.childNodes();
|
tracklist = n.childNodes();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -106,15 +106,15 @@ XSPFLoader::gotBody()
|
|||||||
QString artist, album, track, duration, annotation;
|
QString artist, album, track, duration, annotation;
|
||||||
QDomElement n = e.firstChildElement();
|
QDomElement n = e.firstChildElement();
|
||||||
for ( ; !n.isNull(); n = n.nextSiblingElement() ) {
|
for ( ; !n.isNull(); n = n.nextSiblingElement() ) {
|
||||||
if (n.namespaceURI() == NS && n.localName() == "duration") {
|
if (n.namespaceURI() == m_NS && n.localName() == "duration") {
|
||||||
duration = n.text();
|
duration = n.text();
|
||||||
} else if (n.namespaceURI() == NS && n.localName() == "annotation") {
|
} else if (n.namespaceURI() == m_NS && n.localName() == "annotation") {
|
||||||
annotation = n.text();
|
annotation = n.text();
|
||||||
} else if (n.namespaceURI() == NS && n.localName() == "creator") {
|
} else if (n.namespaceURI() == m_NS && n.localName() == "creator") {
|
||||||
artist = n.text();
|
artist = n.text();
|
||||||
} else if (n.namespaceURI() == NS && n.localName() == "album") {
|
} else if (n.namespaceURI() == m_NS && n.localName() == "album") {
|
||||||
album = n.text();
|
album = n.text();
|
||||||
} else if (n.namespaceURI() == NS && n.localName() == "title") {
|
} else if (n.namespaceURI() == m_NS && n.localName() == "title") {
|
||||||
track = n.text();
|
track = n.text();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -25,7 +25,7 @@ public:
|
|||||||
explicit XSPFLoader( bool autoCreate = true, QObject* parent = 0 )
|
explicit XSPFLoader( bool autoCreate = true, QObject* parent = 0 )
|
||||||
: QObject( parent )
|
: QObject( parent )
|
||||||
, m_autoCreate( autoCreate )
|
, m_autoCreate( autoCreate )
|
||||||
, NS("http://xspf.org/ns/0/")
|
, m_NS("http://xspf.org/ns/0/")
|
||||||
{}
|
{}
|
||||||
|
|
||||||
virtual ~XSPFLoader()
|
virtual ~XSPFLoader()
|
||||||
@@ -48,11 +48,11 @@ private slots:
|
|||||||
void networkError( QNetworkReply::NetworkError e );
|
void networkError( QNetworkReply::NetworkError e );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QString NS;
|
|
||||||
void reportError();
|
void reportError();
|
||||||
void gotBody();
|
void gotBody();
|
||||||
|
|
||||||
bool m_autoCreate;
|
bool m_autoCreate;
|
||||||
|
QString m_NS;
|
||||||
QList< Tomahawk::plentry_ptr > m_entries;
|
QList< Tomahawk::plentry_ptr > m_entries;
|
||||||
QString m_title, m_info, m_creator;
|
QString m_title, m_info, m_creator;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user