Remmina - The GTK+ Remote Desktop Client  v1.4.27
Remmina is a remote desktop client written in GTK+, aiming to be useful for system administrators and travellers, who need to work with lots of remote computers in front of either large monitors or tiny netbooks. Remmina supports multiple network protocols in an integrated and consistent user interface. Currently RDP, VNC, NX, XDMCP and SSH are supported.
rmnews.c File Reference

Go to the source code of this file.

Functions

static void rmnews_on_stream_splice (GObject *source, GAsyncResult *result, gpointer user_data)
 
void rmnews_news_switch_state_set_cb ()
 
void rmnews_defaultcl_on_click ()
 
static gchar * rmnews_get_file_contents (gchar *path)
 
static void rmnews_close_clicked (GtkButton *btn, gpointer user_data)
 
static gboolean rmnews_dialog_deleted (GtkButton *btn, gpointer user_data)
 
void rmnews_show_news (GtkWindow *parent)
 
static void rmnews_get_url_cb (GObject *source, GAsyncResult *result, gpointer user_data)
 
static void rmnews_get_url_cb (SoupSession *session, SoupMessage *msg, gpointer data)
 
gchar * rmnews_get_uid ()
 Try to get a unique system+user ID to identify this remmina user and avoid some duplicated task, especially on news management. More...
 
void rmnews_get_url (const char *url)
 
void rmnews_get_news ()
 
static gboolean rmnews_periodic_check (gpointer user_data)
 
void rmnews_schedule ()
 

Variables

static RemminaNewsDialogrmnews_news_dialog
 
static SoupSession * session
 
static const gchar * output_file_path = NULL
 
static const gchar * supported_mime_types []
 
gint eweekdays [7]
 

Function Documentation

◆ rmnews_close_clicked()

static void rmnews_close_clicked ( GtkButton *  btn,
gpointer  user_data 
)
static

Definition at line 177 of file rmnews.c.

◆ rmnews_defaultcl_on_click()

void rmnews_defaultcl_on_click ( )

Definition at line 135 of file rmnews.c.

◆ rmnews_dialog_deleted()

static gboolean rmnews_dialog_deleted ( GtkButton *  btn,
gpointer  user_data 
)
static

Definition at line 187 of file rmnews.c.

◆ rmnews_get_file_contents()

static gchar* rmnews_get_file_contents ( gchar *  path)
static

Definition at line 161 of file rmnews.c.

◆ rmnews_get_news()

void rmnews_get_news ( )

Definition at line 527 of file rmnews.c.

◆ rmnews_get_uid()

gchar* rmnews_get_uid ( )

Try to get a unique system+user ID to identify this remmina user and avoid some duplicated task, especially on news management.

Returns
a string
Warning
The returned string must be freed with g_free.

Definition at line 471 of file rmnews.c.

◆ rmnews_get_url()

void rmnews_get_url ( const char *  url)

Definition at line 504 of file rmnews.c.

◆ rmnews_get_url_cb() [1/2]

static void rmnews_get_url_cb ( GObject *  source,
GAsyncResult *  result,
gpointer  user_data 
)
static

Definition at line 252 of file rmnews.c.

◆ rmnews_get_url_cb() [2/2]

static void rmnews_get_url_cb ( SoupSession *  session,
SoupMessage *  msg,
gpointer  data 
)
static

Definition at line 357 of file rmnews.c.

◆ rmnews_news_switch_state_set_cb()

void rmnews_news_switch_state_set_cb ( )

Definition at line 122 of file rmnews.c.

◆ rmnews_on_stream_splice()

static void rmnews_on_stream_splice ( GObject *  source,
GAsyncResult *  result,
gpointer  user_data 
)
static

Definition at line 107 of file rmnews.c.

◆ rmnews_periodic_check()

static gboolean rmnews_periodic_check ( gpointer  user_data)
static

Definition at line 624 of file rmnews.c.

◆ rmnews_schedule()

void rmnews_schedule ( )

Definition at line 664 of file rmnews.c.

◆ rmnews_show_news()

void rmnews_show_news ( GtkWindow *  parent)

Definition at line 198 of file rmnews.c.

Variable Documentation

◆ eweekdays

gint eweekdays[7]
Initial value:
= {
86400,
172800,
259200,
345600,
432000,
518400,
604800
}

Definition at line 95 of file rmnews.c.

◆ output_file_path

const gchar* output_file_path = NULL
static

Definition at line 83 of file rmnews.c.

◆ rmnews_news_dialog

RemminaNewsDialog* rmnews_news_dialog
static

Definition at line 73 of file rmnews.c.

◆ session

SoupSession* session
static

Definition at line 76 of file rmnews.c.

◆ supported_mime_types

const gchar* supported_mime_types[]
static
Initial value:
= {
"x-scheme-handler/rdp",
"x-scheme-handler/spice",
"x-scheme-handler/vnc",
"x-scheme-handler/remmina",
"application/x-remmina",
NULL
}

Definition at line 86 of file rmnews.c.