|
|
typedef QMap<QString,QString> QStringStringMap | QStringStringMap |
friend QString operator += (ResourceFinder &finder, const QString &path)
| operator += |
calls finder.addPath( path );
ResourceFinder ( QString path = QString(), QString ext = QString(), QString pathsep = QString(":") )
| ResourceFinder |
Creates object with the given path/extension list.
~ResourceFinder ()
| ~ResourceFinder |
[virtual]
QString getPath ()
| getPath |
[virtual]
Returns a ":"-separated string of all paths added via add/setPath().
void setPath ( QString p )
| setPath |
[virtual]
Sets the path to p. It may be a ":"-delimited string.
void addPath ( QString p )
| addPath |
[virtual]
Adds p to our path. May be ":"-delimited
void setPathSeparator ( QString pathsep )
| setPathSeparator |
QString getPathSeparator ()
| getPathSeparator |
[const]
void addExtension ( QString ext )
| addExtension |
[virtual]
Adds a "search extension." Sample: finder.addExtension( ".txt:README" ); Will now try all path combinations with the rightmost characters matching ext. Be sure to include a period if you want that searched.
void setExtensions ( QString ext )
| setExtensions |
[virtual]
like addExtension(), but overwrites extension list.
QString getExtensions ()
| getExtensions |
[virtual]
Returns the ":"-delimited listed of file extensions to search.
QString find ( QString resourcename )
| find |
Returns the full path of the given resource, provided it could be found in all paths or with all extensions added. Note that this might return a relative path.
ResourceFinder::QStringStringMap & hitCache ()
| hitCache |
[protected]
returns the "hit cache" - those items found by find().
QString cached ( QString key )
| cached |
[protected]
Generated by: stephan on cheyenne on Mon Aug 11 14:06:52 2003, using kdoc 2.0a54. |