/* * Copyright 2013, Stephan Aßmus . * Copyright 2011, Ingo Weinhold, * Copyright 2013, Rene Gollent, * Copyright 2017, Julian Harnath . * Copyright 2021, Andrew Lindesay . * * All rights reserved. Distributed under the terms of the MIT License. * * Note that this file has been re-factored from `PackageManager.h` and * copyrights have been carried across in 2021. */ #ifndef PACKAGE_PROGRESS_LISTENER_H #define PACKAGE_PROGRESS_LISTENER_H #include using BPackageKit::BManager::BPrivate::BPackageManager; class PackageProgressListener { public: virtual ~PackageProgressListener(); virtual void DownloadProgressChanged( const char* packageName, float progress); virtual void DownloadProgressComplete( const char* packageName); virtual void ConfirmedChanges( BPackageManager::InstalledRepository& repository); virtual void StartApplyingChanges( BPackageManager::InstalledRepository& repository); virtual void ApplyingChangesDone( BPackageManager::InstalledRepository& repository); }; typedef BObjectList PackageProgressListenerList; #endif // PACKAGE_PROGRESS_LISTENER_H