MythTV  master
Static Public Member Functions | Static Private Member Functions | List of all members
GalleryUtil Class Reference

#include <galleryutil.h>

Static Public Member Functions

static QStringList GetImageFilter (void)
 
static QStringList GetMovieFilter (void)
 
static QStringList GetMediaFilter (void)
 
static bool IsImage (const QString &filePath)
 
static bool IsMovie (const QString &filePath)
 
static long GetNaturalRotation (const unsigned char *buffer, int size)
 
static long GetNaturalRotation (const QString &filePath)
 
static QString GetCaption (const QString &filePath)
 
static QDateTime GetTimestamp (const QString &filePath)
 
static bool LoadDirectory (ThumbList &itemList, const QString &dir, const GalleryFilter &flt, bool recurse, ThumbHash *itemHash, ThumbGenerator *thumbGen)
 
static QSize ScaleToDest (const QSize &src, const QSize &dest, ScaleMax scaleMax)
 
static bool CopyMove (const QFileInfo &src, QFileInfo &dst, bool move)
 
static bool Copy (const QFileInfo &src, QFileInfo &dst)
 
static bool Move (const QFileInfo &src, QFileInfo &dst)
 
static bool Delete (const QFileInfo &file)
 
static bool Rename (const QString &currDir, const QString &oldName, const QString &newName)
 
static void PlayVideo (const QString &filename)
 

Static Private Member Functions

static bool CopyDirectory (const QFileInfo &src, QFileInfo &dst)
 
static bool MoveDirectory (const QFileInfo &src, QFileInfo &dst)
 
static bool DeleteDirectory (const QFileInfo &dir)
 
static bool RenameDirectory (const QString &currDir, const QString &oldName, const QString &newName)
 
static long GetNaturalRotation (void *exifData)
 

Detailed Description

Definition at line 35 of file galleryutil.h.

Member Function Documentation

◆ GetImageFilter()

QStringList GalleryUtil::GetImageFilter ( void  )
static

Definition at line 58 of file galleryutil.cpp.

Referenced by GetMediaFilter(), IsImage(), and setupKeys().

◆ GetMovieFilter()

QStringList GalleryUtil::GetMovieFilter ( void  )
static

Definition at line 74 of file galleryutil.cpp.

Referenced by GetMediaFilter(), IsMovie(), and setupKeys().

◆ GetMediaFilter()

QStringList GalleryUtil::GetMediaFilter ( void  )
static

◆ IsImage()

bool GalleryUtil::IsImage ( const QString &  filePath)
static

Definition at line 102 of file galleryutil.cpp.

Referenced by LoadDirectory(), and GalleryFilter::TestFilter().

◆ IsMovie()

bool GalleryUtil::IsMovie ( const QString &  filePath)
static

◆ GetNaturalRotation() [1/3]

long GalleryUtil::GetNaturalRotation ( const unsigned char *  buffer,
int  size 
)
static

◆ GetNaturalRotation() [2/3]

long GalleryUtil::GetNaturalRotation ( const QString &  filePath)
static

Definition at line 168 of file galleryutil.cpp.

◆ GetCaption()

QString GalleryUtil::GetCaption ( const QString &  filePath)
static

Definition at line 341 of file galleryutil.cpp.

Referenced by ThumbItem::InitCaption().

◆ GetTimestamp()

QDateTime GalleryUtil::GetTimestamp ( const QString &  filePath)
static

Definition at line 408 of file galleryutil.cpp.

Referenced by ThumbItem::InitTimestamp().

◆ LoadDirectory()

bool GalleryUtil::LoadDirectory ( ThumbList itemList,
const QString &  dir,
const GalleryFilter flt,
bool  recurse,
ThumbHash itemHash,
ThumbGenerator thumbGen 
)
static

Definition at line 256 of file galleryutil.cpp.

Referenced by IconView::LoadDirectory(), and ImageView::LoadAlbumRunnable::run().

◆ ScaleToDest()

QSize GalleryUtil::ScaleToDest ( const QSize &  src,
const QSize &  dest,
ScaleMax  scaleMax 
)
static

Definition at line 583 of file galleryutil.cpp.

Referenced by GLTexture::ScaleTo(), and SingleView::SetZoom().

◆ CopyMove()

static bool GalleryUtil::CopyMove ( const QFileInfo &  src,
QFileInfo &  dst,
bool  move 
)
inlinestatic

Definition at line 56 of file galleryutil.h.

Referenced by FileCopyThread::run().

◆ Copy()

bool GalleryUtil::Copy ( const QFileInfo &  src,
QFileInfo &  dst 
)
static

Definition at line 467 of file galleryutil.cpp.

Referenced by CopyDirectory(), and CopyMove().

◆ Move()

bool GalleryUtil::Move ( const QFileInfo &  src,
QFileInfo &  dst 
)
static

Definition at line 492 of file galleryutil.cpp.

Referenced by CopyMove(), and MoveDirectory().

◆ Delete()

bool GalleryUtil::Delete ( const QFileInfo &  file)
static

◆ Rename()

bool GalleryUtil::Rename ( const QString &  currDir,
const QString &  oldName,
const QString &  newName 
)
static

Definition at line 534 of file galleryutil.cpp.

Referenced by IconView::DoRename().

◆ PlayVideo()

void GalleryUtil::PlayVideo ( const QString &  filename)
static

Definition at line 778 of file galleryutil.cpp.

Referenced by SingleView::paintEvent(), and GLSingleView::paintGL().

◆ CopyDirectory()

bool GalleryUtil::CopyDirectory ( const QFileInfo &  src,
QFileInfo &  dst 
)
staticprivate

Definition at line 639 of file galleryutil.cpp.

Referenced by Copy().

◆ MoveDirectory()

bool GalleryUtil::MoveDirectory ( const QFileInfo &  src,
QFileInfo &  dst 
)
staticprivate

Definition at line 668 of file galleryutil.cpp.

Referenced by Move().

◆ DeleteDirectory()

bool GalleryUtil::DeleteDirectory ( const QFileInfo &  dir)
staticprivate

Definition at line 697 of file galleryutil.cpp.

Referenced by Delete().

◆ RenameDirectory()

bool GalleryUtil::RenameDirectory ( const QString &  currDir,
const QString &  oldName,
const QString &  newName 
)
staticprivate

Definition at line 715 of file galleryutil.cpp.

Referenced by Rename().

◆ GetNaturalRotation() [3/3]

long GalleryUtil::GetNaturalRotation ( void *  exifData)
staticprivate

Definition at line 203 of file galleryutil.cpp.


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