libyui  3.0.10
/usr/src/RPM/BUILD/libyui-3.0.10/src/YIconLoader.h
00001 /*
00002   Copyright (C) 2000-2012 Novell, Inc
00003   This library is free software; you can redistribute it and/or modify
00004   it under the terms of the GNU Lesser General Public License as
00005   published by the Free Software Foundation; either version 2.1 of the
00006   License, or (at your option) version 3.0 of the License. This library
00007   is distributed in the hope that it will be useful, but WITHOUT ANY
00008   WARRANTY; without even the implied warranty of MERCHANTABILITY or
00009   FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
00010   License for more details. You should have received a copy of the GNU
00011   Lesser General Public License along with this library; if not, write
00012   to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
00013   Floor, Boston, MA 02110-1301 USA
00014 */
00015 
00016 
00017 /*-/
00018 
00019   File:         YIconLoader.cc
00020 
00021   Author:       Katarína Machálková <kmachalkova@novell.com>
00022 
00023 /-*/
00024 
00025 
00026 #ifndef YIconLoader_H
00027 #define YIconLoader_H
00028 
00029 #include <string>
00030 #include <list>
00031 
00032 class YIconLoader
00033 {
00034 public:
00035 
00036     YIconLoader();
00037     ~YIconLoader();
00038 
00039     std::string findIcon( std::string name );
00040 
00041     //FIXME: these two are here for compatibility reasons
00042     // deprecate them in due course and treat base path just
00043     // like any other search path
00044     void setIconBasePath( std::string path );
00045     std::string iconBasePath() const;
00046 
00047     void addIconSearchPath( std::string path );
00048 
00049 private:
00050 
00051     std::string         _iconBasePath;
00052     std::list <std::string>     icon_dirs;
00053 
00054     bool fileExists( std::string fname );
00055 };
00056 
00057 #endif
 All Classes Functions Variables Enumerations Friends