2014-05-30 08:53:19 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
2018-01-03 10:23:14 +00:00
|
|
|
the official desktop application for the Telegram messaging service.
|
2014-05-30 08:53:19 +00:00
|
|
|
|
2018-01-03 10:23:14 +00:00
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
2014-05-30 08:53:19 +00:00
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
2018-01-11 13:07:29 +00:00
|
|
|
namespace HistoryView {
|
2018-01-13 12:45:11 +00:00
|
|
|
class Element;
|
2018-01-11 13:07:29 +00:00
|
|
|
} // namespace HistoryView
|
2014-05-30 08:53:19 +00:00
|
|
|
|
|
|
|
namespace App {
|
2018-01-11 19:33:26 +00:00
|
|
|
void hoveredItem(HistoryView::Element *item);
|
|
|
|
HistoryView::Element *hoveredItem();
|
|
|
|
void pressedItem(HistoryView::Element *item);
|
|
|
|
HistoryView::Element *pressedItem();
|
|
|
|
void hoveredLinkItem(HistoryView::Element *item);
|
|
|
|
HistoryView::Element *hoveredLinkItem();
|
|
|
|
void pressedLinkItem(HistoryView::Element *item);
|
|
|
|
HistoryView::Element *pressedLinkItem();
|
|
|
|
void mousedItem(HistoryView::Element *item);
|
|
|
|
HistoryView::Element *mousedItem();
|
2016-06-14 16:26:41 +00:00
|
|
|
void clearMousedItems();
|
2014-05-30 08:53:19 +00:00
|
|
|
|
2016-03-02 18:34:42 +00:00
|
|
|
enum LaunchState {
|
|
|
|
Launched = 0,
|
|
|
|
QuitRequested = 1,
|
|
|
|
QuitProcessed = 2,
|
|
|
|
};
|
2014-05-30 08:53:19 +00:00
|
|
|
void quit();
|
2016-03-02 18:34:42 +00:00
|
|
|
bool quitting();
|
|
|
|
LaunchState launchState();
|
|
|
|
void setLaunchState(LaunchState state);
|
2016-10-28 12:44:28 +00:00
|
|
|
void restart();
|
2014-05-30 08:53:19 +00:00
|
|
|
|
2015-11-20 13:34:37 +00:00
|
|
|
};
|