Nemiver  0.3
nmv-env.h
Go to the documentation of this file.
1 /* -*- Mode: C++; indent-tabs-mode:nil; c-basic-offset:4; -*- */
2 
3 // Author: Dodji Seketeli
4 /*
5  * Permission is hereby granted, free of charge, to any person obtaining a copy of this
6  * software and associated documentation files (the "Software"),
7  * to deal in the Software without restriction, including without limitation
8  * the rights to use, copy, modify, merge, publish, distribute,
9  * sublicense, and/or sell copies of the Software, and to permit
10  * persons to whom the Software is furnished to do so,
11  * subject to the following conditions:
12  *
13  * The above copyright notice and this permission notice shall be included in all copies
14  * or substantial portions of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS",
17  * WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
18  * INCLUDING BUT NOT LIMITED TO THE
19  * WARRANTIES OF MERCHANTABILITY,
20  * FITNESS FOR A PARTICULAR PURPOSE
21  * AND NONINFRINGEMENT.
22  * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
23  * HOLDERS BE LIABLE FOR ANY CLAIM,
24  * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
25  * CONTRACT, TORT OR OTHERWISE,
26  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
27  * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28  *
29  */
30 #ifndef __NMV_ENV_H__
31 #define __NMV_ENV_H__
32 
33 #include "nmv-api-macros.h"
34 #include "nmv-ustring.h"
35 #include "nmv-exception.h"
36 
38 
39 NEMIVER_BEGIN_NAMESPACE (nemiver)
40 NEMIVER_BEGIN_NAMESPACE (common)
41 NEMIVER_BEGIN_NAMESPACE (env)
42 
43 void do_init ();
44 
46 
48 
50 
52 
54 
56 
58 
60 
62 
64 
66 
68 
70 
72 
74 
75 NEMIVER_API UString build_path_to_gtkbuilder_file (const UString &a_gtkbuilder_file_name);
76 
77 NEMIVER_API UString build_path_to_menu_file (const UString &a_ui_file_name);
78 
79 NEMIVER_API UString build_path_to_image_file (const UString &a_image_file_name);
80 
81 NEMIVER_API bool build_path_to_executable (const UString &a_exe_name,
82  UString &a_exe_path);
83 
84 NEMIVER_API bool find_file (const UString &a_file_name,
85  const list<UString> &a_where_to_look,
86  UString &a_aboslute_file_path);
87 
88 NEMIVER_API bool read_file_line (const UString &a_file_path,
89  int a_line_number,
90  string &a_line);
91 
92 NEMIVER_END_NAMESPACE (env)
93 NEMIVER_END_NAMESPACE (common)
94 NEMIVER_END_NAMESPACE (nemiver)
95 
96 #endif //__NMV_ENV_H__
97 
nemiver::common::env::create_user_db_dir
bool create_user_db_dir()
nemiver::common::env::get_system_config_dir
const UString & get_system_config_dir()
nemiver::common::env::get_system_plugins_dir
const UString & get_system_plugins_dir()
nemiver
Definition: nmv-address.h:31
nemiver::common::env::find_file
bool find_file(const UString &a_file_name, const list< UString > &a_where_to_look, UString &a_aboslute_file_path)
nmv-ustring.h
NEMIVER_API
#define NEMIVER_API
Definition: nmv-api-macros.h:53
nmv-api-macros.h
nemiver::common::env::read_file_line
bool read_file_line(const UString &a_file_path, int a_line_number, string &a_line)
nemiver::common::env::build_path_to_menu_file
UString build_path_to_menu_file(const UString &a_ui_file_name)
nemiver::common::env::build_path_to_executable
bool build_path_to_executable(const UString &a_exe_name, UString &a_exe_path)
nemiver::common::UString
Definition: nmv-ustring.h:45
nemiver::common::env::get_system_config_file
const UString & get_system_config_file()
nemiver::common::env::get_system_lib_dir
const UString & get_system_lib_dir()
nemiver::common::env::build_path_to_gtkbuilder_file
UString build_path_to_gtkbuilder_file(const UString &a_gtkbuilder_file_name)
nemiver::common::env::get_system_modules_config_file
const UString & get_system_modules_config_file()
nemiver::common::env::get_install_prefix
const UString & get_install_prefix()
nemiver::common::env::get_user_db_dir
const UString & get_user_db_dir()
nemiver::common::env::build_path_to_image_file
UString build_path_to_image_file(const UString &a_image_file_name)
nemiver::common::env::get_gtkbuilder_files_dir
const UString & get_gtkbuilder_files_dir()
nemiver::common::env::get_menu_files_dir
const UString & get_menu_files_dir()
nemiver::common::env::get_system_modules_dir
const UString & get_system_modules_dir()
nemiver::common::env::get_gdb_program
const UString & get_gdb_program()
nemiver::common::env::get_image_files_dir
const UString & get_image_files_dir()
nemiver::common::env::get_data_dir
const UString & get_data_dir()
nmv-exception.h
nemiver::common::env::do_init
void do_init()
common
Definition: nmv-proc-list-dialog.h:32