Fix a Gtk warning when checking path input in the log viewer.
[anjuta-git-plugin.git] / libanjuta / anjuta-session.h
blobebdf8aa748b27289f2de29221a23d41b4e55484e
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3 * anjuta-session.h
4 * Copyright (c) 2005 Naba Kumar <naba@gnome.org>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Library General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 #ifndef _ANJUTA_SESSION_H_
22 #define _ANJUTA_SESSION_H_
24 #include <glib.h>
25 #include <glib-object.h>
27 G_BEGIN_DECLS
29 #define ANJUTA_TYPE_SESSION (anjuta_session_get_type ())
30 #define ANJUTA_SESSION(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), ANJUTA_TYPE_SESSION, AnjutaSession))
31 #define ANJUTA_SESSION_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), ANJUTA_TYPE_SESSION, AnjutaSessionClass))
32 #define ANJUTA_IS_SESSION(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), ANJUTA_TYPE_SESSION))
33 #define ANJUTA_IS_SESSION_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), ANJUTA_TYPE_SESSION))
34 #define ANJUTA_SESSION_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), ANJUTA_TYPE_SESSION, AnjutaSessionClass))
36 typedef struct _AnjutaSessionPriv AnjutaSessionPriv;
38 typedef enum
40 ANJUTA_SESSION_PHASE_START,
41 ANJUTA_SESSION_PHASE_FIRST,
42 ANJUTA_SESSION_PHASE_NORMAL,
43 ANJUTA_SESSION_PHASE_LAST,
44 ANJUTA_SESSION_PHASE_END,
45 } AnjutaSessionPhase;
47 typedef struct {
48 GObject parent;
49 AnjutaSessionPriv *priv;
50 } AnjutaSession;
52 typedef struct {
53 GObjectClass parent_class;
54 /* Add Signal Functions Here */
55 } AnjutaSessionClass;
57 GType anjuta_session_get_type (void);
58 AnjutaSession *anjuta_session_new (const gchar *session_directory);
60 gchar* anjuta_session_get_session_filename (AnjutaSession *session);
61 const gchar* anjuta_session_get_session_directory (AnjutaSession *session);
63 void anjuta_session_sync (AnjutaSession *session);
64 void anjuta_session_clear (AnjutaSession *session);
65 void anjuta_session_clear_section (AnjutaSession *session,
66 const gchar *section);
68 void anjuta_session_set_int (AnjutaSession *session, const gchar *section,
69 const gchar *key, gint value);
70 void anjuta_session_set_float (AnjutaSession *session, const gchar *section,
71 const gchar *key, gfloat value);
72 void anjuta_session_set_string (AnjutaSession *session, const gchar *section,
73 const gchar *key, const gchar *value);
74 void anjuta_session_set_string_list (AnjutaSession *session,
75 const gchar *section,
76 const gchar *key, GList *value);
78 gint anjuta_session_get_int (AnjutaSession *session, const gchar *section,
79 const gchar *key);
80 gfloat anjuta_session_get_float (AnjutaSession *session, const gchar *section,
81 const gchar *key);
82 gchar* anjuta_session_get_string (AnjutaSession *session, const gchar *section,
83 const gchar *key);
84 GList* anjuta_session_get_string_list (AnjutaSession *session,
85 const gchar *section,
86 const gchar *key);
88 G_END_DECLS
90 #endif /* _ANJUTA_SESSION_H_ */