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

using ImageIdList = QList< int >
 
using StringPair = QPair< QString, QString >
 
using NameHash = QHash< QString, QString >
 
using StringMap = QMap< int, QString >
 
using ThumbPair = QPair< int, QString >
 
using ImagePtr = QSharedPointer< ImageItem >
 
using ImageList = QList< ImagePtr >
 
using ImageHash = QHash< QString, ImagePtr >
 
using ImageItemK = const ImageItem
 
using ImagePtrK = QSharedPointer< ImageItemK >
 
using ImageListK = QList< ImagePtrK >
 

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

using ImageIdList = QList<int>

Definition at line 59 of file imagetypes.h.

◆ StringPair

using StringPair = QPair<QString, QString>

Definition at line 60 of file imagetypes.h.

◆ NameHash

using NameHash = QHash<QString, QString>

Definition at line 61 of file imagetypes.h.

◆ StringMap

using StringMap = QMap<int, QString>

Definition at line 62 of file imagetypes.h.

◆ ThumbPair

using ThumbPair = QPair<int, QString>

Definition at line 63 of file imagetypes.h.

◆ ImagePtr

using ImagePtr = QSharedPointer<ImageItem>

Definition at line 173 of file imagetypes.h.

◆ ImageList

using ImageList = QList<ImagePtr>

Definition at line 174 of file imagetypes.h.

◆ ImageHash

using ImageHash = QHash<QString, ImagePtr>

Definition at line 175 of file imagetypes.h.

◆ ImageItemK

using ImageItemK = const ImageItem

Definition at line 178 of file imagetypes.h.

◆ ImagePtrK

using ImagePtrK = QSharedPointer<ImageItemK>

Definition at line 179 of file imagetypes.h.

◆ ImageListK

using ImageListK = QList<ImagePtrK>

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.