2009-06-16 00:25:36 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef IMAGE_H
|
|
|
|
#define IMAGE_H
|
|
|
|
|
|
|
|
#include <image.h>
|
|
|
|
|
2009-06-16 21:47:49 +00:00
|
|
|
#include <Referenceable.h>
|
2009-06-16 00:25:36 +00:00
|
|
|
#include <util/DoublyLinkedList.h>
|
|
|
|
|
|
|
|
|
2009-06-16 21:47:49 +00:00
|
|
|
class Image : public Referenceable, public DoublyLinkedListLinkImpl<Image> {
|
2009-06-16 00:25:36 +00:00
|
|
|
public:
|
|
|
|
Image(const image_info& imageInfo);
|
|
|
|
~Image();
|
|
|
|
|
|
|
|
status_t Init();
|
|
|
|
|
|
|
|
image_id ID() const { return fInfo.id; }
|
|
|
|
const char* Name() const { return fInfo.name; }
|
|
|
|
const image_info& Info() const { return fInfo; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
image_info fInfo;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
typedef DoublyLinkedList<Image> ImageList;
|
|
|
|
|
|
|
|
|
|
|
|
#endif // IMAGE_H
|