-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpodcastclient.h
More file actions
40 lines (34 loc) · 808 Bytes
/
podcastclient.h
File metadata and controls
40 lines (34 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef PODCASTCLIENT_H
#define PODCASTCLIENT_H
#include <QObject>
#include <QSettings>
#include <QDir>
#include <QList>
#include <QApplication>
#include "podcast.h"
#include "downloader.h"
#include "output.h"
class PodcastClient : public QObject
{
Q_OBJECT
QSettings settings;
Downloader downloader;
QList<Podcast*> podcasts;
int finishedCtr;
QStringList getFeedsFromSettings();
public:
explicit PodcastClient(QObject *parent = 0);
bool downloadAll();
bool addPodcast(const QUrl& url, const QString& mode);
void removePodcast(const QUrl& url);
void setDest(const QString& dest);
QString getDest();
void list();
void setMaxDownloads(int num);
int getMaxDownloads();
signals:
private slots:
void podcastDone();
void podcastWritingFailed();
};
#endif // PODCASTCLIENT_H