2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Add call top bar above the media player.

This commit is contained in:
John Preston
2017-04-25 23:36:04 +03:00
parent 60ac7572af
commit f6eb2c5205
17 changed files with 413 additions and 30 deletions

View File

@@ -32,8 +32,12 @@ public:
Instance();
void startOutgoingCall(gsl::not_null<UserData*> user);
void handleUpdate(const MTPDupdatePhoneCall &update);
void showInfoPanel(gsl::not_null<Call*> call);
base::Observable<Call*> &currentCallChanged() {
return _currentCallChanged;
}
~Instance();
@@ -48,6 +52,7 @@ private:
void callFailed(gsl::not_null<Call*> call) override;
void createCall(gsl::not_null<UserData*> user, Call::Type type);
void refreshDhConfig();
void destroyCall(gsl::not_null<Call*> call);
void handleCallUpdate(const MTPPhoneCall &call);
@@ -55,6 +60,7 @@ private:
std::unique_ptr<Call> _currentCall;
std::unique_ptr<Panel> _currentCallPanel;
base::Observable<Call*> _currentCallChanged;
};