25#include <QtCore/QString>
26#include <QtCore/QVariantList>
27#include <QtCore/QFile>
36class CC_API MsgFileMgr
40 typedef Protocol::MessagesList MessagesList;
49 ~MsgFileMgr() noexcept;
50 MsgFileMgr(const MsgFileMgr&);
51 MsgFileMgr(MsgFileMgr&&);
53 MsgFileMgr& operator=(const MsgFileMgr&);
54 MsgFileMgr& operator=(MsgFileMgr&&);
57 const QString& getLastFile() const;
58 static const QString& getFilesFilter();
60 MessagesList load(Type type, const QString& filename, Protocol& protocol);
61 bool save(Type type, const QString& filename, const MessagesList& msgs);
63 typedef std::shared_ptr<QFile> FileSaveHandler;
64 static FileSaveHandler startRecvSave(const QString& filename);
65 static
void addToRecvSave(FileSaveHandler handler, const Message& msg,
bool flush = false);
66 static
void flushRecvFile(FileSaveHandler handler);