MythTV  master
Public Member Functions | Private Attributes | List of all members
ThumbItem Class Reference

#include <thumbview.h>

Collaboration diagram for ThumbItem:
Collaboration graph
[legend]

Public Member Functions

 ThumbItem ()
 
 ThumbItem (const QString &name, const QString &path, bool isDir, MythMediaDevice *dev=nullptr)
 
 ~ThumbItem ()
 
bool Remove (void)
 
void InitCaption (bool get_caption)
 
void InitTimestamp ()
 
void SetRotationAngle (int angle)
 
void SetName (const QString &name)
 
void SetCaption (const QString &caption)
 
void SetTimestamp (const QDateTime &timestamp)
 
void SetPath (const QString &path, bool isDir)
 
void SetImageFilename (const QString &filename)
 
void SetPixmap (QPixmap *pixmap)
 
void SetMediaDevice (MythMediaDevice *dev)
 
long GetRotationAngle (void)
 
QString GetName (void) const
 
bool HasCaption (void) const
 
QString GetCaption (void) const
 
bool HasTimestamp (void) const
 
QDateTime GetTimestamp (void) const
 
QString GetImageFilename (void) const
 
QString GetPath (void) const
 
bool IsDir (void) const
 
QString GetDescription (const QString &status, const QSize &sz, int angle) const
 
QPixmap * GetPixmap (void)
 
MythMediaDeviceGetMediaDevice (void)
 

Private Attributes

QString m_name
 
QString m_caption
 
QDateTime m_timestamp
 
QString m_path
 
QString m_imageFilename
 
bool m_isDir
 
QPixmap * m_pixmap
 
MythMediaDevicem_mediaDevice
 

Detailed Description

Definition at line 17 of file thumbview.h.

Constructor & Destructor Documentation

◆ ThumbItem() [1/2]

ThumbItem::ThumbItem ( )
inline

Definition at line 22 of file thumbview.h.

◆ ThumbItem() [2/2]

ThumbItem::ThumbItem ( const QString &  name,
const QString &  path,
bool  isDir,
MythMediaDevice dev = nullptr 
)
inline

Definition at line 25 of file thumbview.h.

◆ ~ThumbItem()

ThumbItem::~ThumbItem ( )

Definition at line 15 of file thumbview.cpp.

Member Function Documentation

◆ Remove()

bool ThumbItem::Remove ( void  )

Definition at line 24 of file thumbview.cpp.

◆ InitCaption()

void ThumbItem::InitCaption ( bool  get_caption)

◆ InitTimestamp()

void ThumbItem::InitTimestamp ( )

Definition at line 52 of file thumbview.cpp.

Referenced by ImageView::GetSeasonalWeight().

◆ SetRotationAngle()

void ThumbItem::SetRotationAngle ( int  angle)

◆ SetName()

void ThumbItem::SetName ( const QString &  name)
inline

Definition at line 39 of file thumbview.h.

◆ SetCaption()

void ThumbItem::SetCaption ( const QString &  caption)
inline

Definition at line 41 of file thumbview.h.

Referenced by InitCaption().

◆ SetTimestamp()

void ThumbItem::SetTimestamp ( const QDateTime &  timestamp)
inline

Definition at line 43 of file thumbview.h.

Referenced by InitTimestamp().

◆ SetPath()

void ThumbItem::SetPath ( const QString &  path,
bool  isDir 
)
inline

Definition at line 45 of file thumbview.h.

Referenced by IconView::HandleMediaDeviceSelect().

◆ SetImageFilename()

void ThumbItem::SetImageFilename ( const QString &  filename)
inline

Definition at line 47 of file thumbview.h.

Referenced by IconView::LoadThumbnail().

◆ SetPixmap()

void ThumbItem::SetPixmap ( QPixmap *  pixmap)

◆ SetMediaDevice()

void ThumbItem::SetMediaDevice ( MythMediaDevice dev)
inline

Definition at line 50 of file thumbview.h.

◆ GetRotationAngle()

long ThumbItem::GetRotationAngle ( void  )

◆ GetName()

QString ThumbItem::GetName ( void  ) const
inline

◆ HasCaption()

bool ThumbItem::HasCaption ( void  ) const
inline

Definition at line 56 of file thumbview.h.

Referenced by InitCaption(), and SingleView::paintEvent().

◆ GetCaption()

QString ThumbItem::GetCaption ( void  ) const
inline

◆ HasTimestamp()

bool ThumbItem::HasTimestamp ( void  ) const
inline

Definition at line 58 of file thumbview.h.

Referenced by ImageView::GetSeasonalWeight(), and InitTimestamp().

◆ GetTimestamp()

QDateTime ThumbItem::GetTimestamp ( void  ) const
inline

Definition at line 59 of file thumbview.h.

Referenced by ImageView::GetSeasonalWeight().

◆ GetImageFilename()

QString ThumbItem::GetImageFilename ( void  ) const
inline

◆ GetPath()

QString ThumbItem::GetPath ( void  ) const
inline

◆ IsDir()

bool ThumbItem::IsDir ( void  ) const
inline

◆ GetDescription()

QString ThumbItem::GetDescription ( const QString &  status,
const QSize &  sz,
int  angle 
) const

Definition at line 113 of file thumbview.cpp.

Referenced by GLTexture::GetDescription(), and SingleView::paintEvent().

◆ GetPixmap()

QPixmap* ThumbItem::GetPixmap ( void  )
inline

Definition at line 67 of file thumbview.h.

◆ GetMediaDevice()

MythMediaDevice* ThumbItem::GetMediaDevice ( void  )
inline

Definition at line 68 of file thumbview.h.

Referenced by IconView::HandleItemSelect(), and IconView::HandleMediaDeviceSelect().

Member Data Documentation

◆ m_name

QString ThumbItem::m_name
private

Definition at line 71 of file thumbview.h.

Referenced by GetName(), InitCaption(), and SetName().

◆ m_caption

QString ThumbItem::m_caption
private

Definition at line 72 of file thumbview.h.

Referenced by GetCaption(), HasCaption(), and SetCaption().

◆ m_timestamp

QDateTime ThumbItem::m_timestamp
private

Definition at line 73 of file thumbview.h.

Referenced by GetTimestamp(), HasTimestamp(), and SetTimestamp().

◆ m_path

QString ThumbItem::m_path
private

◆ m_imageFilename

QString ThumbItem::m_imageFilename
private

Definition at line 75 of file thumbview.h.

Referenced by GetImageFilename(), and SetImageFilename().

◆ m_isDir

bool ThumbItem::m_isDir
private

Definition at line 76 of file thumbview.h.

Referenced by IsDir(), and SetPath().

◆ m_pixmap

QPixmap* ThumbItem::m_pixmap
private

Definition at line 77 of file thumbview.h.

Referenced by GetPixmap(), SetPixmap(), and ~ThumbItem().

◆ m_mediaDevice

MythMediaDevice* ThumbItem::m_mediaDevice
private

Definition at line 78 of file thumbview.h.

Referenced by GetMediaDevice(), and SetMediaDevice().


The documentation for this class was generated from the following files: