settings_folders.h 722 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. This file is part of Telegram Desktop,
  3. the official desktop application for the Telegram messaging service.
  4. For license and copyright information please follow this link:
  5. https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
  6. */
  7. #pragma once
  8. #include "settings/settings_common_session.h"
  9. namespace Settings {
  10. class Folders : public Section<Folders> {
  11. public:
  12. Folders(
  13. QWidget *parent,
  14. not_null<Window::SessionController*> controller);
  15. ~Folders();
  16. void showFinished() override;
  17. [[nodiscard]] rpl::producer<QString> title() override;
  18. private:
  19. void setupContent(not_null<Window::SessionController*> controller);
  20. Fn<void()> _save;
  21. rpl::event_stream<> _showFinished;
  22. };
  23. } // namespace Settings