mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-27 03:14:49 +00:00
6aa9bd0f77
Now with some actual consensus on what the updater will do!
33 lines
652 B
C++
33 lines
652 B
C++
#pragma once
|
|
|
|
#include "UpdateDialog.h"
|
|
#include "UpdateObserver.h"
|
|
|
|
class UpdateDialogPrivate;
|
|
|
|
class UpdateDialogCocoa : public UpdateDialog
|
|
{
|
|
public:
|
|
UpdateDialogCocoa();
|
|
~UpdateDialogCocoa();
|
|
|
|
// implements UpdateDialog
|
|
virtual void init(int argc, char** argv);
|
|
virtual void exec();
|
|
virtual void quit();
|
|
|
|
// 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:
|
|
void enableDockIcon();
|
|
|
|
UpdateDialogPrivate* d;
|
|
};
|
|
|