/* vi:set sw=2 sts=2 ts=2 et ai: */ /*- * Copyright (c) 2009 Jannis Pohlmann . * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your option) any later version. * * This program 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 * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, * MA 02111-1307 USA */ #ifndef __THUNAR_JOB_H__ #define __THUNAR_JOB_H__ #include #include G_BEGIN_DECLS; typedef struct _ThunarJobData ThunarJobData; typedef gboolean (*ThunarJobFunc) (ThunarJobData *data); typedef struct _ThunarJobPrivate ThunarJobPrivate; typedef struct _ThunarJobClass ThunarJobClass; typedef struct _ThunarJob ThunarJob; #define THUNAR_TYPE_JOB (thunar_job_get_type ()) #define THUNAR_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), THUNAR_TYPE_JOB, ThunarJob)) #define THUNAR_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), THUNAR_TYPE_JOB, ThunarJobClass)) #define THUNAR_IS_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), THUNAR_TYPE_JOB)) #define THUNAR_IS_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), THUNAR_TYPE_JOB) #define THUNAR_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), THUNAR_TYPE_JOB, ThunarJobClass)) GType thunar_job_get_type (void) G_GNUC_CONST; void thunar_job_launch (ThunarJob *job); void thunar_job_cancel (ThunarJob *job); void thunar_job_emit_status_message (ThunarJobData *data, const gchar *message); gboolean thunar_job_emit_ask (ThunarJobData *data); struct _ThunarJobData { GIOSchedulerJob *gio_job; GCancellable *cancellable; ThunarJob *job; GError **error; GList *source_files; GList *target_files; }; G_END_DECLS; #endif /* !__THUNAR_JOB_H__ */