xref: /haiku/src/kits/tracker/Thumbnails.h (revision 5192c3bfffda0eaad42f601d81cc8c82fae5ad2b)
1*5192c3bfSAugustin Cavalier /*
2*5192c3bfSAugustin Cavalier  * Copyright 2021-2022, Haiku, Inc. All rights reserved.
3*5192c3bfSAugustin Cavalier  * Distributed under the terms of the MIT License.
4*5192c3bfSAugustin Cavalier  *
5*5192c3bfSAugustin Cavalier  * Authors:
6*5192c3bfSAugustin Cavalier  *		Augustin Cavalier <waddlesplash>
7*5192c3bfSAugustin Cavalier  *		John Scipione <jscipione@gmail.com>
8*5192c3bfSAugustin Cavalier  */
9*5192c3bfSAugustin Cavalier #ifndef _TRACKER_THUMBNAILS_H
10*5192c3bfSAugustin Cavalier #define _TRACKER_THUMBNAILS_H
11*5192c3bfSAugustin Cavalier 
12*5192c3bfSAugustin Cavalier 
13*5192c3bfSAugustin Cavalier #include <Bitmap.h>
14*5192c3bfSAugustin Cavalier #include <Mime.h>
15*5192c3bfSAugustin Cavalier 
16*5192c3bfSAugustin Cavalier 
17*5192c3bfSAugustin Cavalier namespace BPrivate {
18*5192c3bfSAugustin Cavalier 
19*5192c3bfSAugustin Cavalier 
20*5192c3bfSAugustin Cavalier class Model;
21*5192c3bfSAugustin Cavalier 
22*5192c3bfSAugustin Cavalier 
23*5192c3bfSAugustin Cavalier status_t GetThumbnailFromAttr(Model* model, BBitmap* icon, icon_size which);
24*5192c3bfSAugustin Cavalier status_t GetThumbnailIcon(Model* model, BBitmap* icon, icon_size which);
25*5192c3bfSAugustin Cavalier bool ShouldGenerateThumbnail(const char* type);
26*5192c3bfSAugustin Cavalier 
27*5192c3bfSAugustin Cavalier 
28*5192c3bfSAugustin Cavalier } // namespace BPrivate
29*5192c3bfSAugustin Cavalier 
30*5192c3bfSAugustin Cavalier using namespace BPrivate;
31*5192c3bfSAugustin Cavalier 
32*5192c3bfSAugustin Cavalier 
33*5192c3bfSAugustin Cavalier #endif	// _TRACKER_THUMBNAILS_H
34