~ubuntu-branches/ubuntu/trusty/anjuta/trusty

« back to all changes in this revision

Viewing changes to libanjuta/anjuta-profile.h

  • Committer: Package Import Robot
  • Author(s): Steve Ovens
  • Date: 2014-01-03 21:06:06 UTC
  • mfrom: (1.1.55)
  • Revision ID: package-import@ubuntu.com-20140103210606-pmvzhu0s68qy6261
Tags: 2:3.10.2-0ubuntu1
* New upstream release (LP: #1266037)
- Updated Build-Depends of libgtk-3-dev (>= 3.6.0),
  libglib2.0-dev (>= 2.34.0)

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
#include <glib-object.h>
25
25
#include <gio/gio.h>
26
 
#include <libanjuta/anjuta-plugin-description.h>
 
26
#include <libanjuta/anjuta-plugin-handle.h>
27
27
#include <libanjuta/anjuta-plugin-manager.h>
28
28
 
29
29
G_BEGIN_DECLS
45
45
#define ANJUTA_PROFILE_ERROR            (anjuta_profile_error_quark())
46
46
 
47
47
/**
 
48
 * ANJUTA_SYSTEM_PROFILE_ERROR:
 
49
 *
 
50
 * Special name for a system profile. The content of such profile is never
 
51
 * unloaded.
 
52
 */
 
53
#define ANJUTA_SYSTEM_PROFILE_NAME       "system"
 
54
 
 
55
/**
48
56
 * AnjutaProfileError:
49
57
 * @ANJUTA_PROFILE_ERROR_URI_READ_FAILED: Fail to read xml plugins list file.
50
58
 * @ANJUTA_PROFILE_ERROR_URI_WRITE_FAILED: Fail to write xml plugins list file.
55
63
typedef enum
56
64
{
57
65
        ANJUTA_PROFILE_ERROR_URI_READ_FAILED,
58
 
        ANJUTA_PROFILE_ERROR_URI_WRITE_FAILED
 
66
        ANJUTA_PROFILE_ERROR_URI_WRITE_FAILED,
 
67
        ANJUTA_PROFILE_ERROR_PLUGIN_MISSING
59
68
} AnjutaProfileError;
60
69
 
61
70
typedef struct _AnjutaProfileClass AnjutaProfileClass;
68
77
 
69
78
        /* Signals */
70
79
        void(* plugin_added) (AnjutaProfile *self,
71
 
                                                  AnjutaPluginDescription *plugin);
 
80
                                                  AnjutaPluginHandle *plugin);
72
81
        void(* plugin_removed) (AnjutaProfile *self,
73
 
                                                        AnjutaPluginDescription *plugin);
74
 
        void(* changed) (AnjutaProfile *self, GList *plugins);
 
82
                                                        AnjutaPluginHandle *plugin);
 
83
        void(* changed) (AnjutaProfile *self);
 
84
        void(* descoped) (AnjutaProfile *self);
 
85
        void(* scoped) (AnjutaProfile *self);
75
86
};
76
87
 
77
88
/**
92
103
                                                                   AnjutaPluginManager *plugin_manager);
93
104
const gchar *anjuta_profile_get_name (AnjutaProfile *profile);
94
105
void anjuta_profile_add_plugin (AnjutaProfile *profile,
95
 
                                                                AnjutaPluginDescription *plugin);
 
106
                                                                AnjutaPluginHandle *plugin);
96
107
void anjuta_profile_remove_plugin (AnjutaProfile *profile,
97
 
                                                                   AnjutaPluginDescription *plugin);
 
108
                                                                   AnjutaPluginHandle *plugin);
98
109
gboolean anjuta_profile_add_plugins_from_xml (AnjutaProfile *profile,
99
110
                                                                                          GFile* profile_xml_file,
100
111
                                                                                          gboolean exclude_from_sync,
101
112
                                                                                          GError **error);
102
113
gboolean anjuta_profile_has_plugin (AnjutaProfile *profile,
103
 
                                                                        AnjutaPluginDescription *plugin);
 
114
                                                                        AnjutaPluginHandle *plugin);
104
115
GList* anjuta_profile_get_plugins (AnjutaProfile *profile);
105
116
 
106
117
void anjuta_profile_set_sync_file (AnjutaProfile *profile,
107
118
                                                                  GFile *sync_file);
108
119
gboolean anjuta_profile_sync (AnjutaProfile *profile, GError **error);
109
120
 
 
121
gboolean anjuta_profile_load (AnjutaProfile *profile, GError **error);
 
122
gboolean anjuta_profile_unload (AnjutaProfile *profile, GError **error);
 
123
 
110
124
G_END_DECLS
111
125
 
112
126
#endif /* _ANJUTA_PROFILE_H_ */