mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
32 lines
515 B
C
32 lines
515 B
C
|
#ifndef __IM_History_reader__
|
||
|
#define __IM_History_reader__
|
||
|
|
||
|
#include <QXmlStreamReader>
|
||
|
|
||
|
#include <QString>
|
||
|
#include <QStringList>
|
||
|
|
||
|
#include "IMHistoryItem.h"
|
||
|
|
||
|
class IMHistoryReader : public QXmlStreamReader
|
||
|
{
|
||
|
public:
|
||
|
IMHistoryReader();
|
||
|
|
||
|
bool read(QList<IMHistoryItem>& resultList,
|
||
|
const QString fileName );
|
||
|
|
||
|
QString errorMessage();
|
||
|
|
||
|
private:
|
||
|
void readUnknownElement();
|
||
|
QList<IMHistoryItem> readHistory();
|
||
|
IMHistoryItem readMessage();
|
||
|
|
||
|
QString errMess;
|
||
|
} ;
|
||
|
|
||
|
|
||
|
#endif
|
||
|
|