#ifndef KERNELINFORMATION_H #define KERNELINFORMATION_H #include #include #include #include #include #include #include #include #include class KernelInformation : public QObject { Q_OBJECT public: KernelInformation(); void LoadInfo(); QJsonArray get_listData() const; QJsonObject get_kernelData(int value) const; int get_count() const; QString get_name(int value) const; QString get_author(int value) const; QString get_des(int value) const; QString get_ver(int value) const; QStringList get_pkgName(int value) const; QStringList get_system(int value) const; QStringList get_arch(int value) const; QString localKernelName() const; signals: void loadFinished(QNetworkReply *reply); private: QString url = "http://info.kernel.gxde.gfdgdxi.top/information.json"; QJsonArray listData; }; #endif // KERNELINFORMATION_H