#ifndef QMOVIEDB_H #define QMOVIEDB_H #include #include #include class QMovieDB : public QObject { Q_OBJECT public: explicit QMovieDB(QString apiKey, QObject *parent = nullptr); QNetworkAccessManager *netMan; void searchMovieTitle(const QString title); Q_INVOKABLE void searchMovieTitleFile(const QString file); private: QString movieDbApiKey; private slots: void receiveReply(QNetworkReply *reply); void parseResults(QJsonObject json); signals: void searchResultReturned(QString fullTitle); }; #endif // QMOVIEDB_H