blob: 2ea316dfc3f73e1d516dd2cbe12b5608ea745d8b [file] [log] [blame] [raw]
#ifndef MESSAGELOG_H
#define MESSAGELOG_H
#include <QtCore/qglobal.h>
#include <QtSql/QSqlDatabase>
class QString;
class QDateTime;
class QFile;
class MessageLog {
public:
MessageLog();
bool open(const QString &);
void close();
bool append_message(const QDateTime &, const QString &, const QString &, quint8, const QByteArray &);
private:
QSqlDatabase database;
QFile *lock_file;
};
#endif // MESSAGELOG_H