#include <image.h>
Definition at line 33 of file image.h.
◆ Image()
Q_INVOKABLE Image::Image |
( |
QObject * |
= nullptr | ) |
|
|
inlineexplicit |
◆ GetImageInfo()
QString Image::GetImageInfo |
( |
int |
id, |
|
|
const QString & |
tag |
|
) |
| |
|
overridevirtual |
Returns the value of the specified exif tag from the image file.
If the filename or exif tag do not exist or the tag has no contents, an empty value is returned.
- Parameters
-
id | The database id of the file |
tag | The exif tag |
- Returns
- QString The exif tag value if successful, otherwise empty
Implements ImageServices.
Definition at line 40 of file image.cpp.
◆ GetImageInfoList()
◆ RemoveImage()
bool Image::RemoveImage |
( |
int |
id | ) |
|
|
overridevirtual |
Deletes an image file or dir subtree from filesystem and database.
- Parameters
-
- Returns
- bool True if deleted, false otherwise
Implements ImageServices.
Definition at line 134 of file image.cpp.
◆ RenameImage()
bool Image::RenameImage |
( |
int |
id, |
|
|
const QString & |
newName |
|
) |
| |
|
overridevirtual |
Renames the file to the new name.
- Parameters
-
id | The database id of the file |
newName | The new name of the file (only the name, no path) |
- Returns
- bool True if renaming was successful, otherwise false
Implements ImageServices.
Definition at line 148 of file image.cpp.
◆ StartSync()
bool Image::StartSync |
( |
void |
| ) |
|
|
overridevirtual |
Starts the synchronization of the images with the database.
- Returns
- bool True if the sync has started, otherwise false
Implements ImageServices.
Definition at line 160 of file image.cpp.
◆ StopSync()
bool Image::StopSync |
( |
void |
| ) |
|
|
overridevirtual |
Stops the image synchronization if its running.
- Returns
- bool True if the sync has stopped, otherwise false
Implements ImageServices.
Definition at line 172 of file image.cpp.
◆ GetSyncStatus()
Returns a list with information if the synchronization is currently running, the already synchronized images and the total amount of images that shall be synchronized.
- Returns
- DTC::ImageSyncInfo The status information
Implements ImageServices.
Definition at line 186 of file image.cpp.
◆ CreateThumbnail()
bool Image::CreateThumbnail |
( |
int |
id | ) |
|
|
overridevirtual |
Request creation of a thumbnail.
- Parameters
-
- Returns
- bool True if image is valid
Implements ImageServices.
Definition at line 219 of file image.cpp.
The documentation for this class was generated from the following files: