00001 /* 00002 * $Id: Util.h 2839 2009-09-28 11:36:20Z karijes $ 00003 * 00004 * Various functions 00005 * Copyright (c) 2005-2007 edelib authors 00006 * 00007 * This library is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Lesser General Public 00009 * License as published by the Free Software Foundation; either 00010 * version 2 of the License, or (at your option) any later version. 00011 * 00012 * This library is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public License 00018 * along with this library. If not, see <http://www.gnu.org/licenses/>. 00019 */ 00020 00021 #ifndef __EDELIB_UTIL_H__ 00022 #define __EDELIB_UTIL_H__ 00023 00024 #include "String.h" 00025 #include "List.h" 00026 00027 EDELIB_NS_BEGIN 00028 00037 EDELIB_API String user_config_dir(void); 00038 00047 EDELIB_API String user_data_dir(void); 00048 00057 EDELIB_API String user_cache_dir(void); 00058 00066 EDELIB_API int system_config_dirs(list<String>& lst); 00067 00075 EDELIB_API int system_data_dirs(list<String>& lst); 00076 00113 EDELIB_API String build_filename(const char* p1, const char* p2 = NULL, const char* p3 = NULL); 00114 00115 EDELIB_NS_END 00116 #endif