diff options
author | Tomas Bzatek <tbzatek@redhat.com> | 2012-07-13 11:00:39 +0200 |
---|---|---|
committer | Tomas Bzatek <tbzatek@redhat.com> | 2012-07-31 11:59:37 +0200 |
commit | a40ac13ba62e33030f2097aada9fa022acd0744d (patch) | |
tree | 58c6d2904cbcecadd94827e94fe0e42483ac0c6f /daemon/gvfsjobprogress.h | |
parent | 71fcc2ee835cab71a481159de8b97ff412da6e49 (diff) |
gdbus: Push new GVfsJobProgress class
Forgotten from the 722ebaf0ab949ca5b844a387dc684b4e3185db75 commit
Diffstat (limited to 'daemon/gvfsjobprogress.h')
-rw-r--r-- | daemon/gvfsjobprogress.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/daemon/gvfsjobprogress.h b/daemon/gvfsjobprogress.h new file mode 100644 index 00000000..0e4d35b4 --- /dev/null +++ b/daemon/gvfsjobprogress.h @@ -0,0 +1,67 @@ +/* GIO - GLib Input, Output and Streaming Library + * + * Copyright (C) 2012 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Tomas Bzatek <tbzatek@redhat.com> + */ + +#ifndef __G_VFS_JOB_PROGRESS_H__ +#define __G_VFS_JOB_PROGRESS_H__ + +#include <gvfsjob.h> +#include <gvfsjobdbus.h> +#include <gvfsbackend.h> + +G_BEGIN_DECLS + +#define G_VFS_TYPE_JOB_PROGRESS (g_vfs_job_progress_get_type ()) +#define G_VFS_JOB_PROGRESS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_VFS_TYPE_JOB_PROGRESS, GVfsJobProgress)) +#define G_VFS_JOB_PROGRESS_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_VFS_TYPE_JOB_PROGRESS, GVfsJobProgressClass)) +#define G_VFS_IS_JOB_PROGRESS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_VFS_TYPE_JOB_PROGRESS)) +#define G_VFS_IS_JOB_PROGRESS_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_VFS_TYPE_JOB_PROGRESS)) +#define G_VFS_JOB_PROGRESS_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_VFS_TYPE_JOB_PROGRESS, GVfsJobProgressClass)) + +typedef struct _GVfsJobProgress GVfsJobProgress; +typedef struct _GVfsJobProgressClass GVfsJobProgressClass; + +struct _GVfsJobProgress +{ + GVfsJobDBus parent_instance; + + gboolean send_progress; + char *callback_obj_path; + GVfsDBusProgress *progress_proxy; +}; + +struct _GVfsJobProgressClass +{ + GVfsJobDBusClass parent_class; +}; + +GType g_vfs_job_progress_get_type (void) G_GNUC_CONST; + +void g_vfs_job_progress_callback (goffset current_num_bytes, + goffset total_num_bytes, + gpointer user_data); + +void g_vfs_job_progress_construct_proxy (GVfsJob *job); + + +G_END_DECLS + +#endif /* __G_VFS_JOB_PROGRESS_H__ */ |