0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00
obs-studio/UI/update/mac-update.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
859 B
C++
Raw Normal View History

2022-11-05 22:32:43 +01:00
#ifndef MAC_UPDATER_H
#define MAC_UPDATER_H
#include <string>
#include <QThread>
#include <QString>
#include <QObject>
class QAction;
class MacUpdateThread : public QThread {
Q_OBJECT
bool manualUpdate;
virtual void run() override;
void info(const QString &title, const QString &text);
signals:
void Result(const QString &branch, bool manual);
private slots:
void infoMsg(const QString &title, const QString &text);
public:
MacUpdateThread(bool manual) : manualUpdate(manual) {}
};
#ifdef __OBJC__
@class OBSUpdateDelegate;
#endif
class OBSSparkle : public QObject {
Q_OBJECT
public:
OBSSparkle(const char *branch, QAction *checkForUpdatesAction);
void setBranch(const char *branch);
void checkForUpdates(bool manualCheck);
private:
#ifdef __OBJC__
OBSUpdateDelegate *updaterDelegate;
#else
void *updaterDelegate;
#endif
};
#endif