view ui/certificatelist.h @ 6:1f6455d46b30

Add a test list
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 11 Feb 2014 17:57:55 +0000
parents 9849250f50f2
children 992c0ec57660
line wrap: on
line source


/**
 * This class handles a certificate list file.
 * It checks for the validity of that certificate
 * list file and provides an API for working with that
 * file.
 *
 * The List is parsed on Initialization. You should
 * check the Status afterwards to see if the file
 * could be parsed.
 *
 * The certificate list will be kept in memory until
 * this object is destroyed.
 *
 */

class QByteArray;

#include <QString>
#include <QDate>

class CertificateList
{
    Q_OBJECT

public:
    CertificateList(wchar_t* fileName);

    list_status_t getStatus();

private:
    QString mFileName;
    QByteArray *mFileContent;
    ListStatus mStatus;
    QDate mDate;
}

http://wald.intevation.org/projects/trustbridge/