tdesktop/Telegram/SourceFiles/overview/overview_layout_delegate.h

29 lines
685 B
C
Raw Normal View History

/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
namespace Overview {
namespace Layout {
class ItemBase;
class Delegate {
public:
2020-05-21 13:13:29 +00:00
virtual void registerHeavyItem(not_null<const ItemBase*> item) = 0;
virtual void unregisterHeavyItem(not_null<const ItemBase*> item) = 0;
virtual void openPhoto(not_null<PhotoData*> photo, FullMsgId id) = 0;
virtual void openDocument(
not_null<DocumentData*> document,
FullMsgId id) = 0;
};
} // namespace Layout
} // namespace Overview