GnuCash  5.6-150-g038405b370+
gnc-plugin-file-history.h
Go to the documentation of this file.
1 /*
2  * gnc-plugin-file-history.h --
3  * Copyright (C) 2003,2005 David Hampton <hampton@employees.org>
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License as
7  * published by the Free Software Foundation; either version 2 of
8  * the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, contact:
17  *
18  * Free Software Foundation Voice: +1-617-542-5942
19  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
20  * Boston, MA 02110-1301, USA gnu@gnu.org
21  */
22 
35 #ifndef __GNC_PLUGIN_FILE_HISTORY_H
36 #define __GNC_PLUGIN_FILE_HISTORY_H
37 
38 #include "gnc-plugin.h"
39 
40 G_BEGIN_DECLS
41 
42 /* type macros */
43 #define GNC_TYPE_PLUGIN_FILE_HISTORY (gnc_plugin_file_history_get_type ())
44 G_DECLARE_FINAL_TYPE (GncPluginFileHistory, gnc_plugin_file_history, GNC, PLUGIN_FILE_HISTORY, GncPlugin)
45 
46 #define GNC_PLUGIN_FILE_HISTORY_NAME "gnc-plugin-file-history"
47 
48 
49 /* function prototypes */
50 
56 GncPlugin *gnc_plugin_file_history_new (void);
57 
58 
65 void gnc_history_add_file (const char *filename);
66 
72 void gnc_history_remove_file (const char *oldfile);
73 
78 gboolean gnc_history_test_for_file (const char *oldfile);
79 
87 char * gnc_history_get_last (void);
88 
89 G_END_DECLS
90 
91 #endif /* __GNC_PLUGIN_FILE_HISTORY_H */
92 
void gnc_history_add_file(const char *newfile)
Add a file name to the front of the file "history list".
GncPlugin * gnc_plugin_file_history_new(void)
Create a new file history plugin.
char * gnc_history_get_last(void)
Retrieve the name of the file most recently accessed.
void gnc_history_remove_file(const char *oldfile)
Remove all occurrences of a file name from the history list.
gboolean gnc_history_test_for_file(const char *oldfile)
Test for a file name existing in the history list.
Functions for adding plugins to a GnuCash window.