~ubuntu-branches/ubuntu/raring/remmina/raring

« back to all changes in this revision

Viewing changes to src/remminaftpclient.h

  • Committer: Package Import Robot
  • Author(s): Luca Falavigna
  • Date: 2012-02-11 17:28:48 UTC
  • mfrom: (1.2.8)
  • Revision ID: package-import@ubuntu.com-20120211172848-rh3ffi7075qyobuq
Tags: 1.0.0-1
* New upstream release.
  - Compatible with FreeRDP 1.0 (Closes: #658363).
  - Ported to GTK3, this also fixes an incompatibility with
    GTK2 and recent Avahi with GTK3 support, which lead to
    crashes when scanning network services (Closes: #626499).
* debian/patches/libvncserver.patch:
  - Do not use convenience copy of libvncserver.
* debian/patches/g_thread_init.patch:
  - Do not use deprecated g_thread_init function.
* debian/patches/REMMINA_COMMAND_NONE.patch:
  - Removed, obsoleted by GApplication port.
* debian/clean:
  - Remove spurious files created at build-time.
* debian/compat:
  - Bump compatibility level to 9.
* debian/control:
  - Refresh build-dependencies to match new structure.
  - Drop remmina-dev package, no longer used.
  - Build packages once provided by remmina-plugins.
  - Provide remmina-common package.
  - Provide remmina-plugin-gnome package.
* debian/copyright:
  - Refresh copyright information.
* debian/docs:
  - Documentation is no longer accurate, do not ship it anymore.
* debian/remmina-dev.install:
  - Drop remmina-dev package, no longer used.
* debian/remmina-plugin-telepathy.install:
  - Adjust location for Remmina.client.
  - Disable D-BUS support for now.
* debian/rules:
  - Compile with -DWITH_APPINDICATOR=OFF.
  - Do not treat plugins as shared libraries.
* debian/watch:
  - Adjust watch file to match new download location.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Remmina - The GTK+ Remote Desktop Client
3
 
 * Copyright (C) 2009-2010 Vic Lee 
4
 
 *
5
 
 * This program is free software; you can redistribute it and/or modify
6
 
 * it under the terms of the GNU General Public License as published by
7
 
 * the Free Software Foundation; either version 2 of the License, or
8
 
 * (at your option) any later version.
9
 
 *
10
 
 * This program is distributed in the hope that it will be useful,
11
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 
 * GNU General Public License for more details.
14
 
 *
15
 
 * You should have received a copy of the GNU General Public License
16
 
 * along with this program; if not, write to the Free Software
17
 
 * Foundation, Inc., 59 Temple Place, Suite 330, 
18
 
 * Boston, MA 02111-1307, USA.
19
 
 */
20
 
 
21
 
 
22
 
#ifndef __REMMINAFTPCLIENT_H__
23
 
#define __REMMINAFTPCLIENT_H__
24
 
 
25
 
G_BEGIN_DECLS
26
 
 
27
 
#define REMMINA_TYPE_FTP_CLIENT               (remmina_ftp_client_get_type ())
28
 
#define REMMINA_FTP_CLIENT(obj)               (G_TYPE_CHECK_INSTANCE_CAST ((obj), REMMINA_TYPE_FTP_CLIENT, RemminaFTPClient))
29
 
#define REMMINA_FTP_CLIENT_CLASS(klass)       (G_TYPE_CHECK_CLASS_CAST ((klass), REMMINA_TYPE_FTP_CLIENT, RemminaFTPClientClass))
30
 
#define REMMINA_IS_FTP_CLIENT(obj)            (G_TYPE_CHECK_INSTANCE_TYPE ((obj), REMMINA_TYPE_FTP_CLIENT))
31
 
#define REMMINA_IS_FTP_CLIENT_CLASS(klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), REMMINA_TYPE_FTP_CLIENT))
32
 
#define REMMINA_FTP_CLIENT_GET_CLASS(obj)     (G_TYPE_INSTANCE_GET_CLASS ((obj), REMMINA_TYPE_FTP_CLIENT, RemminaFTPClientClass))
33
 
 
34
 
typedef struct _RemminaFTPClientPriv RemminaFTPClientPriv;
35
 
 
36
 
typedef struct _RemminaFTPClient
37
 
{
38
 
    GtkVBox vbox;
39
 
 
40
 
    RemminaFTPClientPriv *priv;
41
 
} RemminaFTPClient;
42
 
 
43
 
typedef struct _RemminaFTPClientClass
44
 
{
45
 
    GtkVBoxClass parent_class;
46
 
 
47
 
    void (* open_dir) (RemminaFTPClient *client);
48
 
    void (* new_task) (RemminaFTPClient *client);
49
 
    void (* cancel_task) (RemminaFTPClient *client);
50
 
    void (* delete_file) (RemminaFTPClient *client);
51
 
} RemminaFTPClientClass;
52
 
 
53
 
GType remmina_ftp_client_get_type (void) G_GNUC_CONST;
54
 
 
55
 
enum
56
 
{
57
 
    REMMINA_FTP_FILE_TYPE_DIR,
58
 
    REMMINA_FTP_FILE_TYPE_FILE,
59
 
    REMMINA_FTP_FILE_N_TYPES,
60
 
};
61
 
 
62
 
enum
63
 
{
64
 
    REMMINA_FTP_FILE_COLUMN_TYPE,
65
 
    REMMINA_FTP_FILE_COLUMN_NAME,
66
 
    REMMINA_FTP_FILE_COLUMN_SIZE,
67
 
    REMMINA_FTP_FILE_COLUMN_USER,
68
 
    REMMINA_FTP_FILE_COLUMN_GROUP,
69
 
    REMMINA_FTP_FILE_COLUMN_PERMISSION,
70
 
    REMMINA_FTP_FILE_COLUMN_NAME_SORT, /* Auto populate */
71
 
    REMMINA_FTP_FILE_N_COLUMNS
72
 
};
73
 
 
74
 
enum
75
 
{
76
 
    REMMINA_FTP_TASK_TYPE_DOWNLOAD,
77
 
    REMMINA_FTP_TASK_TYPE_UPLOAD,
78
 
    REMMINA_FTP_TASK_N_TYPES
79
 
};
80
 
 
81
 
enum
82
 
{
83
 
    REMMINA_FTP_TASK_STATUS_WAIT,
84
 
    REMMINA_FTP_TASK_STATUS_RUN,
85
 
    REMMINA_FTP_TASK_STATUS_FINISH,
86
 
    REMMINA_FTP_TASK_STATUS_ERROR,
87
 
    REMMINA_FTP_TASK_N_STATUSES
88
 
};
89
 
 
90
 
enum
91
 
{
92
 
    REMMINA_FTP_TASK_COLUMN_TYPE,
93
 
    REMMINA_FTP_TASK_COLUMN_NAME,
94
 
    REMMINA_FTP_TASK_COLUMN_SIZE,
95
 
    REMMINA_FTP_TASK_COLUMN_TASKID,
96
 
    REMMINA_FTP_TASK_COLUMN_TASKTYPE,
97
 
    REMMINA_FTP_TASK_COLUMN_REMOTEDIR,
98
 
    REMMINA_FTP_TASK_COLUMN_LOCALDIR,
99
 
    REMMINA_FTP_TASK_COLUMN_STATUS,
100
 
    REMMINA_FTP_TASK_COLUMN_DONESIZE,
101
 
    REMMINA_FTP_TASK_COLUMN_TOOLTIP,
102
 
    REMMINA_FTP_TASK_N_COLUMNS
103
 
};
104
 
 
105
 
typedef struct _RemminaFTPTask
106
 
{
107
 
    /* Read-only */
108
 
    gint type;
109
 
    gchar *name;
110
 
    gint taskid;
111
 
    gint tasktype;
112
 
    gchar *remotedir;
113
 
    gchar *localdir;
114
 
    GtkTreeRowReference *rowref;
115
 
    /* Updatable */
116
 
    gfloat size;
117
 
    gint status;
118
 
    gfloat donesize;
119
 
    gchar *tooltip;
120
 
} RemminaFTPTask;
121
 
 
122
 
GtkWidget* remmina_ftp_client_new (void);
123
 
 
124
 
void remmina_ftp_client_save_state (RemminaFTPClient *client, RemminaFile *remminafile);
125
 
void remmina_ftp_client_load_state (RemminaFTPClient *client, RemminaFile *remminafile);
126
 
 
127
 
void remmina_ftp_client_set_show_hidden (RemminaFTPClient *client, gboolean show_hidden);
128
 
void remmina_ftp_client_clear_file_list (RemminaFTPClient *client);
129
 
/* column, value, ..., -1 */
130
 
void remmina_ftp_client_add_file (RemminaFTPClient *client, ...);
131
 
/* Set the current directory. Should be called by opendir signal handler */
132
 
void remmina_ftp_client_set_dir (RemminaFTPClient *client, const gchar *dir);
133
 
/* Get the current directory as newly allocated string */
134
 
gchar* remmina_ftp_client_get_dir (RemminaFTPClient *client);
135
 
/* Get the next waiting task */
136
 
RemminaFTPTask* remmina_ftp_client_get_waiting_task (RemminaFTPClient *client);
137
 
/* Update the task */
138
 
void remmina_ftp_client_update_task (RemminaFTPClient *client, RemminaFTPTask* task);
139
 
/* Free the RemminaFTPTask object */
140
 
void remmina_ftp_task_free (RemminaFTPTask *task);
141
 
 
142
 
G_END_DECLS
143
 
 
144
 
#endif  /* __REMMINAFTPCLIENT_H__  */
145