comparison base/ResourceFinder.h @ 680:27cdabba2d3e

Better system-specific unbundle locations for ResourceFinder; use same location for TempDirectory
author Chris Cannam
date Mon, 09 May 2011 16:58:24 +0100
parents c8badbd4c005
children 6097aacd7ba3
comparison
equal deleted inserted replaced
679:c8badbd4c005 680:27cdabba2d3e
104 * Return false if a system error occurs during unbundling 104 * Return false if a system error occurs during unbundling
105 * (e.g. disk full). 105 * (e.g. disk full).
106 */ 106 */
107 bool unbundleResource(QString resourceCat, QString fileName); 107 bool unbundleResource(QString resourceCat, QString fileName);
108 108
109 protected: 109 /**
110 * Return the root path for user-specific resource installation
111 * for this application (i.e. resources beneath the user's home
112 * directory).
113 */
110 QString getUserResourcePrefix(); 114 QString getUserResourcePrefix();
115
116 /**
117 * Return the root paths for systemwide resource installations for
118 * this application.
119 */
111 QStringList getSystemResourcePrefixList(); 120 QStringList getSystemResourcePrefixList();
121
122 /**
123 * Return all root paths for resource installations for this
124 * application, in the order in which they will be searched. This
125 * list consists of the user-specific path
126 * (getUserResourcePrefix()) followed by the systemwide paths
127 * (getSystemResourcePrefixList()).
128 */
112 QStringList getResourcePrefixList(); 129 QStringList getResourcePrefixList();
113 }; 130 };
114 131
115 #endif 132 #endif
116 133