1 //---------------------------------------------------------------------- 2 // This software is part of the OpenBeOS distribution and is covered 3 // by the OpenBeOS license. 4 //--------------------------------------------------------------------- 5 6 #ifndef _ADD_ON_IMAGE_H 7 #define _ADD_ON_IMAGE_H 8 9 #include <image.h> 10 11 namespace BPrivate { 12 13 class AddOnImage { 14 public: 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 24 private: 25 image_id fID; 26 }; 27 28 } // namespace BPrivate 29 30 using BPrivate::AddOnImage; 31 32 #endif // _ADD_ON_IMAGE_H 33