summaryrefslogtreecommitdiff
path: root/view/sharedcache/ui/SharedCacheUINotifications.h
blob: 9ea4b50db37e2f68f48ba5adfab9e7f9eb502dd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//
// Created by kat on 5/8/23.
//
#include "ui/uicontext.h"

#ifndef SHAREDCACHE_NOTIFICATIONS_H
#define SHAREDCACHE_NOTIFICATIONS_H

class UINotifications : public UIContextNotification {
	static UINotifications* m_instance;

	std::vector<size_t> m_sessionsAlreadyDisplayedPickerFor;

public:
	virtual void OnViewChange(UIContext *context, ViewFrame *frame, const QString &type) override;
	// bool OnAfterOpenDatabase(UIContext* context, FileMetadataRef metadata, BinaryViewRef data) override;
	void OnAfterOpenFile(UIContext* context, FileContext* file, ViewFrame* frame) override;

	static void init();
};


#endif //SHAREDCACHE_NOTIFICATIONS_H