Remmina - The GTK+ Remote Desktop Client  1.2.0
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.
remmina_file.c File Reference

Go to the source code of this file.

Functions

static RemminaFileremmina_file_new_empty (void)
 
RemminaFileremmina_file_new (void)
 
void remmina_file_generate_filename (RemminaFile *remminafile)
 
void remmina_file_set_filename (RemminaFile *remminafile, const gchar *filename)
 
const gchar * remmina_file_get_filename (RemminaFile *remminafile)
 
RemminaFileremmina_file_copy (const gchar *filename)
 
static const RemminaProtocolSettingfind_protocol_setting (const gchar *name, RemminaProtocolPlugin *protocol_plugin)
 
RemminaFileremmina_file_load (const gchar *filename)
 
void remmina_file_set_string (RemminaFile *remminafile, const gchar *setting, const gchar *value)
 
void remmina_file_set_string_ref (RemminaFile *remminafile, const gchar *setting, gchar *value)
 
const gchar * remmina_file_get_string (RemminaFile *remminafile, const gchar *setting)
 
gchar * remmina_file_get_secret (RemminaFile *remminafile, const gchar *setting)
 
void remmina_file_set_int (RemminaFile *remminafile, const gchar *setting, gint value)
 
gint remmina_file_get_int (RemminaFile *remminafile, const gchar *setting, gint default_value)
 
static GKeyFile * remmina_file_get_keyfile (RemminaFile *remminafile)
 
void remmina_file_free (RemminaFile *remminafile)
 
void remmina_file_save (RemminaFile *remminafile)
 
void remmina_file_store_secret_plugin_password (RemminaFile *remminafile, const gchar *key, const gchar *value)
 
RemminaFileremmina_file_dup (RemminaFile *remminafile)
 
const gchar * remmina_file_get_icon_name (RemminaFile *remminafile)
 
RemminaFileremmina_file_dup_temp_protocol (RemminaFile *remminafile, const gchar *new_protocol)
 
void remmina_file_delete (const gchar *filename)
 
void remmina_file_unsave_password (RemminaFile *remminafile)
 
gchar * remmina_file_get_datetime (RemminaFile *remminafile)
 Return the string date of the last time a file has been modified. More...
 
void remmina_file_touch (RemminaFile *remminafile)
 Update the atime and mtime of a given filename. More...
 

Variables

static struct timespec times [2]
 

Function Documentation

◆ find_protocol_setting()

static const RemminaProtocolSetting* find_protocol_setting ( const gchar *  name,
RemminaProtocolPlugin protocol_plugin 
)
static

Definition at line 151 of file remmina_file.c.

Here is the call graph for this function:

◆ remmina_file_copy()

RemminaFile* remmina_file_copy ( const gchar *  filename)

Definition at line 138 of file remmina_file.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ remmina_file_delete()

void remmina_file_delete ( const gchar *  filename)

Definition at line 522 of file remmina_file.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ remmina_file_dup()

RemminaFile* remmina_file_dup ( RemminaFile remminafile)

Definition at line 477 of file remmina_file.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ remmina_file_dup_temp_protocol()

RemminaFile* remmina_file_dup_temp_protocol ( RemminaFile remminafile,
const gchar *  new_protocol 
)

Definition at line 510 of file remmina_file.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ remmina_file_free()

void remmina_file_free ( RemminaFile remminafile)

Definition at line 373 of file remmina_file.c.

Here is the caller graph for this function:

◆ remmina_file_generate_filename()

void remmina_file_generate_filename ( RemminaFile remminafile)

Definition at line 105 of file remmina_file.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ remmina_file_get_datetime()

gchar* remmina_file_get_datetime ( RemminaFile remminafile)

Return the string date of the last time a file has been modified.

This is used to return the modification date of a file and it's used to return the modification date and time of a givwn remmina file. If it fails it will return "26/01/1976 23:30:00", that is just a date to don't return an empty string (challenge: what was happened that day at that time?).

Returns
A date string in the form "%d/%m/%Y %H:%M:%S".
Todo:
This should be moved to remmina_utils.c

Definition at line 590 of file remmina_file.c.

Here is the caller graph for this function:

◆ remmina_file_get_filename()

const gchar* remmina_file_get_filename ( RemminaFile remminafile)

Definition at line 131 of file remmina_file.c.

Here is the caller graph for this function:

◆ remmina_file_get_icon_name()

const gchar* remmina_file_get_icon_name ( RemminaFile remminafile)

Definition at line 496 of file remmina_file.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ remmina_file_get_int()

gint remmina_file_get_int ( RemminaFile remminafile,
const gchar *  setting,
gint  default_value 
)

Definition at line 349 of file remmina_file.c.

Here is the caller graph for this function:

◆ remmina_file_get_keyfile()

static GKeyFile* remmina_file_get_keyfile ( RemminaFile remminafile)
static

Definition at line 359 of file remmina_file.c.

Here is the caller graph for this function:

◆ remmina_file_get_secret()

gchar* remmina_file_get_secret ( RemminaFile remminafile,
const gchar *  setting 
)

Definition at line 333 of file remmina_file.c.

Here is the call graph for this function:

◆ remmina_file_get_string()

const gchar* remmina_file_get_string ( RemminaFile remminafile,
const gchar *  setting 
)

Definition at line 298 of file remmina_file.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ remmina_file_load()

RemminaFile* remmina_file_load ( const gchar *  filename)

Definition at line 182 of file remmina_file.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ remmina_file_new()

RemminaFile* remmina_file_new ( void  )

Definition at line 87 of file remmina_file.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ remmina_file_new_empty()

static RemminaFile* remmina_file_new_empty ( void  )
static

Definition at line 71 of file remmina_file.c.

Here is the caller graph for this function:

◆ remmina_file_save()

void remmina_file_save ( RemminaFile remminafile)

Definition at line 386 of file remmina_file.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ remmina_file_set_filename()

void remmina_file_set_filename ( RemminaFile remminafile,
const gchar *  filename 
)

Definition at line 123 of file remmina_file.c.

Here is the caller graph for this function:

◆ remmina_file_set_int()

void remmina_file_set_int ( RemminaFile remminafile,
const gchar *  setting,
gint  value 
)

Definition at line 343 of file remmina_file.c.

Here is the caller graph for this function:

◆ remmina_file_set_string()

void remmina_file_set_string ( RemminaFile remminafile,
const gchar *  setting,
const gchar *  value 
)

Definition at line 272 of file remmina_file.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ remmina_file_set_string_ref()

void remmina_file_set_string_ref ( RemminaFile remminafile,
const gchar *  setting,
gchar *  value 
)

Definition at line 278 of file remmina_file.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ remmina_file_store_secret_plugin_password()

void remmina_file_store_secret_plugin_password ( RemminaFile remminafile,
const gchar *  key,
const gchar *  value 
)

Definition at line 458 of file remmina_file.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ remmina_file_touch()

void remmina_file_touch ( RemminaFile remminafile)

Update the atime and mtime of a given filename.

Function used to update the atime and mtime of a given remmina file, partially taken from suckless sbase

See also
https://git.suckless.org/sbase/tree/touch.c
Todo:
This should be moved to remmina_utils.c

Definition at line 640 of file remmina_file.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ remmina_file_unsave_password()

void remmina_file_unsave_password ( RemminaFile remminafile)

Definition at line 535 of file remmina_file.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ times

struct timespec times[2]
static

Definition at line 68 of file remmina_file.c.