15192c3bfSAugustin Cavalier /* 25192c3bfSAugustin Cavalier * Copyright 2021-2022, Haiku, Inc. All rights reserved. 35192c3bfSAugustin Cavalier * Distributed under the terms of the MIT License. 45192c3bfSAugustin Cavalier * 55192c3bfSAugustin Cavalier * Authors: 65192c3bfSAugustin Cavalier * Augustin Cavalier <waddlesplash> 75192c3bfSAugustin Cavalier * John Scipione <jscipione@gmail.com> 85192c3bfSAugustin Cavalier */ 95192c3bfSAugustin Cavalier #ifndef _TRACKER_THUMBNAILS_H 105192c3bfSAugustin Cavalier #define _TRACKER_THUMBNAILS_H 115192c3bfSAugustin Cavalier 125192c3bfSAugustin Cavalier 135192c3bfSAugustin Cavalier #include <Bitmap.h> 145192c3bfSAugustin Cavalier #include <Mime.h> 155192c3bfSAugustin Cavalier 165192c3bfSAugustin Cavalier 175192c3bfSAugustin Cavalier namespace BPrivate { 185192c3bfSAugustin Cavalier 195192c3bfSAugustin Cavalier 205192c3bfSAugustin Cavalier class Model; 215192c3bfSAugustin Cavalier 225192c3bfSAugustin Cavalier 23*0c973c94SAugustin Cavalier status_t GetThumbnailFromAttr(Model* model, BBitmap* icon, BSize size); 245192c3bfSAugustin Cavalier bool ShouldGenerateThumbnail(const char* type); 255192c3bfSAugustin Cavalier 265192c3bfSAugustin Cavalier 275192c3bfSAugustin Cavalier } // namespace BPrivate 285192c3bfSAugustin Cavalier 295192c3bfSAugustin Cavalier using namespace BPrivate; 305192c3bfSAugustin Cavalier 315192c3bfSAugustin Cavalier 325192c3bfSAugustin Cavalier #endif // _TRACKER_THUMBNAILS_H 33