mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
HistoryHider moved to Window namespace.
This commit is contained in:
@@ -17,7 +17,6 @@ class MainWindow;
|
||||
class ConfirmBox;
|
||||
class DialogsWidget;
|
||||
class HistoryWidget;
|
||||
class HistoryHider;
|
||||
class StackItem;
|
||||
struct FileLoadResult;
|
||||
|
||||
@@ -67,6 +66,7 @@ class ConnectingWidget;
|
||||
struct SectionSlideParams;
|
||||
struct SectionShow;
|
||||
enum class Column;
|
||||
class HistoryHider;
|
||||
} // namespace Window
|
||||
|
||||
namespace Calls {
|
||||
@@ -174,20 +174,17 @@ public:
|
||||
void cancelUploadLayer(not_null<HistoryItem*> item);
|
||||
void shareUrlLayer(const QString &url, const QString &text);
|
||||
void inlineSwitchLayer(const QString &botAndQuery);
|
||||
void hiderLayer(object_ptr<HistoryHider> h);
|
||||
void noHider(HistoryHider *destroyed);
|
||||
void hiderLayer(base::unique_qptr<Window::HistoryHider> h);
|
||||
bool setForwardDraft(PeerId peer, MessageIdsList &&items);
|
||||
bool shareUrl(
|
||||
not_null<PeerData*> peer,
|
||||
PeerId peerId,
|
||||
const QString &url,
|
||||
const QString &text);
|
||||
void replyToItem(not_null<HistoryItem*> item);
|
||||
bool onInlineSwitchChosen(const PeerId &peer, const QString &botAndQuery);
|
||||
bool onSendPaths(const PeerId &peer);
|
||||
bool inlineSwitchChosen(PeerId peerId, const QString &botAndQuery);
|
||||
bool sendPaths(PeerId peerId);
|
||||
void onFilesOrForwardDrop(const PeerId &peer, const QMimeData *data);
|
||||
bool selectingPeer(bool withConfirm = false) const;
|
||||
bool selectingPeerForInlineSwitch();
|
||||
void offerPeer(PeerId peer);
|
||||
bool selectingPeer() const;
|
||||
void dialogsActivate();
|
||||
|
||||
void deletePhotoLayer(PhotoData *photo);
|
||||
@@ -203,7 +200,6 @@ public:
|
||||
not_null<PeerData*> peer,
|
||||
bool deleteHistory = true);
|
||||
void deleteAndExit(ChatData *chat);
|
||||
void deleteAllFromUser(ChannelData *channel, UserData *from);
|
||||
|
||||
void addParticipants(
|
||||
not_null<PeerData*> chatOrChannel,
|
||||
@@ -441,6 +437,7 @@ private:
|
||||
|
||||
void hideAll();
|
||||
void showAll();
|
||||
void clearHider(not_null<Window::HistoryHider*> instance);
|
||||
|
||||
void clearCachedBackground();
|
||||
|
||||
@@ -505,8 +502,7 @@ private:
|
||||
object_ptr<Media::Player::Panel> _playerPanel;
|
||||
bool _playerUsingPanel = false;
|
||||
|
||||
QPointer<ConfirmBox> _forwardConfirm; // for single column layout
|
||||
object_ptr<HistoryHider> _hider = { nullptr };
|
||||
base::unique_qptr<Window::HistoryHider> _hider;
|
||||
std::vector<std::unique_ptr<StackItem>> _stack;
|
||||
|
||||
int _playerHeight = 0;
|
||||
|
Reference in New Issue
Block a user