ukui-search/index/messagelist-manager.h

32 lines
629 B
C
Raw Normal View History

2020-12-21 18:50:54 +08:00
#ifndef MESSAGELISTMANAGER_H
#define MESSAGELISTMANAGER_H
#include <QObject>
#include "index-generator.h"
class MessageListManager : public QObject
{
Q_OBJECT
public:
explicit MessageListManager();
~MessageListManager();
2020-12-25 20:08:26 +08:00
void AddMessage(const QVector<QString>&);
2020-12-21 18:50:54 +08:00
bool SendMessage();
2020-12-24 20:38:26 +08:00
bool SendDeleteMessage();
2020-12-21 18:50:54 +08:00
void SetAutoSendMessageLength(const size_t&);
private:
2020-12-25 20:08:26 +08:00
// QStringList* messageList;
QList<QVector<QString>>* messageList;
2020-12-21 18:50:54 +08:00
size_t length = 0;
IndexGenerator* ig;
2020-12-24 20:38:26 +08:00
QThread* indexGeneratorThread;
2020-12-21 18:50:54 +08:00
2020-12-24 20:38:26 +08:00
Q_SIGNALS:
bool Send(QStringList*);
2020-12-21 18:50:54 +08:00
};
#endif // MESSAGELISTMANAGER_H