Inheritance diagram for DzStorable:
Methods | |
Boolean | fileExists () |
DzStorable | find (String filename) |
String | getExtension () |
String | getFilename () |
String | getFiletype () |
Number | getFileVersion () |
String | getFullFilename () |
Number | getNumStorablesInScene () |
Boolean | hasChanged () |
Boolean | hasFilename () |
void | markChanged () |
Boolean | needsSave (String filename) |
void | resetFileName () |
Boolean | usesDeferredLoading () |
Signals | |
void | unableToFindFile (String file) |
Signature: "unableToFindFile(const QString&)" |
Base class for raw data items that can be archived in the native file format. Instances of this class can be shared between multiple container classes to avoid duplication of large data sets in memory.
Boolean DzStorable::fileExists | ( | ) |
DzStorable DzStorable::find | ( | String | filename | ) |
Tries to find the instance with the given filename that may have been already loaded.
filename | The name of the file to find a storable for. |
String DzStorable::getExtension | ( | ) |
String DzStorable::getFilename | ( | ) |
String DzStorable::getFiletype | ( | ) |
Number DzStorable::getFileVersion | ( | ) |
String DzStorable::getFullFilename | ( | ) |
int DzStorable::getNumStorablesInScene | ( | ) |
Boolean DzStorable::hasChanged | ( | ) |
Boolean DzStorable::hasFilename | ( | ) |
void DzStorable::markChanged | ( | ) |
Called to mark this item as changed (needs saving).
Called by the framework before saving the file - if this function returns true, the file is saved, overwriting any existing file. If it returns false, the file will not be saved.
filename | The name of the file that will be saved. |
void DzStorable::resetFileName | ( | ) |
Called to set the file name to an empty string (needs saving).
DzStorable::unableToFindFile | ( | String | file | ) | [signal] |
Signature: "unableToFindFile(const QString&)"
Transmitted when a content file could not be found while loading.
file | The name and path of the file that could not be located. |
Boolean DzStorable::usesDeferredLoading | ( | ) |
Derived classes should override this to indicate if they use deferred loading (do not load the object data at main file load time). If a class returns false, it must call loadFromFile() at a later time to invoke loading of its data.