mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-23 13:25:27 +00:00
ab27e09b91
Sometimes it is not necessary to include the whole Cutter.h file Hence, it's been splitted so you can include only what you require E.g. #include "core/CutterCommon.h" to have access to the common types
27 lines
519 B
C++
27 lines
519 B
C++
|
|
#ifndef STRINGSASYNCTASK_H
|
|
#define STRINGSASYNCTASK_H
|
|
|
|
#include "common/AsyncTask.h"
|
|
#include "core/Cutter.h"
|
|
|
|
class StringsTask : public AsyncTask
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
QString getTitle() override { return tr("Searching for Strings"); }
|
|
|
|
signals:
|
|
void stringSearchFinished(const QList<StringDescription> &strings);
|
|
|
|
protected:
|
|
void runTask() override
|
|
{
|
|
auto strings = Core()->getAllStrings();
|
|
emit stringSearchFinished(strings);
|
|
}
|
|
};
|
|
|
|
#endif //STRINGSASYNCTASK_H
|