aheinecke@7: #ifndef CERTIFICATELIST_H aheinecke@7: #define CERTIFICATELIST_H aheinecke@4: /** aheinecke@4: * This class handles a certificate list file. aheinecke@4: * It checks for the validity of that certificate aheinecke@4: * list file and provides an API for working with that aheinecke@4: * file. aheinecke@4: * aheinecke@4: * The List is parsed on Initialization. You should aheinecke@4: * check the Status afterwards to see if the file aheinecke@4: * could be parsed. aheinecke@4: * aheinecke@4: */ aheinecke@4: aheinecke@4: class QByteArray; aheinecke@4: aheinecke@4: #include aheinecke@9: #include aheinecke@7: #include aheinecke@4: aheinecke@18: #include "../cinst/listutil.h" aheinecke@7: aheinecke@7: class CertificateList : public QObject aheinecke@4: { aheinecke@4: Q_OBJECT aheinecke@4: aheinecke@4: public: aheinecke@7: CertificateList(const char *fileName); aheinecke@4: aheinecke@7: list_status_t getStatus() {return mStatus;} aheinecke@7: bool isValid() {return mStatus == Valid;} aheinecke@4: aheinecke@4: private: aheinecke@4: QString mFileName; aheinecke@9: QList mCertificatesInstall; aheinecke@9: QList mCertificatesRemove; aheinecke@7: list_status_t mStatus; aheinecke@9: QDateTime mDate; aheinecke@7: }; aheinecke@7: #endif