svcore
1.9
|
00001 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ 00002 00003 /* 00004 Sonic Visualiser 00005 An audio file viewer and annotation editor. 00006 Centre for Digital Music, Queen Mary, University of London. 00007 00008 This program is free software; you can redistribute it and/or 00009 modify it under the terms of the GNU General Public License as 00010 published by the Free Software Foundation; either version 2 of the 00011 License, or (at your option) any later version. See the file 00012 COPYING included with this distribution for more information. 00013 */ 00014 00015 /* 00016 This is a modified version of a source file from the 00017 Rosegarden MIDI and audio sequencer and notation editor. 00018 This file copyright 2005-2011 Chris Cannam and the Rosegarden 00019 development team. 00020 */ 00021 00022 #ifndef _RESOURCE_FINDER_H_ 00023 #define _RESOURCE_FINDER_H_ 00024 00025 #include <QString> 00026 00027 #include "Debug.h" 00028 00029 class ResourceFinder 00030 { 00031 public: 00032 ResourceFinder() { } 00033 virtual ~ResourceFinder() { } 00034 00050 QString getResourcePath(QString resourceCat, QString fileName); 00051 00066 QStringList getResourceFiles(QString resourceCat, QString fileExt); 00067 00081 QString getResourceDir(QString resourceCat); 00082 00089 QString getResourceSavePath(QString resourceCat, QString fileName); 00090 00095 QString getResourceSaveDir(QString resourceCat); 00096 00111 bool unbundleResource(QString resourceCat, QString fileName); 00112 00118 QString getUserResourcePrefix(); 00119 00124 QStringList getSystemResourcePrefixList(); 00125 00133 QStringList getResourcePrefixList(); 00134 }; 00135 00136 #endif 00137 00138