1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
3 * anjuta-profile-manager.h
4 * Copyright (C) Naba Kumar <naba@gnome.org>
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 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_PROFILE_MANAGER_H_
22 #define _ANJUTA_PROFILE_MANAGER_H_
24 #include <glib-object.h>
25 #include <libanjuta/anjuta-profile.h>
26 #include <libanjuta/anjuta-plugin-manager.h>
30 #define ANJUTA_TYPE_PROFILE_MANAGER (anjuta_profile_manager_get_type ())
31 #define ANJUTA_PROFILE_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ANJUTA_TYPE_PROFILE_MANAGER, AnjutaProfileManager))
32 #define ANJUTA_PROFILE_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ANJUTA_TYPE_PROFILE_MANAGER, AnjutaProfileManagerClass))
33 #define ANJUTA_IS_PROFILE_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ANJUTA_TYPE_PROFILE_MANAGER))
34 #define ANJUTA_IS_PROFILE_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ANJUTA_TYPE_PROFILE_MANAGER))
35 #define ANJUTA_PROFILE_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ANJUTA_TYPE_PROFILE_MANAGER, AnjutaProfileManagerClass))
37 typedef struct _AnjutaProfileManagerClass AnjutaProfileManagerClass
;
38 typedef struct _AnjutaProfileManagerPriv AnjutaProfileManagerPriv
;
39 typedef struct _AnjutaProfileManager AnjutaProfileManager
;
41 struct _AnjutaProfileManagerClass
43 GObjectClass parent_class
;
44 void(* profile_pushed
) (AnjutaProfileManager
*self
,
45 AnjutaProfile
* profile
);
46 void(* profile_popped
) (AnjutaProfileManager
*self
,
47 AnjutaProfile
* profile
);
48 void(* profile_descoped
) (AnjutaProfileManager
*self
,
49 AnjutaProfile
* profile
);
50 void(* profile_scoped
) (AnjutaProfileManager
*self
,
51 AnjutaProfile
* profile
);
54 struct _AnjutaProfileManager
56 GObject parent_instance
;
57 AnjutaProfileManagerPriv
*priv
;
60 GType
anjuta_profile_manager_get_type (void) G_GNUC_CONST
;
61 AnjutaProfileManager
*anjuta_profile_manager_new (AnjutaPluginManager
*plugin_manager
);
64 gboolean
anjuta_profile_manager_push (AnjutaProfileManager
*profile_manager
,
65 AnjutaProfile
*profile
, GError
**error
);
66 gboolean
anjuta_profile_manager_pop (AnjutaProfileManager
*profile_manager
,
67 const gchar
*profile_name
, GError
**error
);
69 void anjuta_profile_manager_freeze (AnjutaProfileManager
*profile_manager
);
70 gboolean
anjuta_profile_manager_thaw (AnjutaProfileManager
*plugin_manager
,
72 AnjutaProfile
* anjuta_profile_manager_get_current (AnjutaProfileManager
*profile_manager
);
76 #endif /* _ANJUTA_PROFILE_MANAGER_H_ */