ringtones_box.h 788 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 "ui/layers/generic_box.h"
  9. namespace Data {
  10. struct NotifySound;
  11. class Thread;
  12. } // namespace Data
  13. namespace Main {
  14. class Session;
  15. } // namespace Main
  16. namespace Ui {
  17. class GenericBox;
  18. } // namespace Ui
  19. [[nodiscard]] QString ExtractRingtoneName(not_null<DocumentData*> document);
  20. void RingtonesBox(
  21. not_null<Ui::GenericBox*> box,
  22. not_null<Main::Session*> session,
  23. Data::NotifySound selected,
  24. Fn<void(Data::NotifySound)> save);
  25. void ThreadRingtonesBox(
  26. not_null<Ui::GenericBox*> box,
  27. not_null<Data::Thread*> thread);