GalleryUtil Class Reference

#include <galleryutil.h>

List of all members.

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 bool LoadDirectory (ThumbList &itemList, const QString &dir, const GalleryFilter &flt, bool recurse, ThumbHash *itemHash, ThumbGenerator *thumbGen)
static QSize ScaleToDest (const QSize &sz, 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 34 of file galleryutil.h.


Member Function Documentation

QStringList GalleryUtil::GetImageFilter ( void   )  [static]

Definition at line 54 of file galleryutil.cpp.

Referenced by GetMediaFilter(), and IsImage().

QStringList GalleryUtil::GetMovieFilter ( void   )  [static]

Definition at line 72 of file galleryutil.cpp.

Referenced by GetMediaFilter(), and IsMovie().

QStringList GalleryUtil::GetMediaFilter ( void   )  [static]

Definition at line 85 of file galleryutil.cpp.

Referenced by ChildCountThread::getChildCount(), and LoadDirectory().

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

Definition at line 92 of file galleryutil.cpp.

Referenced by LoadDirectory().

bool GalleryUtil::IsMovie ( const QString &  filePath  )  [static]
long GalleryUtil::GetNaturalRotation ( const unsigned char *  buffer,
int  size 
) [static]
long GalleryUtil::GetNaturalRotation ( const QString &  filePath  )  [static]

Definition at line 158 of file galleryutil.cpp.

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

Definition at line 329 of file galleryutil.cpp.

Referenced by ThumbItem::InitCaption().

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

Definition at line 242 of file galleryutil.cpp.

Referenced by ImageView::ImageView().

QSize GalleryUtil::ScaleToDest ( const QSize &  sz,
const QSize &  dest,
ScaleMax  scaleMax 
) [static]

Definition at line 512 of file galleryutil.cpp.

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

static bool GalleryUtil::CopyMove ( const QFileInfo &  src,
QFileInfo &  dst,
bool  move 
) [inline, static]

Definition at line 54 of file galleryutil.h.

Referenced by FileCopyThread::run().

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

Definition at line 396 of file galleryutil.cpp.

Referenced by CopyDirectory(), and CopyMove().

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

Definition at line 421 of file galleryutil.cpp.

Referenced by CopyMove(), and MoveDirectory().

bool GalleryUtil::Delete ( const QFileInfo &  file  )  [static]
bool GalleryUtil::Rename ( const QString &  currDir,
const QString &  oldName,
const QString &  newName 
) [static]

Definition at line 463 of file galleryutil.cpp.

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

Definition at line 711 of file galleryutil.cpp.

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

bool GalleryUtil::CopyDirectory ( const QFileInfo  src,
QFileInfo &  dst 
) [static, private]

Definition at line 568 of file galleryutil.cpp.

Referenced by Copy().

bool GalleryUtil::MoveDirectory ( const QFileInfo  src,
QFileInfo &  dst 
) [static, private]

Definition at line 599 of file galleryutil.cpp.

Referenced by Move().

bool GalleryUtil::DeleteDirectory ( const QFileInfo &  dir  )  [static, private]

Definition at line 630 of file galleryutil.cpp.

Referenced by Delete().

bool GalleryUtil::RenameDirectory ( const QString &  currDir,
const QString &  oldName,
const QString &  newName 
) [static, private]

Definition at line 648 of file galleryutil.cpp.

Referenced by Rename().

long GalleryUtil::GetNaturalRotation ( void *  exifData  )  [static, private]

Definition at line 193 of file galleryutil.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:42:04 2012 for MythTV by  doxygen 1.6.3