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-18 17:57:37 +00:00
|
|
|
#include "ImageInfo.h"
|
|
|
|
|
2009-06-16 00:25:36 +00:00
|
|
|
|
2009-06-18 00:35:12 +00:00
|
|
|
class Team;
|
|
|
|
|
|
|
|
|
2009-06-16 21:47:49 +00:00
|
|
|
class Image : public Referenceable, public DoublyLinkedListLinkImpl<Image> {
|
2009-06-16 00:25:36 +00:00
|
|
|
public:
|
2009-06-18 17:57:37 +00:00
|
|
|
Image(Team* team, const ImageInfo& imageInfo);
|
2009-06-16 00:25:36 +00:00
|
|
|
~Image();
|
|
|
|
|
|
|
|
status_t Init();
|
|
|
|
|
2009-06-18 17:57:37 +00:00
|
|
|
|
2009-06-18 00:35:12 +00:00
|
|
|
Team* GetTeam() const { return fTeam; }
|
2009-06-18 17:57:37 +00:00
|
|
|
image_id ID() const { return fInfo.ImageID(); }
|
|
|
|
const char* Name() const { return fInfo.Name(); }
|
|
|
|
const ImageInfo& Info() const { return fInfo; }
|
2009-06-16 00:25:36 +00:00
|
|
|
|
|
|
|
private:
|
2009-06-18 00:35:12 +00:00
|
|
|
Team* fTeam;
|
2009-06-18 17:57:37 +00:00
|
|
|
ImageInfo fInfo;
|
2009-06-16 00:25:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
typedef DoublyLinkedList<Image> ImageList;
|
|
|
|
|
|
|
|
|
|
|
|
#endif // IMAGE_H
|