~ubuntu-branches/debian/squeeze/vinagre/squeeze

« back to all changes in this revision

Viewing changes to src/vinagre-connection.h

  • Committer: Bazaar Package Importer
  • Author(s): Josselin Mouette
  • Date: 2009-04-09 18:50:14 UTC
  • mfrom: (9.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090409185014-800i3rv260ddnmiy
Tags: 2.24.2-3
* Build-depend on docbook-xml. Closes: #518461.
* Standards version is 3.8.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include <glib.h>
25
25
#include <gdk-pixbuf/gdk-pixbuf.h>
26
26
 
 
27
G_BEGIN_DECLS
 
28
 
 
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))
 
35
 
 
36
typedef struct _VinagreConnectionClass   VinagreConnectionClass;
 
37
typedef struct _VinagreConnection        VinagreConnection;
 
38
typedef struct _VinagreConnectionPrivate VinagreConnectionPrivate;
 
39
 
27
40
typedef enum
28
41
{
29
 
  VINAGRE_CONNECTION_TYPE_VNC = 0
30
 
} VinagreConnectionType;
31
 
 
32
 
typedef struct
33
 
{
34
 
  char *host;
35
 
  int   port;
36
 
  char *name;
37
 
  char *password;
38
 
  char *desktop_name;
39
 
  VinagreConnectionType type;
40
 
} VinagreConnection;
 
42
  VINAGRE_CONNECTION_PROTOCOL_VNC = 1,
 
43
  VINAGRE_CONNECTION_PROTOCOL_RDP,
 
44
  VINAGRE_CONNECTION_PROTOCOL_INVALID
 
45
} VinagreConnectionProtocol;
 
46
 
 
47
struct _VinagreConnectionClass
 
48
{
 
49
  GObjectClass parent_class;
 
50
};
 
51
 
 
52
struct _VinagreConnection
 
53
{
 
54
  GObject parent_instance;
 
55
  VinagreConnectionPrivate *priv;
 
56
};
 
57
 
 
58
GType vinagre_connection_get_type (void) G_GNUC_CONST;
41
59
 
42
60
VinagreConnection *vinagre_connection_new (void);
43
61
 
44
 
void               vinagre_connection_set_host          (VinagreConnection *conn,
45
 
                                                         const char *host);
46
 
void               vinagre_connection_set_port          (VinagreConnection *conn,
47
 
                                                         int port);
48
 
void               vinagre_connection_set_password      (VinagreConnection *conn,
49
 
                                                         const char *password);
50
 
void               vinagre_connection_set_name          (VinagreConnection *conn,
51
 
                                                         const char *name);
52
 
void               vinagre_connection_set_desktop_name  (VinagreConnection *conn,
53
 
                                                         const char *desktop_name);
54
 
 
55
 
void               vinagre_connection_free              (VinagreConnection *conn);
56
 
 
57
 
gchar             *vinagre_connection_best_name         (VinagreConnection *conn);
58
 
 
59
 
VinagreConnection *vinagre_connection_clone             (VinagreConnection *conn);
60
 
 
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);
63
 
 
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);
 
65
 
 
66
const gchar*        vinagre_connection_get_host         (VinagreConnection *conn);
 
67
void                vinagre_connection_set_host         (VinagreConnection *conn,
 
68
                                                         const gchar *host);
 
69
 
 
70
gint                vinagre_connection_get_port         (VinagreConnection *conn);
 
71
void                vinagre_connection_set_port         (VinagreConnection *conn,
 
72
                                                         gint port);
 
73
 
 
74
const gchar*        vinagre_connection_get_password     (VinagreConnection *conn);
 
75
void                vinagre_connection_set_password     (VinagreConnection *conn,
 
76
                                                         const gchar *password);
 
77
 
 
78
const gchar*        vinagre_connection_get_name         (VinagreConnection *conn);
 
79
void                vinagre_connection_set_name         (VinagreConnection *conn,
 
80
                                                         const gchar *name);
 
81
 
 
82
const gchar*        vinagre_connection_get_desktop_name (VinagreConnection *conn);
 
83
void                vinagre_connection_set_desktop_name (VinagreConnection *conn,
 
84
                                                         const gchar *desktop_name);
 
85
 
 
86
gchar*              vinagre_connection_get_best_name    (VinagreConnection *conn);
 
87
 
 
88
VinagreConnection*  vinagre_connection_clone            (VinagreConnection *conn);
 
89
 
 
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);
 
92
 
 
93
GdkPixbuf*          vinagre_connection_get_icon (VinagreConnection *conn);
 
94
 
 
95
gboolean            vinagre_connection_get_view_only    (VinagreConnection *conn);
 
96
void                vinagre_connection_set_view_only    (VinagreConnection *conn,
 
97
                                                         gboolean value);
 
98
 
 
99
gboolean            vinagre_connection_get_scaling      (VinagreConnection *conn);
 
100
void                vinagre_connection_set_scaling      (VinagreConnection *conn,
 
101
                                                         gboolean value);
 
102
 
 
103
gboolean            vinagre_connection_get_fullscreen   (VinagreConnection *conn);
 
104
void                vinagre_connection_set_fullscreen   (VinagreConnection *conn,
 
105
                                                         gboolean value);
 
106
 
 
107
gboolean            vinagre_connection_split_string     (const gchar *uri,
 
108
                                                         gchar **host,
 
109
                                                         gint *port,
 
110
                                                         gchar **error_msg);
 
111
 
 
112
gchar*              vinagre_connection_get_string_rep   (VinagreConnection *conn,
 
113
                                                         gboolean has_protocol);
 
114
G_END_DECLS
65
115
 
66
116
#endif /* __VINAGRE_CONNECTION_H__  */
67
 
/* vim: ts=8 */
 
117
/* vim: set ts=8: */