mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-20 04:28:12 +02:00
* gnome/vpn-properties/nm-vpn-properties.c:
* gnome/vpn-properties/nm-vpn-ui-interface.h:
* vpn-daemons/vpnc/properties/nm-vpnc.c:
Makeshift fix to remove newlines from translatable strings.
Note that we now return an allocated string, so callers of
get_confirmation_details () must now call g_free () on the
result. (fixes #309033).
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@846 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
84 lines
2.9 KiB
C
84 lines
2.9 KiB
C
/***************************************************************************
|
|
* CVSID: $Id$
|
|
*
|
|
* nm-vpn-ui-interface.h : Public interface for VPN UI editing widgets
|
|
*
|
|
* Copyright (C) 2005 David Zeuthen, <davidz@redhat.com>
|
|
*
|
|
* ===
|
|
* NOTE NOTE NOTE: All source for nm-vpn-properties is licensed to you
|
|
* under your choice of the Academic Free License version 2.0, or the
|
|
* GNU General Public License version 2.
|
|
* ===
|
|
*
|
|
* Licensed under the Academic Free License version 2.0
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*
|
|
**************************************************************************/
|
|
|
|
#ifndef NM_VPN_UI_INTERFACE_H
|
|
#define NM_VPN_UI_INTERFACE_H
|
|
|
|
#ifndef NM_VPN_API_SUBJECT_TO_CHANGE
|
|
#error "Please define NM_VPN_API_SUBJECT_TO_CHANGE to acknowledge your understanding that NetworkManager hasn't reached 1.0 and is subject to protocol and API churn. See the README for a full explanation."
|
|
#endif
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
struct _NetworkManagerVpnUI;
|
|
typedef struct _NetworkManagerVpnUI NetworkManagerVpnUI;
|
|
|
|
typedef void (*NetworkManagerVpnUIDialogValidityCallback) (NetworkManagerVpnUI *self,
|
|
gboolean is_valid,
|
|
gpointer user_data);
|
|
|
|
|
|
struct _NetworkManagerVpnUI {
|
|
const char *(*get_display_name) (NetworkManagerVpnUI *self);
|
|
|
|
const char *(*get_service_name) (NetworkManagerVpnUI *self);
|
|
|
|
GtkWidget *(*get_widget) (NetworkManagerVpnUI *self, GSList *properties, GSList *routes, const char *connection_name);
|
|
|
|
void (*set_validity_changed_callback) (NetworkManagerVpnUI *self,
|
|
NetworkManagerVpnUIDialogValidityCallback cb,
|
|
gpointer user_data);
|
|
|
|
gboolean (*is_valid) (NetworkManagerVpnUI *self);
|
|
|
|
/*
|
|
* get_confirmation_details:
|
|
* retval is allocated and must be freed
|
|
*/
|
|
void (*get_confirmation_details)(NetworkManagerVpnUI *self, gchar **retval);
|
|
|
|
char *(*get_connection_name) (NetworkManagerVpnUI *self);
|
|
|
|
GSList *(*get_properties) (NetworkManagerVpnUI *self);
|
|
|
|
GSList *(*get_routes) (NetworkManagerVpnUI *self);
|
|
|
|
gboolean (*can_export) (NetworkManagerVpnUI *self);
|
|
|
|
gboolean (*import_file) (NetworkManagerVpnUI *self, const char *path);
|
|
|
|
gboolean (*export) (NetworkManagerVpnUI *self, GSList *properties, GSList *routes, const char *connection_name);
|
|
|
|
gpointer data;
|
|
};
|
|
|
|
#endif /* NM_VPN_UI_INTERFACE_H */
|
|
|