libyui

/data/gitorious.org/libyui/libyui-master/src/YIconLoader.h

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