// forward declaration of unit test class. Required for friend relationship. class IconThemeScannerTest;
namespace vcl
{ /** This class scans a folder for icon themes and provides the results.
*/ class VCL_DLLPUBLIC IconThemeScanner : public UserResourceScanner
{ public:
IconThemeScanner();
/** This method will return the standard path where icon themes are located.
*/ static OUString GetStandardIconThemePath();
/** Get the IconThemeInfo for a theme. *Ifthethemeidisnotamongthefoundthemes,astd::runtime_errorwillbethrown. *UseIconThemeIsInstalled()tocheckwhetheritisavailable.
*/ const IconThemeInfo& GetIconThemeInfo(const OUString& themeId);
/** Checks whether the theme with the provided name has been found in the *scanneddirectory.
*/ bool IconThemeIsInstalled(const OUString& themeId) const;
private: /** Adds the provided icon theme by path. */ bool addResource(const OUString& path) override;
/** Check whether a single file is valid */ bool isValidResource(const OUString& rFilename) override;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.