GalleryUtil Class Reference

#include <galleryutil.h>

List of all members.


Detailed Description

Definition at line 27 of file galleryutil.h.


Static Public Member Functions

static bool isImage (const char *filePath)
static bool isMovie (const char *filePath)
static long GetNaturalRotation (const char *filePath)
static QString GetCaption (const QString &filePath)
static bool LoadDirectory (ThumbList &itemList, const QString &dir, int sortorder, bool recurse, ThumbDict *itemDict, ThumbGenerator *thumbGen)
static QSize ScaleToDest (const QSize &sz, const QSize &dest, bool 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 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)

Member Function Documentation

bool GalleryUtil::isImage ( const char *  filePath  )  [static]

Definition at line 46 of file galleryutil.cpp.

bool GalleryUtil::isMovie ( const char *  filePath  )  [static]

Definition at line 52 of file galleryutil.cpp.

Referenced by SingleView::Load(), GLSingleView::Load(), and ThumbGenerator::loadFile().

long GalleryUtil::GetNaturalRotation ( const char *  filePath  )  [static]

Definition at line 58 of file galleryutil.cpp.

Referenced by ThumbItem::GetRotationAngle().

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

Definition at line 219 of file galleryutil.cpp.

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

bool GalleryUtil::LoadDirectory ( ThumbList itemList,
const QString &  dir,
int  sortorder,
bool  recurse,
ThumbDict itemDict,
ThumbGenerator thumbGen 
) [static]

Definition at line 140 of file galleryutil.cpp.

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

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

Definition at line 400 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 42 of file galleryutil.h.

Referenced by IconView::CopyMarkedFiles().

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

Definition at line 284 of file galleryutil.cpp.

Referenced by CopyDirectory(), and CopyMove().

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

Definition at line 309 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 351 of file galleryutil.cpp.

Referenced by IconView::HandleRename().

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

Definition at line 443 of file galleryutil.cpp.

Referenced by Copy().

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

Definition at line 473 of file galleryutil.cpp.

Referenced by Move().

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

Definition at line 503 of file galleryutil.cpp.

Referenced by Delete().

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

Definition at line 520 of file galleryutil.cpp.

Referenced by Rename().


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

Generated on Sat Dec 18 05:16:03 2010 for MythTV by  doxygen 1.5.5