Remmina - The GTK+ Remote Desktop Client  v1.4.2
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_ftp_client.h
Go to the documentation of this file.
1 /*
2  * Remmina - The GTK+ Remote Desktop Client
3  * Copyright (C) 2009-2010 Vic Lee
4  * Copyright (C) 2014-2015 Antenore Gatta, Fabio Castelli, Giovanni Panozzo
5  * Copyright (C) 2016-2020 Antenore Gatta, Giovanni Panozzo
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  * Boston, MA 02110-1301, USA.
21  *
22  * In addition, as a special exception, the copyright holders give
23  * permission to link the code of portions of this program with the
24  * OpenSSL library under certain conditions as described in each
25  * individual source file, and distribute linked combinations
26  * including the two.
27  * You must obey the GNU General Public License in all respects
28  * for all of the code used other than OpenSSL. * If you modify
29  * file(s) with this exception, you may extend this exception to your
30  * version of the file(s), but you are not obligated to do so. * If you
31  * do not wish to do so, delete this exception statement from your
32  * version. * If you delete this exception statement from all source
33  * files in the program, then also delete it here.
34  *
35  */
36 
37 #pragma once
38 
39 G_BEGIN_DECLS
40 
41 #define REMMINA_TYPE_FTP_CLIENT (remmina_ftp_client_get_type())
42 #define REMMINA_FTP_CLIENT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), REMMINA_TYPE_FTP_CLIENT, RemminaFTPClient))
43 #define REMMINA_FTP_CLIENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), REMMINA_TYPE_FTP_CLIENT, RemminaFTPClientClass))
44 #define REMMINA_IS_FTP_CLIENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), REMMINA_TYPE_FTP_CLIENT))
45 #define REMMINA_IS_FTP_CLIENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), REMMINA_TYPE_FTP_CLIENT))
46 #define REMMINA_FTP_CLIENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), REMMINA_TYPE_FTP_CLIENT, RemminaFTPClientClass))
47 
48 typedef struct _RemminaFTPClientPriv RemminaFTPClientPriv;
49 
50 typedef struct _RemminaFTPClient {
51  GtkVBox vbox;
52 
55 
56 typedef struct _RemminaFTPClientClass {
57  GtkVBoxClass parent_class;
58 
59  void (*open_dir)(RemminaFTPClient *client);
60  void (*new_task)(RemminaFTPClient *client);
61  void (*cancel_task)(RemminaFTPClient *client);
62  void (*delete_file)(RemminaFTPClient *client);
64 
66 G_GNUC_CONST;
67 
68 enum {
70 };
71 
72 enum {
79  REMMINA_FTP_FILE_COLUMN_NAME_SORT, /* Auto populate */
81 };
82 
83 enum {
85 };
86 
87 enum {
93 };
94 
95 enum {
107 };
108 
109 typedef struct _RemminaFTPTask {
110  /* Read-only */
111  gint type;
112  gchar * name;
113  gint taskid;
114  gint tasktype;
115  gchar * remotedir;
116  gchar * localdir;
117  GtkTreeRowReference * rowref;
118  /* Updatable */
119  gfloat size;
120  gint status;
121  gfloat donesize;
122  gchar * tooltip;
124 
125 GtkWidget *remmina_ftp_client_new(void);
126 
129 
130 void remmina_ftp_client_set_show_hidden(RemminaFTPClient *client, gboolean show_hidden);
132 /* column, value, …, -1 */
134 /* Set the current directory. Should be called by opendir signal handler */
135 void remmina_ftp_client_set_dir(RemminaFTPClient *client, const gchar *dir);
136 /* Get the current directory as newly allocated string */
138 /* Get the next waiting task */
140 /* Update the task */
142 /* Free the RemminaFTPTask object */
144 /* Get/Set Set overwrite_all status */
145 void remmina_ftp_client_set_overwrite_status(RemminaFTPClient *client, gboolean status);
147 
148 G_END_DECLS
void remmina_ftp_client_set_show_hidden(RemminaFTPClient *client, gboolean show_hidden)
void remmina_ftp_client_set_overwrite_status(RemminaFTPClient *client, gboolean status)
void remmina_ftp_client_add_file(RemminaFTPClient *client,...)
struct _RemminaFTPClientPriv RemminaFTPClientPriv
GType remmina_ftp_client_get_type(void) G_GNUC_CONST
typedefG_BEGIN_DECLS struct _RemminaFile RemminaFile
Definition: types.h:41
void remmina_ftp_client_clear_file_list(RemminaFTPClient *client)
void remmina_ftp_client_load_state(RemminaFTPClient *client, RemminaFile *remminafile)
struct _RemminaFTPTask RemminaFTPTask
gboolean remmina_ftp_client_get_overwrite_status(RemminaFTPClient *client)
struct _RemminaFTPClient RemminaFTPClient
RemminaFTPTask * remmina_ftp_client_get_waiting_task(RemminaFTPClient *client)
struct _RemminaFTPClientClass RemminaFTPClientClass
RemminaFTPClientPriv * priv
gchar * remmina_ftp_client_get_dir(RemminaFTPClient *client)
GtkWidget * remmina_ftp_client_new(void)
void remmina_ftp_client_set_dir(RemminaFTPClient *client, const gchar *dir)
void remmina_ftp_task_free(RemminaFTPTask *task)
void remmina_ftp_client_save_state(RemminaFTPClient *client, RemminaFile *remminafile)
GtkTreeRowReference * rowref
void remmina_ftp_client_update_task(RemminaFTPClient *client, RemminaFTPTask *task)