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