summaryrefslogtreecommitdiff
path: root/plugins/warp/ui/matches.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/warp/ui/matches.h')
-rw-r--r--plugins/warp/ui/matches.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/plugins/warp/ui/matches.h b/plugins/warp/ui/matches.h
index 251dcb89..88926add 100644
--- a/plugins/warp/ui/matches.h
+++ b/plugins/warp/ui/matches.h
@@ -4,6 +4,7 @@
#include "filter.h"
#include "render.h"
+#include "shared/fetcher.h"
#include "shared/function.h"
class WarpCurrentFunctionWidget : public QWidget
@@ -18,21 +19,18 @@ class WarpCurrentFunctionWidget : public QWidget
LoggerRef m_logger;
- std::mutex m_requestMutex;
- std::vector<FunctionRef> m_pendingRequests;
- std::atomic<bool> m_requestInProgress {false};
- std::unordered_set<uint64_t> m_processedFunctions;
+ std::shared_ptr<WarpFetcher> m_fetcher;
public:
- explicit WarpCurrentFunctionWidget(FunctionRef current);
+ explicit WarpCurrentFunctionWidget();
~WarpCurrentFunctionWidget() override = default;
+ void SetFetcher(std::shared_ptr<WarpFetcher> fetcher);
+
void SetCurrentFunction(FunctionRef current);
FunctionRef GetCurrentFunction() { return m_current; };
void UpdateMatches();
-
- void ProcessPendingFetchRequests();
};