comparison base/TempDirectory.h @ 460:93fb1ebff76b

* Add persistent cache file support to FileSource (e.g. for RDF descriptions) * Query RDF plugin data in a background thread on startup
author Chris Cannam
date Fri, 17 Oct 2008 13:32:55 +0000
parents 82f529a08cf3
children fbe8afdfa8a6
comparison
equal deleted inserted replaced
459:6441b31b37ac 460:93fb1ebff76b
36 static TempDirectory *getInstance(); 36 static TempDirectory *getInstance();
37 37
38 virtual ~TempDirectory(); 38 virtual ~TempDirectory();
39 39
40 /** 40 /**
41 * Return the path of the directory in which the temporary
42 * directory has been or will be created. This directory is
43 * particular to this application, although not to this instance
44 * of it, and it will not be removed when the application exits.
45 * Persistent cache data or similar may be placed in this
46 * directory or other, non-temporary subdirectories of it.
47 *
48 * If this directory does not exist, it will be created. Throw
49 * DirectoryCreationFailed if the directory cannot be created.
50 */
51 QString getContainingPath();
52
53 /**
41 * Create the root temporary directory if necessary, and return 54 * Create the root temporary directory if necessary, and return
42 * its path. Throw DirectoryCreationFailed if the directory 55 * its path. This directory will be removed when the application
43 * cannot be created. 56 * exits.
57 *
58 * Throw DirectoryCreationFailed if the directory cannot be
59 * created.
44 */ 60 */
45 QString getPath(); 61 QString getPath();
46 62
47 /** 63 /**
48 * Create an immediate subdirectory of the root temporary 64 * Create an immediate subdirectory of the root temporary
49 * directory of the given name, if it doesn't already exist, and 65 * directory of the given name, if it doesn't already exist, and
50 * return its path. Throw DirectoryCreationFailed if the 66 * return its path. This directory will be removed when the
51 * directory cannot be created. 67 * application exits.
68 *
69 * Throw DirectoryCreationFailed if the directory cannot be
70 * created.
52 */ 71 */
53 QString getSubDirectoryPath(QString subdir); 72 QString getSubDirectoryPath(QString subdir);
54 73
55 /** 74 /**
56 * Delete the temporary directory (before exiting). 75 * Delete the temporary directory (before exiting).