OBSSparkle.hpp 399 B

123456789101112131415161718192021222324
  1. #pragma once
  2. #import <QObject>
  3. class QAction;
  4. #ifdef __OBJC__
  5. @class OBSUpdateDelegate;
  6. #endif
  7. class OBSSparkle : public QObject {
  8. Q_OBJECT
  9. public:
  10. OBSSparkle(const char *branch, QAction *checkForUpdatesAction);
  11. void setBranch(const char *branch);
  12. void checkForUpdates(bool manualCheck);
  13. private:
  14. #ifdef __OBJC__
  15. OBSUpdateDelegate *updaterDelegate;
  16. #else
  17. void *updaterDelegate;
  18. #endif
  19. };