MythTV  master
Classes | Macros | Typedefs | Enumerations
imagetypes.h File Reference

Common types used by Gallery. More...

#include <QStringList>
#include <QSharedPointer>
#include <QPair>
#include <QList>
#include <QHash>
#include <QMap>
#include <QMetaType>
#include "mythmetaexp.h"
Include dependency graph for imagetypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ImageItem
 Represents a picture, video or directory. More...
 

Macros

#define GALLERY_DB_ID   0
 
#define PHOTO_DB_ID   1
 

Typedefs

typedef QList< int > ImageIdList
 
typedef QPair< QString, QString > StringPair
 
typedef QHash< QString, QString > NameHash
 
typedef QMap< int, QString > StringMap
 
typedef QPair< int, QString > ThumbPair
 
typedef QSharedPointer< ImageItemImagePtr
 
typedef QList< ImagePtrImageList
 
typedef QHash< QString, ImagePtrImageHash
 
typedef const ImageItem ImageItemK
 
typedef QSharedPointer< ImageItemKImagePtrK
 
typedef QList< ImagePtrKImageListK
 

Enumerations

enum  ImageNodeType {
  kUnknown = 0, kDevice = 1, kCloneDir = 2, kDirectory = 3,
  kImageFile = 4, kVideoFile = 5
}
 Type of image node. More...
 
enum  ImageSortOrder {
  kSortByNameAsc = 1, kSortByNameDesc = 2, kSortByModTimeAsc = 3, kSortByModTimeDesc = 4,
  kSortByExtAsc = 5, kSortByExtDesc = 6, kSortBySizeAsc = 7, kSortBySizeDesc = 8,
  kSortByDateAsc = 9, kSortByDateDesc = 10
}
 Image ordering. More...
 

Detailed Description

Common types used by Gallery.

Definition in file imagetypes.h.

Macro Definition Documentation

◆ GALLERY_DB_ID

#define GALLERY_DB_ID   0

Definition at line 26 of file imagetypes.h.

◆ PHOTO_DB_ID

#define PHOTO_DB_ID   1

Definition at line 28 of file imagetypes.h.

Typedef Documentation

◆ ImageIdList

typedef QList<int> ImageIdList

Definition at line 59 of file imagetypes.h.

◆ StringPair

typedef QPair<QString, QString> StringPair

Definition at line 60 of file imagetypes.h.

◆ NameHash

typedef QHash<QString, QString> NameHash

Definition at line 61 of file imagetypes.h.

◆ StringMap

typedef QMap<int, QString> StringMap

Definition at line 62 of file imagetypes.h.

◆ ThumbPair

typedef QPair<int, QString> ThumbPair

Definition at line 63 of file imagetypes.h.

◆ ImagePtr

typedef QSharedPointer<ImageItem> ImagePtr

Definition at line 173 of file imagetypes.h.

◆ ImageList

typedef QList<ImagePtr> ImageList

Definition at line 174 of file imagetypes.h.

◆ ImageHash

typedef QHash<QString, ImagePtr> ImageHash

Definition at line 175 of file imagetypes.h.

◆ ImageItemK

typedef const ImageItem ImageItemK

Definition at line 178 of file imagetypes.h.

◆ ImagePtrK

typedef QSharedPointer<ImageItemK> ImagePtrK

Definition at line 179 of file imagetypes.h.

◆ ImageListK

typedef QList<ImagePtrK> ImageListK

Definition at line 180 of file imagetypes.h.

Enumeration Type Documentation

◆ ImageNodeType

Type of image node.

Enumerator
kUnknown 

Unprocessable file type.

kDevice 

Storage Group and local mounted media.

kCloneDir 

A device sub dir comprised from multiple SG dirs.

kDirectory 

A device sub directory.

kImageFile 

A picture.

kVideoFile 

A video.

Definition at line 33 of file imagetypes.h.

◆ ImageSortOrder

Image ordering.

Enumerator
kSortByNameAsc 

Name A-Z.

kSortByNameDesc 

Name Z-A.

kSortByModTimeAsc 

File modified time Earliest -> Latest.

kSortByModTimeDesc 

File modified time Latest -> Earliest.

kSortByExtAsc 

Extension A-Z.

kSortByExtDesc 

Extension Z-A.

kSortBySizeAsc 

File size Smallest -> Largest.

kSortBySizeDesc 

File size Largest -> Smallest.

kSortByDateAsc 

Exif date Earliest -> Latest.

kSortByDateDesc 

Exif date Latest -> Earliest.

Definition at line 44 of file imagetypes.h.