2011-08-19 18:59:21 +00:00
|
|
|
#pragma once
|
|
|
|
|
2011-08-23 15:20:23 +00:00
|
|
|
#include "UpdateObserver.h"
|
|
|
|
|
|
|
|
class UpdateDialogPrivate;
|
|
|
|
|
|
|
|
class UpdateDialogCocoa : public UpdateObserver
|
2011-08-19 18:59:21 +00:00
|
|
|
{
|
2011-08-23 15:20:23 +00:00
|
|
|
public:
|
|
|
|
UpdateDialogCocoa();
|
|
|
|
~UpdateDialogCocoa();
|
|
|
|
|
|
|
|
void init();
|
|
|
|
void exec();
|
|
|
|
|
|
|
|
// implements UpdateObserver
|
|
|
|
virtual void updateError(const std::string& errorMessage);
|
|
|
|
virtual void updateProgress(int percentage);
|
|
|
|
virtual void updateFinished();
|
|
|
|
|
2011-08-23 15:30:17 +00:00
|
|
|
static void* createAutoreleasePool();
|
|
|
|
static void releaseAutoreleasePool(void* data);
|
|
|
|
|
2011-08-23 15:20:23 +00:00
|
|
|
private:
|
|
|
|
UpdateDialogPrivate* d;
|
2011-08-19 18:59:21 +00:00
|
|
|
};
|
|
|
|
|