Hydra 0.20
|
#include <FileList.h>
Public Member Functions | |
FileListLoader (FileList &filelist, FileListListener *source=0, bool resetSelectionTo0=true) | |
~FileListLoader () | |
destructor will commit the changes and emit some signals | |
void | setBaseDir (const QString &fulldirname) |
sets the base dir | |
void | setBaseRecurse (bool recurse=true) |
void | setBaseShuffle (bool shuffle=true) |
either to shuffle the loaded list | |
bool | setBaseQuery (const QString &query) |
void | setReload (void) |
simply flag that the list, with its current params, needs to be reloaded | |
void | clearList (void) |
remove all files from the current list |
A class that is used to populate and load entries into a FileList while taking care of signal emission and consolidation.
You instantite the class, and set various options. Note that the options are by default, based on the existing filelist. Upon destruction, the list will be loaded and signals sent.
desktop::FileListLoader::FileListLoader | ( | FileList & | filelist, |
FileListListener * | source = 0 , |
||
bool | resetSelectionTo0 = true |
||
) |
constructor future: progress dialog option/system?
bool desktop::FileListLoader::setBaseQuery | ( | const QString & | query | ) |
sets the query that will be used to filter the list returns true on succesful parse
void desktop::FileListLoader::setBaseRecurse | ( | bool | recurse = true | ) |
sets weither directory recursion will be applied this may be removed in the future as dir-monitoting in this case may be impossible