1//---------------------------------------------------------------------- 2// This software is part of the Haiku distribution and is covered 3// by the MIT License. 4//--------------------------------------------------------------------- 5 6#ifndef _ADD_ON_IMAGE_H 7#define _ADD_ON_IMAGE_H 8 9#include <image.h> 10 11namespace BPrivate { 12 13class AddOnImage { 14public: 15 AddOnImage(); 16 ~AddOnImage(); 17 18 status_t Load(const char* path); 19 void Unload(); 20 21 void SetID(image_id id); 22 image_id ID() const { return fID; } 23 24private: 25 image_id fID; 26}; 27 28} // namespace BPrivate 29 30using BPrivate::AddOnImage; 31 32#endif // _ADD_ON_IMAGE_H 33