|
| UT_GalleryDataSource (const UT_StringHolder &source_identifier, const UT_StringHolder &args) |
|
| ~UT_GalleryDataSource () |
|
bool | isValid () const |
|
bool | isReadOnly () const |
| Return true if the source implementation is read only. More...
|
|
const UT_StringHolder & | sourceIdentifier () const |
| Return the source identifier. More...
|
|
const UT_StringHolder & | sourceArgs () const |
| Return the source args. More...
|
|
UT_StringHolder | infoHtml () const |
| Return HTML formatted info about the data source. More...
|
|
void | startTransaction () const |
|
void | endTransaction (bool commit=true) const |
|
void | itemIds (UT_StringArray &item_ids) const |
| Populate an array with all valid item ids. More...
|
|
void | updatedItemIds (UT_StringArray &item_ids) |
|
void | childItemIds (const UT_StringRef &parent_item_id, UT_StringArray &item_ids) const |
| Populate an array with all valid item ids with the given parent 'item_id'. More...
|
|
UT_StringHolder | sourceTypeName (const UT_StringRef &item_id) const |
| Return the source type. More...
|
|
UT_StringHolder | typeName (const UT_StringRef &item_id) const |
|
UT_StringHolder | label (const UT_StringRef &item_id) const |
|
UT_WorkBuffer | thumbnail (const UT_StringRef &item_id) const |
|
time_t | creationDate (const UT_StringRef &item_id) const |
|
time_t | modificationDate (const UT_StringRef &item_id) const |
|
bool | isStarred (const UT_StringRef &item_id) const |
|
UT_StringHolder | colorTag (const UT_StringRef &item_id) const |
|
UT_StringSet | tags (const UT_StringRef &item_id) const |
|
UT_Options | metadata (const UT_StringRef &item_id) const |
|
UT_StringHolder | filePath (const UT_StringRef &item_id) const |
|
bool | ownsFile (const UT_StringRef &item_id) const |
|
UT_WorkBuffer | blindData (const UT_StringRef &item_id) const |
|
UT_StringHolder | status (const UT_StringRef &item_id) const |
|
UT_StringHolder | parentId (const UT_StringRef &item_id) const |
|
UT_StringHolder | prepareItemForUse (const UT_StringRef &item_id) const |
|
bool | setLabel (const UT_StringRef &item_id, const UT_StringHolder &label) |
|
bool | setThumbnail (const UT_StringRef &item_id, const UT_WorkBuffer &thumbnail) |
|
bool | setModificationDate (const UT_StringRef &item_id, time_t timestamp) |
|
bool | setIsStarred (const UT_StringRef &item_id, bool isstarred) |
|
bool | setColorTag (const UT_StringRef &item_id, const UT_StringHolder &color_tag) |
|
bool | setMetadata (const UT_StringRef &item_id, const UT_Options &metadata) |
|
bool | setFilePath (const UT_StringRef &item_id, const char *file_path) |
|
bool | setOwnsFile (const UT_StringRef &item_id, bool owns_file) |
|
bool | setBlindData (const UT_StringRef &item_id, const void *data, int data_size) |
|
bool | setStatus (const UT_StringRef &item_id, const UT_StringHolder &status) |
|
bool | setParentId (const UT_StringRef &item_id, const UT_StringRef &parent_item_id) |
|
bool | createTag (const char *tag) |
|
bool | deleteTag (const char *tag, bool delete_if_assigned) |
|
bool | addTag (const UT_StringRef &item_id, const char *tag) |
|
bool | removeTag (const UT_StringRef &item_id, const char *tag) |
|
UT_StringHolder | generateItemFilePath (const UT_StringRef &item_id, const char *file_ext) |
|
UT_StringHolder | addItem (const UT_StringRef &item_type_name, const UT_StringRef &name, const void *thumbnail_data, int thumbnail_data_size, const char *item_file=nullptr, bool item_owns_file=false, const void *item_data=nullptr, int item_data_size=0, time_t *creation_date=nullptr, const UT_StringRef &parent_id=UT_StringHolder::theEmptyString) |
| Add a new gallery item to the data source. More...
|
|
bool | markItemsForDeletion (const UT_StringArray &item_ids) |
|
bool | unmarkItemsForDeletion (const UT_StringArray &item_ids) |
|
bool | saveAs (const UT_StringHolder &source_identifier) |
|
Provides a stable API for QT_GalleryModel and its subclasses for populating the model from a variety of data sources. Provides a plugin architecture for adding new UT_GalleryDataSourceImpl subclasses which are constructed based on the source_identifier sent to this object's constructor. Also provides a global registry of UT_GalleryDataSource objects, so there is always only one data source created for a given source_identifier.
Definition at line 207 of file UT_GalleryDataSource.h.