forked from openkylin/ukui-search
30 lines
575 B
C++
30 lines
575 B
C++
#ifndef MESSAGELISTMANAGER_H
|
|
#define MESSAGELISTMANAGER_H
|
|
|
|
#include <QObject>
|
|
#include "index-generator.h"
|
|
|
|
class MessageListManager : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit MessageListManager();
|
|
~MessageListManager();
|
|
|
|
void AddMessage(const QString&);
|
|
bool SendMessage();
|
|
bool SendDeleteMessage();
|
|
void SetAutoSendMessageLength(const size_t&);
|
|
|
|
private:
|
|
QStringList* messageList;
|
|
size_t length = 0;
|
|
IndexGenerator* ig;
|
|
QThread* indexGeneratorThread;
|
|
|
|
Q_SIGNALS:
|
|
bool Send(QStringList*);
|
|
};
|
|
|
|
#endif // MESSAGELISTMANAGER_H
|