1 /* 2 * Copyright 2020-2024, Andrew Lindesay <apl@lindesay.co.nz>. 3 * All rights reserved. Distributed under the terms of the MIT License. 4 */ 5 #ifndef PACKAGE_ICON_REPOSITORY_H 6 #define PACKAGE_ICON_REPOSITORY_H 7 8 #include <String.h> 9 10 #include "BitmapHolder.h" 11 #include "HaikuDepotConstants.h" 12 13 14 class PackageIconRepository { 15 public: 16 virtual bool HasAnyIcon(const BString& pkgName) = 0; 17 virtual status_t GetIcon(const BString& pkgName, uint32 size, 18 BitmapHolderRef& bitmapHolderRef) = 0; 19 virtual void Clear() = 0; 20 }; 21 22 23 #endif // PACKAGE_ICON_REPOSITORY_H 24