mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-22 12:56:11 +00:00
27 lines
497 B
C
27 lines
497 B
C
|
|
||
|
#ifndef FUNCTIONSTASK_H
|
||
|
#define FUNCTIONSTASK_H
|
||
|
|
||
|
#include "utils/AsyncTask.h"
|
||
|
#include "Cutter.h"
|
||
|
|
||
|
class FunctionsTask : public AsyncTask
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
QString getTitle() override { return tr("Fetching Functions"); }
|
||
|
|
||
|
signals:
|
||
|
void fetchFinished(const QList<FunctionDescription> &strings);
|
||
|
|
||
|
protected:
|
||
|
void runTask() override
|
||
|
{
|
||
|
auto functions = Core()->getAllFunctions();
|
||
|
emit fetchFinished(functions);
|
||
|
}
|
||
|
};
|
||
|
|
||
|
#endif //FUNCTIONSTASK_H
|