| 
    HDK
    
   | 
 
#include <UT_GalleryDataSource.h>
Public Member Functions | |
| virtual | ~UT_GalleryDataSourceImpl () | 
| virtual void | initializeData () | 
| virtual void | setSource (const UT_StringHolder &source_identifier, const UT_StringHolder &args=UT_StringHolder::theEmptyString) | 
| virtual bool | isValid () const =0 | 
| virtual bool | isReadOnly () const =0 | 
| virtual UT_StringHolder | infoHtml () const =0 | 
| Return HTML formatted info about the data source.  More... | |
| virtual void | itemIds (UT_StringArray &item_ids) const =0 | 
| Populate an array with all valid item ids.  More... | |
| virtual void | updatedItemIds (UT_StringArray &item_ids)=0 | 
| virtual 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'. By default there is no hierarchy.  More... | |
| virtual UT_StringHolder | sourceTypeName (const UT_StringRef &item_id) const =0 | 
| A string identifying the implementation data type.  More... | |
| virtual UT_StringHolder | typeName (const UT_StringRef &item_id) const =0 | 
| virtual UT_StringHolder | renderMethod (const UT_StringRef &item_id) const =0 | 
| virtual UT_StringHolder | label (const UT_StringRef &item_id) const =0 | 
| virtual UT_WorkBuffer | thumbnail (const UT_StringRef &item_id) const =0 | 
| virtual time_t | creationDate (const UT_StringRef &item_id) const =0 | 
| virtual time_t | modificationDate (const UT_StringRef &item_id) const =0 | 
| virtual bool | isStarred (const UT_StringRef &item_id) const =0 | 
| virtual UT_StringHolder | colorTag (const UT_StringRef &item_id) const =0 | 
| virtual UT_StringSet | tags (const UT_StringRef &item_id) const =0 | 
| virtual UT_Options | metadata (const UT_StringRef &item_id) const =0 | 
| virtual UT_StringHolder | filePath (const UT_StringRef &item_id) const =0 | 
| virtual bool | ownsFile (const UT_StringRef &item_id) const =0 | 
| virtual UT_WorkBuffer | blindData (const UT_StringRef &item_id) const =0 | 
| virtual UT_StringHolder | status (const UT_StringRef &item_id) const =0 | 
| virtual UT_StringHolder | parentId (const UT_StringRef &item_id) const =0 | 
| Return the parent item id of the given 'item_id'.  More... | |
| virtual UT_StringHolder | prepareItemForUse (const UT_StringRef &item_id) const =0 | 
| virtual bool | setRenderMethod (const UT_StringRef &item_id, const UT_StringHolder &render_method) | 
| virtual bool | setLabel (const UT_StringRef &item_id, const UT_StringHolder &label) | 
| virtual bool | setThumbnail (const UT_StringRef &item_id, const UT_WorkBuffer &thumbnail) | 
| virtual bool | setModificationDate (const UT_StringRef &item_id, time_t timestamp) | 
| virtual bool | setIsStarred (const UT_StringRef &item_id, bool isstarred) | 
| virtual bool | setColorTag (const UT_StringRef &item_id, const UT_StringHolder &color_tag) | 
| virtual bool | setMetadata (const UT_StringRef &item_id, const UT_Options &metadata) | 
| virtual bool | setFilePath (const UT_StringRef &item_id, const char *file_path) | 
| virtual bool | setOwnsFile (const UT_StringRef &item_id, bool owns_file) | 
| virtual bool | setBlindData (const UT_StringRef &item_id, const void *data, int data_size) | 
| virtual bool | setStatus (const UT_StringRef &item_id, const UT_StringHolder &status) | 
| virtual bool | setParentId (const UT_StringRef &item_id, const UT_StringHolder &parent_item_id) | 
| virtual bool | createTag (const char *tag) | 
| virtual bool | deleteTag (const char *tag, bool delete_if_assigned) const | 
| virtual bool | addTag (const UT_StringRef &item_id, const char *tag) | 
| virtual bool | removeTag (const UT_StringRef &item_id, const char *tag) const | 
| virtual bool | isFilePathEditable (const UT_StringRef &item_id) const | 
| virtual UT_StringHolder | generateItemFilePath (const UT_StringRef &item_id, const char *file_ext) | 
| virtual 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, bool item_owns_file, const void *item_data, int item_data_size, time_t *creation_date, const UT_StringRef &parent_id) | 
| Add a new gallery item to the data source.  More... | |
| virtual bool | markItemsForDeletion (const UT_StringArray &item_ids) | 
| virtual bool | unmarkItemsForDeletion (const UT_StringArray &item_ids) | 
| virtual void | startTransaction () const | 
| virtual void | endTransaction (bool commit=true) const | 
| virtual bool | saveAs (const UT_StringHolder &source_identifier) | 
Protected Member Functions | |
| UT_GalleryDataSourceImpl () | |
| void | addOwner (const UT_GalleryDataSource *owner) | 
| void | removeOwner (const UT_GalleryDataSource *owner) | 
| void | ownerFetchedUpdatedIds (const UT_GalleryDataSource *owner, UT_StringArray &item_ids) | 
Protected Attributes | |
| UT_Map< const  UT_GalleryDataSource *, UT_StringSet >  | myOwnerUpdatedIds | 
Friends | |
| class | UT_GalleryDataSource | 
Implementation class for UT_GalleryDataSource. Subclass this and register it with UT_GalleryDataSource as a plugin to create a new data source. See documentation for hou.AssetGalleryDataSource for descriptions of the methods that need to be implemented to create a new DataSource subclass.
Definition at line 43 of file UT_GalleryDataSource.h.
      
  | 
  virtual | 
      
  | 
  protected | 
      
  | 
  inlinevirtual | 
