Filesystem adapter for Frontend, managing local devices iaw MediaMonitor.
More...
#include <libmythmetadata/imagemanager.h>
|
static QString | GetAbsFilePath (const ImagePtrK &im) |
| Get absolute filepath for a local image. More...
|
|
static QString | MakeFileUrl (const QString &path) |
| Construct URL of a local image, which is an absolute path. More...
|
|
static QString | MakeThumbUrl (const QString &devPath, const QString &path="") |
| Construct URL of the thumbnail of a local image (An absolute path) More...
|
|
static void | Notify (const QString &mesg, const QStringList &extra) |
| Send local message to UI about local ids. More...
|
|
static QStringList | SupportedImages () |
| Return recognised pictures. More...
|
|
static QStringList | SupportedVideos () |
| Return recognised video extensions. More...
|
|
static QString | ConstructPath (const QString &path, const QString &name) |
| Assembles a canonical file path without corrupting its absolute/relative nature. More...
|
|
static QString | BaseNameOf (const QString &path) |
| Extracts file name (incl extension) from a filepath. More...
|
|
static QString | PathOf (const QString &path) |
| Extracts path from a filepath. More...
|
|
static QString | FormatSize (int sizeKib) |
|
static QString | GetAbsThumbPath (const QString &devPath, const QString &path) |
| Get absolute filepath for thumbnail of an image. More...
|
|
static QString | ThumbPath (const ImageItem &im) |
| Thumbnails of videos are a JPEG snapshot with jpg suffix appended. More...
|
|
|
static int | ImageId (int id) |
|
static QString | ImageId (const QString &id) |
|
static int | DbId (int id) |
|
static QString | DbIds (const QString &ids) |
|
Filesystem adapter for Frontend, managing local devices iaw MediaMonitor.
Scanner will scan these devices. Creates images with negative ids and absolute filepaths Thumbnails are stored locally and deleted when FE exits.
Definition at line 196 of file imagemanager.h.
◆ ImageAdapterLocal()
ImageAdapterLocal::ImageAdapterLocal |
( |
| ) |
|
|
default |
◆ CreateItem()
ImageItem * ImageAdapterLocal::CreateItem |
( |
const QFileInfo & |
fi, |
|
|
int |
parentId, |
|
|
int |
devId, |
|
|
const QString & |
base |
|
) |
| const |
Construct a local image from a file.
- Parameters
-
fi | File |
parentId | Id of the parent dir |
devId | Id of device containing the file |
base | Unused but required for adapter interface |
- Returns
- ImageItem An image object
Definition at line 348 of file imagemanager.cpp.
◆ GetScanDirs()
StringMap ImageAdapterLocal::GetScanDirs |
( |
| ) |
const |
|
inline |
◆ GetAbsFilePath()
static QString ImageAdapterLocal::GetAbsFilePath |
( |
const ImagePtrK & |
im | ) |
|
|
inlinestatic |
Get absolute filepath for a local image.
Definition at line 208 of file imagemanager.h.
◆ MakeFileUrl()
static QString ImageAdapterLocal::MakeFileUrl |
( |
const QString & |
path | ) |
|
|
inlinestatic |
◆ MakeThumbUrl()
static QString ImageAdapterLocal::MakeThumbUrl |
( |
const QString & |
devPath, |
|
|
const QString & |
path = "" |
|
) |
| |
|
inlinestatic |
Construct URL of the thumbnail of a local image (An absolute path)
Definition at line 215 of file imagemanager.h.
◆ Notify()
void ImageAdapterLocal::Notify |
( |
const QString & |
mesg, |
|
|
const QStringList & |
extra |
|
) |
| |
|
static |
Send local message to UI about local ids.
- Parameters
-
mesg | Message name |
extra | Message data |
Definition at line 398 of file imagemanager.cpp.
◆ ImageId() [1/2]
static int ImageAdapterLocal::ImageId |
( |
int |
id | ) |
|
|
inlinestaticprotected |
◆ ImageId() [2/2]
static QString ImageAdapterLocal::ImageId |
( |
const QString & |
id | ) |
|
|
inlinestaticprotected |
◆ DbId()
static int ImageAdapterLocal::DbId |
( |
int |
id | ) |
|
|
inlinestaticprotected |
◆ DbIds()
static QString ImageAdapterLocal::DbIds |
( |
const QString & |
ids | ) |
|
|
inlinestaticprotected |
The documentation for this class was generated from the following files: