You.i Engine
YiThumbnails.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2020. All rights reserved.
2 #ifndef _YI_THUMBNAILS_H_
3 #define _YI_THUMBNAILS_H_
4 
5 #include "utility/YiString.h"
6 
7 class CYIImageView;
8 
20 {
21 public:
22  IYIThumbnails(CYIImageView *pThumbnailNode);
23  virtual ~IYIThumbnails();
24 
30  virtual void Init(const CYIString &path) = 0;
31 
35  virtual void Update(uint64_t time) = 0;
36 
37 protected:
38  void SetFilePath(const CYIString &path);
39 
41 
43 };
44 
50  : m_pThumbnailNode(pThumbnailNode)
51 {
52 }
53 
55 {
56 }
57 
58 inline void IYIThumbnails::SetFilePath(const CYIString &path)
59 {
60  m_AbsolutePath = path;
61 }
62 
63 #endif // _YI_THUMBNAILS_H_
virtual void Update(uint64_t time)=0
Container class for Unicode strings. Conceptually, a CYIString object is a sequence of Unicode charac...
Definition: YiString.h:36
virtual void Init(const CYIString &path)=0
A simple view which downloads and renders images.
Definition: YiImageView.h:97
CYIString m_AbsolutePath
Definition: YiThumbnails.h:40
CYIImageView * m_pThumbnailNode
Definition: YiThumbnails.h:42
IYIThumbnails(CYIImageView *pThumbnailNode)
Definition: YiThumbnails.h:49
void SetFilePath(const CYIString &path)
Definition: YiThumbnails.h:58
virtual ~IYIThumbnails()
Definition: YiThumbnails.h:54
Provides an interface for thumbnail implementations.
Definition: YiThumbnails.h:19