GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gnc-filepath-utils.h
Go to the documentation of this file.
1 /********************************************************************\
2  * gnc-filepath-utils.h -- file path resolution utilities *
3  * *
4  * This program is free software; you can redistribute it and/or *
5  * modify it under the terms of the GNU General Public License as *
6  * published by the Free Software Foundation; either version 2 of *
7  * the License, or (at your option) any later version. *
8  * *
9  * This program is distributed in the hope that it will be useful, *
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12  * GNU General Public License for more details. *
13  * *
14  * You should have received a copy of the GNU General Public License*
15  * along with this program; if not, contact: *
16  * *
17  * Free Software Foundation Voice: +1-617-542-5942 *
18  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
19  * Boston, MA 02110-1301, USA [email protected] *
20 \********************************************************************/
21 
29 #ifndef GNC_FILEPATH_UTILS_H
30 #define GNC_FILEPATH_UTILS_H
31 
42 gchar *gnc_resolve_file_path (const gchar *filefrag);
43 
76 gchar *gnc_path_find_localized_html_file (const gchar *file_name);
77 
78 const gchar *gnc_dotgnucash_dir (void);
79 gchar *gnc_build_dotgnucash_path (const gchar *filename);
80 gchar *gnc_build_book_path (const gchar *filename);
81 gchar *gnc_build_translog_path (const gchar *filename);
82 gchar *gnc_build_data_path (const gchar *filename);
83 gchar *gnc_build_report_path (const gchar *filename);
84 gchar *gnc_build_stdreports_path (const gchar *filename);
85 
97 gchar *gnc_filepath_locate_pixmap (const gchar *name);
98 
99 
111 gchar *gnc_filepath_locate_data_file (const gchar *name);
112 
113 
125 gchar *gnc_filepath_locate_ui_file (const gchar *name);
126 
127 
139 gchar *gnc_filepath_locate_doc_file (const gchar *name);
140 
141 #endif /* GNC_FILEPATH_UTILS_H */
gchar * gnc_filepath_locate_data_file(const gchar *name)
gchar * gnc_build_book_path(const gchar *filename)
Make a path to filename in the book subdirectory of the user's configuration directory.
gchar * gnc_build_data_path(const gchar *filename)
Make a path to filename in the data subdirectory of the user's configuration directory.
gchar * gnc_filepath_locate_ui_file(const gchar *name)
gchar * gnc_build_dotgnucash_path(const gchar *filename)
Make a path to filename in the user's configuration directory.
gchar * gnc_resolve_file_path(const gchar *filefrag)
Create an absolute path when given a relative path; otherwise return the argument.
gchar * gnc_build_stdreports_path(const gchar *filename)
Make a path to filename in the standard reports directory.
gchar * gnc_filepath_locate_doc_file(const gchar *name)
gchar * gnc_build_report_path(const gchar *filename)
Make a path to filename in the report directory.
gchar * gnc_filepath_locate_pixmap(const gchar *name)
gchar * gnc_build_translog_path(const gchar *filename)
Make a path to filename in the translog subdirectory of the user's configuration directory.
gchar * gnc_path_find_localized_html_file(const gchar *file_name)
Find an absolute path to a localized version of a given relative path to a html or html related file...
const gchar * gnc_dotgnucash_dir(void)
Ensure that the user's configuration directory exists and is minimally populated. ...