GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gnc-state.h
Go to the documentation of this file.
1 /********************************************************************\
2  * gnc-state.h -- functions to manage gui state *
3  * Copyright (C) 1997 Robin D. Clark *
4  * Copyright (C) 1998 Linas Vepstas *
5  * Copyright (C) 1998 Rob Browning *
6  * Copyright (C) 2004 Derek Atkins <[email protected]> *
7  * Copyright (C) 2013 Geert Janssens <[email protected]> *
8  * *
9  * This program is free software; you can redistribute it and/or *
10  * modify it under the terms of the GNU General Public License as *
11  * published by the Free Software Foundation; either version 2 of *
12  * the License, or (at your option) any later version. *
13  * *
14  * This program is distributed in the hope that it will be useful, *
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
17  * GNU General Public License for more details. *
18  * *
19  * You should have received a copy of the GNU General Public License*
20  * along with this program; if not, write to the Free Software *
21  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
22  * *
23  * Author: Rob Clark *
24  * Internet: [email protected] *
25  * Address: 609 8th Street *
26  * Huntington Beach, CA 92648-4632 *
27 \********************************************************************/
28 
52 #ifndef GNC_STATE_H
53 #define GNC_STATE_H
54 
55 #include "qof.h"
56 
57 /* Definitions shared by file-utils.c and gnc-main-window.c */
58 #define STATE_FILE_TOP "Top"
59 #define STATE_FILE_BOOK_GUID "BookGuid"
60 #define STATE_FILE_EXT ".gcm"
61 
71 GKeyFile *gnc_state_load (const QofSession *session);
72 
77 void gnc_state_save (const QofSession *session);
78 
86 GKeyFile *gnc_state_get_current (void);
87 
103 gint gnc_state_drop_sections_for (const gchar *partial_name);
104 
105 #endif /* GNC_STATE_H */
106 
void gnc_state_save(const QofSession *session)
Definition: gnc-state.c:226
gint gnc_state_drop_sections_for(const gchar *partial_name)
Definition: gnc-state.c:264
GKeyFile * gnc_state_get_current(void)
Definition: gnc-state.c:252
GKeyFile * gnc_state_load(const QofSession *session)
Definition: gnc-state.c:200