Add a new gallery item to the data source.
Definition at line 157 of file UT_GalleryDataSource.h.
      
  | 
  inlineprotected | 
Definition at line 198 of file UT_GalleryDataSource.h.
      
  | 
  inlinevirtual | 
Definition at line 140 of file UT_GalleryDataSource.h.
      
  | 
  pure virtual | 
      
  | 
  virtual | 
Populate an array with all valid item ids with the given parent 'item_id'. By default there is no hierarchy.
      
  | 
  pure virtual | 
      
  | 
  inlinevirtual | 
Definition at line 136 of file UT_GalleryDataSource.h.
      
  | 
  pure virtual | 
      
  | 
  inlinevirtual | 
Definition at line 138 of file UT_GalleryDataSource.h.
      
  | 
  inlinevirtual | 
Definition at line 186 of file UT_GalleryDataSource.h.
      
  | 
  pure virtual | 
      
  | 
  inlinevirtual | 
Generates a file path to associate with a particular item id, for cases where the new item needs a new file, as in a snapshot data source (rather than referring to an existing file, as in an asset data source).
Definition at line 151 of file UT_GalleryDataSource.h.
      
  | 
  pure virtual | 
Return HTML formatted info about the data source.
      
  | 
  virtual | 
      
  | 
  inlinevirtual | 
Definition at line 145 of file UT_GalleryDataSource.h.
      
  | 
  pure virtual | 
If this method returns true, none of the set methods should ever be called, or expected to do anything.
      
  | 
  pure virtual | 
      
  | 
  pure virtual | 
Required overridesCheck if the data source is valid. If not, no other methods will ever be called on this object.
      
  | 
  pure virtual | 
Populate an array with all valid item ids.
      
  | 
  pure virtual | 
      
  | 
  inlinevirtual | 
Mark items for deletion in the data source. Do nothing for invalid item ids or items that are already marked for deletion.
Definition at line 172 of file UT_GalleryDataSource.h.
      
  | 
  pure virtual | 
      
  | 
  pure virtual | 
      
  | 
  protected | 
      
  | 
  pure virtual | 
      
  | 
  pure virtual | 
Return the parent item id of the given 'item_id'.
      
  | 
  pure virtual | 
      
  | 
  inlineprotected | 
Definition at line 200 of file UT_GalleryDataSource.h.
      
  | 
  inlinevirtual | 
Definition at line 142 of file UT_GalleryDataSource.h.
      
  | 
  pure virtual | 
      
  | 
  inlinevirtual | 
For file-based sources, does the equivalent of a "save as" operation. The source identifier of the data source should be updated if the implementation's save as operation reports success.
Definition at line 192 of file UT_GalleryDataSource.h.
      
  | 
  inlinevirtual | 
Definition at line 126 of file UT_GalleryDataSource.h.
      
  | 
  inlinevirtual | 
Definition at line 114 of file UT_GalleryDataSource.h.
      
  | 
  inlinevirtual | 
Definition at line 120 of file UT_GalleryDataSource.h.
      
  | 
  inlinevirtual | 
Definition at line 111 of file UT_GalleryDataSource.h.
      
  | 
  inlinevirtual | 
Definition at line 102 of file UT_GalleryDataSource.h.
      
  | 
  inlinevirtual | 
Definition at line 117 of file UT_GalleryDataSource.h.
      
  | 
  inlinevirtual | 
Definition at line 108 of file UT_GalleryDataSource.h.
      
  | 
  inlinevirtual | 
Definition at line 123 of file UT_GalleryDataSource.h.
      
  | 
  inlinevirtual | 
Definition at line 132 of file UT_GalleryDataSource.h.
      
  | 
  inlinevirtual | 
Required overrides for writable data sources
Definition at line 99 of file UT_GalleryDataSource.h.
      
  | 
  virtual | 
      
  | 
  inlinevirtual | 
Definition at line 129 of file UT_GalleryDataSource.h.
      
  | 
  inlinevirtual | 
Definition at line 105 of file UT_GalleryDataSource.h.
      
  | 
  pure virtual | 
A string identifying the implementation data type.
      
  | 
  inlinevirtual | 
Optional overrides
Definition at line 184 of file UT_GalleryDataSource.h.
      
  | 
  pure virtual | 
      
  | 
  pure virtual | 
      
  | 
  pure virtual | 
      
  | 
  pure virtual | 
      
  | 
  inlinevirtual | 
Unmark items for deletion in the data source. Do nothing for invalid item ids or items that are not marked for deletion.
Definition at line 177 of file UT_GalleryDataSource.h.
      
  | 
  pure virtual | 
      
  | 
  friend | 
Definition at line 207 of file UT_GalleryDataSource.h.
      
  | 
  protected | 
Definition at line 205 of file UT_GalleryDataSource.h.