Add setting for lyric providers and add more providers

Fixes #335
This commit is contained in:
Jonas Kvinge
2020-05-08 18:35:36 +02:00
parent 6ef69f6b32
commit f44ce49ea7
39 changed files with 1834 additions and 105 deletions

View File

@@ -38,9 +38,11 @@ class LocalRedirectServer : public QTcpServer {
Q_OBJECT
public:
explicit LocalRedirectServer(const bool https, QObject* parent = nullptr);
explicit LocalRedirectServer(QObject *parent = nullptr);
~LocalRedirectServer();
void set_https(const bool https) { https_ = https; }
void set_port(const int port) { port_ = port; }
bool Listen();
const QUrl &url() const { return url_; }
const QUrl &request_url() const { return request_url_; }
@@ -65,6 +67,7 @@ class LocalRedirectServer : public QTcpServer {
private:
bool https_;
int port_;
QUrl url_;
QUrl request_url_;
QSslCertificate ssl_certificate_;