32 lines
843 B
C++
32 lines
843 B
C++
/*
|
|
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:
|
|
virtual void registerHeavyItem(not_null<const ItemBase*> item) = 0;
|
|
virtual void unregisterHeavyItem(not_null<const ItemBase*> item) = 0;
|
|
virtual void repaintItem(not_null<const ItemBase*> item) = 0;
|
|
virtual bool itemVisible(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,
|
|
bool showInMediaView = false) = 0;
|
|
|
|
};
|
|
|
|
} // namespace Layout
|
|
} // namespace Overview
|