tdesktop/Telegram/SourceFiles/boxes/background_box.h

37 lines
690 B
C
Raw Normal View History

2015-02-03 18:02:46 +03:00
/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
2015-02-03 18:02:46 +03:00
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
2015-02-03 18:02:46 +03:00
*/
#pragma once
2017-04-06 17:38:10 +03:00
#include "boxes/abstract_box.h"
2019-07-24 16:00:30 +02:00
namespace Main {
class Session;
} // namespace Main
2019-02-09 16:36:07 +03:00
namespace Data {
class WallPaper;
} // namespace Data
class BackgroundBox : public BoxContent {
2015-02-03 18:02:46 +03:00
public:
2019-07-24 16:00:30 +02:00
BackgroundBox(QWidget*, not_null<Main::Session*> session);
2015-02-03 18:02:46 +03:00
protected:
void prepare() override;
2015-02-03 18:02:46 +03:00
private:
class Inner;
2019-02-09 16:36:07 +03:00
void removePaper(const Data::WallPaper &paper);
2019-07-24 16:00:30 +02:00
const not_null<Main::Session*> _session;
QPointer<Inner> _inner;
2015-02-03 18:02:46 +03:00
};