1/*
2 * Copyright 2013, Stephan A��mus <superstippi@gmx.de>.
3 * Copyright 2011, Ingo Weinhold, <ingo_weinhold@gmx.de>
4 * Copyright 2013, Rene Gollent, <rene@gollent.com>
5 * Copyright 2017, Julian Harnath <julian.harnath@rwth-aachen.de>.
6 * Copyright 2021, Andrew Lindesay <apl@lindesay.co.nz>.
7 *
8 * All rights reserved. Distributed under the terms of the MIT License.
9 *
10 * Note that this file has been re-factored from `PackageManager.h` and
11 * copyrights have been carried across in 2021.
12 */
13#ifndef PACKAGE_PROGRESS_LISTENER_H
14#define PACKAGE_PROGRESS_LISTENER_H
15
16
17#include <package/manager/PackageManager.h>
18
19
20using BPackageKit::BManager::BPrivate::BPackageManager;
21
22
23class PackageProgressListener {
24	public:
25	virtual	~PackageProgressListener();
26
27	virtual	void				DownloadProgressChanged(
28									const char* packageName,
29									float progress);
30	virtual	void				DownloadProgressComplete(
31									const char* packageName);
32
33	virtual	void				ConfirmedChanges(
34									BPackageManager::InstalledRepository&
35										repository);
36
37	virtual	void				StartApplyingChanges(
38									BPackageManager::InstalledRepository&
39										repository);
40	virtual	void				ApplyingChangesDone(
41									BPackageManager::InstalledRepository&
42										repository);
43};
44
45
46typedef BObjectList<PackageProgressListener> PackageProgressListenerList;
47
48
49#endif // PACKAGE_PROGRESS_LISTENER_H
50