summaryrefslogtreecommitdiffstats
path: root/mmc_updater/src/UpdateDialogCocoa.h
blob: 586fdc8ea9866565eeed2f63450616818e796d0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#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;
};