custom_app_icon.h 771 B

1234567891011121314151617181920212223242526272829
  1. // This file is part of Desktop App Toolkit,
  2. // a set of libraries for developing nice desktop applications.
  3. //
  4. // For license and copyright information please follow this link:
  5. // https://github.com/desktop-app/legal/blob/master/LEGAL
  6. //
  7. #pragma once
  8. #include "base/platform/base_platform_custom_app_icon.h"
  9. namespace base {
  10. inline std::optional<uint64> SetCustomAppIcon(QImage image) {
  11. return Platform::SetCustomAppIcon(std::move(image));
  12. }
  13. inline std::optional<uint64> SetCustomAppIcon(const QString &path) {
  14. return Platform::SetCustomAppIcon(path);
  15. }
  16. inline std::optional<uint64> CurrentCustomAppIconDigest() {
  17. return Platform::CurrentCustomAppIconDigest();
  18. }
  19. inline bool ClearCustomAppIcon() {
  20. return Platform::ClearCustomAppIcon();
  21. }
  22. } // namespace base