25
25
#include <gdk-pixbuf/gdk-pixbuf.h>
29
#define VINAGRE_TYPE_CONNECTION (vinagre_connection_get_type ())
30
#define VINAGRE_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VINAGRE_TYPE_CONNECTION, VinagreConnection))
31
#define VINAGRE_CONNECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VINAGRE_TYPE_CONNECTION, VinagreConnectionClass))
32
#define VINAGRE_IS_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VINAGRE_TYPE_CONNECTION))
33
#define VINAGRE_IS_CONNECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VINAGRE_TYPE_CONNECTION))
34
#define VINAGRE_CONNECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VINAGRE_TYPE_CONNECTION, VinagreConnectionClass))
36
typedef struct _VinagreConnectionClass VinagreConnectionClass;
37
typedef struct _VinagreConnection VinagreConnection;
38
typedef struct _VinagreConnectionPrivate VinagreConnectionPrivate;
29
VINAGRE_CONNECTION_TYPE_VNC = 0
30
} VinagreConnectionType;
39
VinagreConnectionType type;
42
VINAGRE_CONNECTION_PROTOCOL_VNC = 1,
43
VINAGRE_CONNECTION_PROTOCOL_RDP,
44
VINAGRE_CONNECTION_PROTOCOL_INVALID
45
} VinagreConnectionProtocol;
47
struct _VinagreConnectionClass
49
GObjectClass parent_class;
52
struct _VinagreConnection
54
GObject parent_instance;
55
VinagreConnectionPrivate *priv;
58
GType vinagre_connection_get_type (void) G_GNUC_CONST;
42
60
VinagreConnection *vinagre_connection_new (void);
44
void vinagre_connection_set_host (VinagreConnection *conn,
46
void vinagre_connection_set_port (VinagreConnection *conn,
48
void vinagre_connection_set_password (VinagreConnection *conn,
49
const char *password);
50
void vinagre_connection_set_name (VinagreConnection *conn,
52
void vinagre_connection_set_desktop_name (VinagreConnection *conn,
53
const char *desktop_name);
55
void vinagre_connection_free (VinagreConnection *conn);
57
gchar *vinagre_connection_best_name (VinagreConnection *conn);
59
VinagreConnection *vinagre_connection_clone (VinagreConnection *conn);
61
VinagreConnection *vinagre_connection_new_from_string (const gchar *url, gchar **error_msg);
62
VinagreConnection *vinagre_connection_new_from_file (const gchar *uri, gchar **error_msg);
64
GdkPixbuf *vinagre_connection_get_icon (VinagreConnection *conn);
62
VinagreConnectionProtocol vinagre_connection_get_protocol (VinagreConnection *conn);
63
void vinagre_connection_set_protocol (VinagreConnection *conn,
64
VinagreConnectionProtocol protocol);
66
const gchar* vinagre_connection_get_host (VinagreConnection *conn);
67
void vinagre_connection_set_host (VinagreConnection *conn,
70
gint vinagre_connection_get_port (VinagreConnection *conn);
71
void vinagre_connection_set_port (VinagreConnection *conn,
74
const gchar* vinagre_connection_get_password (VinagreConnection *conn);
75
void vinagre_connection_set_password (VinagreConnection *conn,
76
const gchar *password);
78
const gchar* vinagre_connection_get_name (VinagreConnection *conn);
79
void vinagre_connection_set_name (VinagreConnection *conn,
82
const gchar* vinagre_connection_get_desktop_name (VinagreConnection *conn);
83
void vinagre_connection_set_desktop_name (VinagreConnection *conn,
84
const gchar *desktop_name);
86
gchar* vinagre_connection_get_best_name (VinagreConnection *conn);
88
VinagreConnection* vinagre_connection_clone (VinagreConnection *conn);
90
VinagreConnection* vinagre_connection_new_from_string (const gchar *url, gchar **error_msg);
91
VinagreConnection* vinagre_connection_new_from_file (const gchar *uri, gchar **error_msg);
93
GdkPixbuf* vinagre_connection_get_icon (VinagreConnection *conn);
95
gboolean vinagre_connection_get_view_only (VinagreConnection *conn);
96
void vinagre_connection_set_view_only (VinagreConnection *conn,
99
gboolean vinagre_connection_get_scaling (VinagreConnection *conn);
100
void vinagre_connection_set_scaling (VinagreConnection *conn,
103
gboolean vinagre_connection_get_fullscreen (VinagreConnection *conn);
104
void vinagre_connection_set_fullscreen (VinagreConnection *conn,
107
gboolean vinagre_connection_split_string (const gchar *uri,
112
gchar* vinagre_connection_get_string_rep (VinagreConnection *conn,
113
gboolean has_protocol);
66
116
#endif /* __VINAGRE_CONNECTION_H__ */