~asac/network-manager/main.eni

« back to all changes in this revision

Viewing changes to libnm-glib/nm-vpn-plugin-ui-interface.h

  • Committer: Alexander Sack
  • Date: 2008-09-21 11:14:48 UTC
  • mfrom: (2752.1.791)
  • Revision ID: asac@jwsdot.com-20080921111448-bg6f03p9ju57m3sq
* merge Sat 2008-09-20 21:06:33 +0000 rev 3543 from upstream; this includes
  this merge contains the initial ifupdown upstream landing

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
         * by the caller.
104
104
         */
105
105
        char * (*get_suggested_name) (NMVpnPluginUiInterface *iface, NMConnection *connection);
 
106
 
 
107
        /* Called when the user has chosen to remove the connection (for user
 
108
         * connections only; system connections are handled by the system
 
109
         * settings service).  Should clear out any VPN-specific secrets or data
 
110
         * related to the connection.
 
111
         */
 
112
        gboolean (*delete_connection) (NMVpnPluginUiInterface *iface, NMConnection *connection, GError **error);
106
113
};
107
114
 
108
115
GType nm_vpn_plugin_ui_interface_get_type (void);
125
132
char *nm_vpn_plugin_ui_interface_get_suggested_name (NMVpnPluginUiInterface *iface,
126
133
                                                     NMConnection *connection);
127
134
 
 
135
gboolean nm_vpn_plugin_ui_interface_delete_connection (NMVpnPluginUiInterface *iface,
 
136
                                                       NMConnection *connection,
 
137
                                                       GError **error);
 
138
 
128
139
 
129
140
/**************************************************/
130
141
/* UI widget interface                            */
152
163
                                       NMConnection *connection,
153
164
                                       GError **error);
154
165
 
 
166
        /* Called when the user has chosen to save the connection (for user
 
167
         * connections only; system connections are handled by the system
 
168
         * settings service).  Should save VPN-specific connection secrets in
 
169
         * a way that the auth-dialog can read them.
 
170
         */
 
171
        gboolean (*save_secrets) (NMVpnPluginUiWidgetInterface *iface,
 
172
                                  NMConnection *connection,
 
173
                                  GError **error);
 
174
 
155
175
        /* Emitted when the value of a UI widget changes.  May trigger a validity
156
176
         * check via update_connection() to write values to the connection */
157
177
        void (*changed) (NMVpnPluginUiWidgetInterface *iface);
165
185
                                                              NMConnection *connection,
166
186
                                                              GError **error);
167
187
 
 
188
gboolean nm_vpn_plugin_ui_widget_interface_save_secrets (NMVpnPluginUiWidgetInterface *iface,
 
189
                                                         NMConnection *connection,
 
190
                                                         GError **error);
 
191
 
168
192
G_END_DECLS
169
193
 
170
194
#endif  /* NM_VPN_PLUGIN_UI_INTERFACE_H */