Guiliani  Version 2.5 revision 7293 (documentation build 13)
GUIImageLoader.h
1/*
2* Copyright (C) TES Electronic Solutions GmbH,
3* All Rights Reserved.
4* Contact: info@guiliani.de
5*
6* This file is part of the Guiliani HMI framework
7* for the development of graphical user interfaces on embedded systems.
8*/
9
10#ifndef GUIIMAGELOADER__H_
11#define GUIIMAGELOADER__H_
12
13#include "eC_Types.h"
14#include "eC_String.h"
15#include "eC_TList_doubleLinked.h"
16
17#include "GUIComponentManager.h"
18
19class CGUIImageData;
21
22#define GETIMGLOADER CGUIComponentManager::GetInstance().GetImageLoader()
23
25
31{
32 friend class CGUIComponentManager;
33
34public:
37 static void CreateInstance();
38
41 static void DeleteInstance();
42
49 eC_Bool LoadImg(CGUIImageData &pImageData, const eC_String &kFilePath);
50
54 void AddDecoder(CGUIImageDecoder *pImageDecoder);
55
60
61private:
65 struct ImageDecoderEntry_t
66 {
68 CGUIImageDecoder* m_pkImageDecoder;
69
71 eC_UInt m_uiNumCalls;
72
74 eC_Bool operator==(const ImageDecoderEntry_t &kSource) const
75 {
76 return m_uiNumCalls == kSource.m_uiNumCalls;
77 }
78
80 eC_Bool operator>(const ImageDecoderEntry_t &kSource) const
81 {
82 return m_uiNumCalls > kSource.m_uiNumCalls;
83 }
84 };
85
86private:
89
92
95 CGUIImageLoader(const CGUIImageLoader& kSource);
96
99 CGUIImageLoader& operator=(const CGUIImageLoader& kSource);
100
102 void DeInit();
103
104private:
106};
107
108#endif
central component-manager
Definition: GUIComponentManager.h:62
Contains information about an image loaded by CGUIImageLoader.
Definition: GUIImageData.h:29
Base class for the image decoders.
Definition: GUIImageDecoder.h:25
Manages a list of instances of CGUIImageDecoder.
Definition: GUIImageLoader.h:31
void AddDecoder(CGUIImageDecoder *pImageDecoder)
static void DeleteInstance()
eC_Bool LoadImg(CGUIImageData &pImageData, const eC_String &kFilePath)
void AddSupportedFileExtensions(eC_TListDoubleLinked< eC_String > &kExtensions)
static void CreateInstance()
bool operator==(const NSmartPtr::SharedPtr< C1 > &a, const NSmartPtr::SharedPtr< C2 > &b)
Definition: SharedPtr.h:240