mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-24 16:51:59 +01:00
72 lines
2.6 KiB
C++
72 lines
2.6 KiB
C++
/***************************************************************************
|
|
* This file is part of libmygpo-qt *
|
|
* Copyright (c) 2010 - 2013 Stefan Derkits <stefan@derkits.at> *
|
|
* Copyright (c) 2010 - 2011 Christian Wagner <christian.wagner86@gmx.at> *
|
|
* Copyright (c) 2010 - 2011 Felix Winter <ixos01@gmail.com> *
|
|
* *
|
|
* This library is free software; you can redistribute it and/or *
|
|
* modify it under the terms of the GNU Lesser General Public *
|
|
* License as published by the Free Software Foundation; either *
|
|
* version 2.1 of the License, or (at your option) any later version. *
|
|
* *
|
|
* This library is distributed in the hope that it will be useful, *
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
|
|
* Lesser General Public License for more details. *
|
|
* *
|
|
* You should have received a copy of the GNU Lesser General Public *
|
|
* License along with this library; if not, write to the Free Software *
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 *
|
|
* USA *
|
|
***************************************************************************/
|
|
|
|
#ifndef PODCAST_PRIVATE_H
|
|
#define PODCAST_PRIVATE_H
|
|
|
|
#include "Podcast.h"
|
|
|
|
namespace mygpo
|
|
{
|
|
|
|
class PodcastPrivate : QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
PodcastPrivate( Podcast* qq, QNetworkReply* reply );
|
|
PodcastPrivate( Podcast* qq, const QVariant& variant );
|
|
virtual ~PodcastPrivate();
|
|
//Getters
|
|
QUrl url() const;
|
|
QString title() const;
|
|
QString description() const;
|
|
uint subscribers() const;
|
|
uint subscribersLastWeek() const;
|
|
QUrl logoUrl() const;
|
|
QUrl website() const;
|
|
QUrl mygpoUrl() const;
|
|
|
|
private:
|
|
QNetworkReply* m_reply;
|
|
Podcast* const q;
|
|
QUrl m_url;
|
|
QString m_title;
|
|
QString m_description;
|
|
uint m_subscribers;
|
|
uint m_SubscribersLastWeek;
|
|
QUrl m_logoUrl;
|
|
QUrl m_website;
|
|
QUrl m_mygpoUrl;
|
|
QNetworkReply::NetworkError m_error;
|
|
|
|
|
|
bool parse( const QVariant& data );
|
|
bool parse( const QByteArray& data );
|
|
private slots:
|
|
void parseData();
|
|
void error( QNetworkReply::NetworkError error );
|
|
};
|
|
|
|
};
|
|
|
|
#endif // PODCAST_PRIVATE_H
|