summaryrefslogtreecommitdiffstats
path: root/mmc_updater/src/UpdateDialog.h
blob: d0782f8fe086001b783869d48d924ac3e474bbe1 (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
#pragma once

#include "UpdateObserver.h"

/** Base class for the updater's UI, sub-classed
 * by the different platform implementations.
 */
class UpdateDialog : public UpdateObserver
{
	public:
		UpdateDialog();
		virtual ~UpdateDialog() {};

		/** Sets whether the updater should automatically
		  * exit once the update has been installed.
		  */
		void setAutoClose(bool autoClose);
		bool autoClose() const;

		virtual void init(int argc, char** argv) = 0;
		virtual void exec() = 0;
		virtual void quit() = 0;

		virtual void updateFinished();	
	
	private:
		bool m_autoClose;
};