cutter/src/common/FunctionsTask.h

27 lines
498 B
C
Raw Normal View History

2018-06-25 19:28:34 +00:00
#ifndef FUNCTIONSTASK_H
#define FUNCTIONSTASK_H
2018-10-17 07:55:53 +00:00
#include "common/AsyncTask.h"
2018-06-25 19:28:34 +00:00
#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