mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2024-12-02 08:31:58 +00:00
93f58e77da
The current update dialogs do not support retry/cancel - if a file cannot be installed the update will just fail with an error and any partial install will be reverted.
27 lines
513 B
C++
27 lines
513 B
C++
#pragma once
|
|
|
|
#include "UpdateObserver.h"
|
|
|
|
class UpdateDialogPrivate;
|
|
|
|
class UpdateDialogCocoa : public UpdateObserver
|
|
{
|
|
public:
|
|
UpdateDialogCocoa();
|
|
~UpdateDialogCocoa();
|
|
|
|
void init();
|
|
void exec();
|
|
|
|
// implements UpdateObserver
|
|
virtual void updateError(const std::string& errorMessage);
|
|
virtual void updateProgress(int percentage);
|
|
virtual void updateFinished();
|
|
|
|
static void* createAutoreleasePool();
|
|
static void releaseAutoreleasePool(void* data);
|
|
|
|
private:
|
|
UpdateDialogPrivate* d;
|
|
};
|
|
|