6 #include "dblsqd/release.h"    10 class Feed : 
public QObject
    15     Feed(QString baseUrl = 
"", QString channel = 
"release", QString os = QString(), QString arch = QString(), QString type = QString());
    18     void setUrl(QString baseUrl, QString channel = 
"release", QString os = QString(), QString arch = QString(), QString type = QString());
    41     QList<Release> releases;
    43     void makeDownloadRequest(QUrl url);
    45     QNetworkAccessManager nam;
    46     QNetworkReply* feedReply;
    48     QNetworkReply* downloadReply;
    49     QTemporaryFile* downloadFile;
    54     void handleFeedFinished();
    55     void handleDownloadProgress(qint64, qint64);
    56     void handleDownloadReadyRead();
    57     void handleDownloadFinished();
    62 #endif // DBLSQD_FEED_H Feed(QString baseUrl="", QString channel="release", QString os=QString(), QString arch=QString(), QString type=QString())
Constructs a new Feed object. 
Definition: feed.cpp:25
 
void ready()
Definition: moc_feed.cpp:195
 
QTemporaryFile * getDownloadFile()
Returns the pointer to a QTemporaryFile for a downloaded file. 
Definition: feed.cpp:127
 
bool isReady()
Returns true if Feed information has been retrieved successfully. 
Definition: feed.cpp:137
 
void downloadError(QString message)
Definition: moc_feed.cpp:221
 
The Feed class provides methods for accessing DBLSQD Feeds and downloading Releases. 
Definition: feed.h:10
 
void downloadFinished()
Definition: moc_feed.cpp:215
 
void loadError(QString message)
Definition: moc_feed.cpp:201
 
void downloadProgress(qint64 bytesReceived, qint64 bytesTotal)
Definition: moc_feed.cpp:208
 
QList< Release > getUpdates(Release currentRelease=Release(QCoreApplication::applicationVersion()))
Returns a list of all Releases in the Feed that are newer than the given Release. ...
Definition: feed.cpp:113
 
QUrl getUrl()
Returns the Feed URL. 
Definition: feed.cpp:91
 
This class is used to represent information about a single Release from a Feed. 
Definition: release.h:10
 
void setUrl(QUrl url)
Sets the Feed URL. 
Definition: feed.cpp:41
 
void downloadRelease(Release release)
Starts the download of a given Release. 
Definition: feed.cpp:164
 
QList< Release > getReleases()
Returns a list of all Releases in the Feed. 
Definition: feed.cpp:102
 
void load()
Retrieves and parses data from the Feed. 
Definition: feed.cpp:150