aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-file-activity.h
blob: b4a5433c21ed43de01869bba9c96af2e5916ad27 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/*
 * e-file-activity.h
 *
 * This program 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) version 3.
 *
 * 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with the program; if not, see <http://www.gnu.org/licenses/>
 *
 *
 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
 *
 */

#ifndef E_FILE_ACTIVITY_H
#define E_FILE_ACTIVITY_H

#include <gio/gio.h>
#include <widgets/misc/e-activity.h>

/* Standard GObject macros */
#define E_TYPE_FILE_ACTIVITY \
    (e_file_activity_get_type ())
#define E_FILE_ACTIVITY(obj) \
    (G_TYPE_CHECK_INSTANCE_CAST \
    ((obj), E_TYPE_FILE_ACTIVITY, EFileActivity))
#define E_FILE_ACTIVITY_CLASS(cls) \
    (G_TYPE_CHECK_CLASS_CAST \
    ((cls), E_TYPE_FILE_ACTIVITY, EFileActivityClass))
#define E_IS_FILE_ACTIVITY(obj) \
    (G_TYPE_CHECK_INSTANCE_TYPE \
    ((obj), E_TYPE_FILE_ACTIVITY))
#define E_IS_FILE_ACTIVITY_CLASS(cls) \
    (G_TYPE_CHECK_CLASS_TYPE \
    ((cls), E_TYPE_FILE_ACTIVITY))
#define E_FILE_ACTIVITY_GET_CLASS(obj) \
    (G_TYPE_INSTANCE_GET_CLASS \
    ((obj), E_TYPE_FILE_ACTIVITY, EFileActivityClass))

G_BEGIN_DECLS

typedef struct _EFileActivity EFileActivity;
typedef struct _EFileActivityClass EFileActivityClass;
typedef struct _EFileActivityPrivate EFileActivityPrivate;

struct _EFileActivity {
    EActivity parent;
    EFileActivityPrivate *priv;
};

struct _EFileActivityClass {
    EActivityClass parent_class;
};

GType       e_file_activity_get_type    (void);
EActivity * e_file_activity_new     (const gchar *primary_text);
EActivity * e_file_activity_newv        (const gchar *format,
                         ...) G_GNUC_PRINTF (1, 2);
GCancellable *  e_file_activity_get_cancellable (EFileActivity *file_activity);
void        e_file_activity_set_cancellable (EFileActivity *file_activity,
                         GCancellable *cancellable);
GFile *     e_file_activity_get_file    (EFileActivity *file_activity);
void        e_file_activity_set_file    (EFileActivity *file_activity,
                         GFile *file);
GAsyncResult *  e_file_activity_get_result  (EFileActivity *file_activity);
void        e_file_activity_set_result  (EFileActivity *file_activity,
                         GAsyncResult *result);

/* This can be used as a GFileProgressCallback. */
void        e_file_activity_progress    (goffset current_num_bytes,
                         goffset total_num_bytes,
                         gpointer activity);

G_END_DECLS

#endif /* E_FILE_ACTIVITY_H */
d>6-14/+28 * - Remove unneeded dependency from gtk12/gtk20 [1]miwi2008-04-2015-50/+49 * Update to 8.1.2. Bug fixes and enhancements can be found athrs2008-04-141-3/+3 * - Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORGmiwi2008-03-253-5/+2 * - Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORGmiwi2008-03-243-5/+2 * Update to Qt 4.3.4lofi2008-03-142-5/+3 * Reset relaxbsd@gmail.com due to maintainer-timeouts.linimon2008-03-021-1/+1 * - Update to 0.0.7rafan2008-02-074-26/+14 * To use termios.cjh2008-02-042-6/+85 * Update to 0.99.1perky2008-01-222-5/+5 * Avoid the need for running autoconf by touching configure.arved2008-01-121-2/+5 * Add Adobe Reader 8.1.1 and localized versions (total 15hrs2008-01-053-0/+19 * Update to 0.19perky2007-12-173-58/+52 * - Chase libhangul updatepav2007-12-151-2/+2 * - Update to 0.0.6pav2007-12-155-30/+41 * Update to KDE 3.5.8lofi2007-10-304-6/+488 * Presenting GNOME 2.20.1 and all related works for FreeBSD. The officialmarcus2007-10-253-54/+56 * Remove expired Emacs ports and the surrounding expired ports:vd2007-10-143-53/+0 * Replace all INSTALL_DATA/INSTALL_SCRIPT and INSTALL_PROGRAM/STRIP=edwin2007-10-071-1/+2 * Remove support for OSVERSION < 5edwin2007-10-041-4/+1 * Switch autoconf dependencies from 2.53 or 2.59 to 2.61.linimon2007-09-302-5/+5 * Update to Qt 4.3.1.lofi2007-09-023-8/+8 * 2007-08-19 www/emacs-w3m-emacs20: emacs20 and related ports are obsolete; ple...miwi2007-08-1915-2416/+0 * - bsd.qt.mk:lofi2007-08-032-7/+3 * Update to the autotools new world order.ade2007-07-282-8/+7 * Start the deorbit burn of ports that are multilingual versions of emacs19linimon2007-07-191-0/+3 * Start the deorbit burn of emacs19 and dependent files. They are antiquated.linimon2007-07-191-0/+3 * Update to Qt 4.3.0, introduce bsd.qt.mk.lofi2007-07-162-18/+8 * - Change maintainer addressbeech2007-07-051-3/+3 * Update to KDE 3.5.7 / KOffice 1.6.3lofi2007-07-044-8/+6 * Chase the addition of kld category to some missing portsedwin2007-06-301-1/+1 * Add new .mo file (pa translation).cjh2007-06-271-0/+1 * Update to 0.3.1. It depends ko-libhangul now.cjh2007-06-242-5/+7 * make it use termios instead of sgtty.cjh2007-06-122-1/+13 * Korean and foreign language Dictionaries for StarDict.miwi2007-06-054-0/+89 * Remove expired ports:gabor2007-06-0419-652/+0 * merge two patches from irc/bitchx and disable plugins to fix build on CURRENTarved2007-05-304-18/+24 * - Welcome X.org 7.2 \o/.flz2007-05-2031-23/+29 * Update to 0.57, remove cruft, and take maintainership.lx2007-04-296-19/+38 * Cleanup ghostscript-gnu-commfont and related CJK font support meta ports.hrs2007-04-282-5/+20 * Rename all binaries in qt4 which conflict with binaries installed bylofi2007-04-201-1/+1 * Fix plist after upgrading scim to 1.4.5.ume2007-04-022-7/+5 * - Fix after objformat removalpav2007-03-291-17/+6 * Update to 4.2.3lofi2007-03-252-4/+4 * Update to KDE 3.5.6 / KOffice 1.6.2lofi2007-03-142-6/+6 * 2007-03-10 java/janosvm: Broken on all supported versions of FreeBSDmiwi2007-03-1412-214/+0 * Update to 11.2perky2007-02-123-10/+8 * Deprecate these ports that are broken on 5.x and above, with expiry inkris2007-02-112-0/+6 * Use libtool15 port instead of included version to avoid objformat a.out botchkris2007-02-101-0/+1 * From the "who gave this guy a commit bit" dept.:lofi2007-02-061-1/+0 * Add qt4, a multiplatform C++ application frameworklofi2007-02-065-0/+92 * A library for hangul processing.alepulver2007-02-067-0/+79 * Use libtool port instead of included version to avoid objformat a.out botchkris2007-02-012-0/+2 * - Remove support for a.out format and PORTOBJFORMAT variable from individualpav2007-01-302-2/+1 * Update to 7.0.9. Various security vulnerabilities have been fixed.hrs2007-01-182-4/+4 * Fix dependency specification - korean/hlatex no longer installsvd2007-01-151-2/+2 * Update to KDE 3.5.5 / KOffice 1.6.1lofi2006-12-202-6/+6 * Cure korean/hlatex-psfonts-uhc-extra by switching its dependency andvd2006-12-143-9/+7 * - maintainer lost his motivationclsung2006-12-071-1/+1 * Chase the GNOME X11BASE to LOCALBASE move, and fix the build with themarcus2006-10-148-14/+16 * Remove usage of OSVERSION in BROKEN message. I introduced this usage butlinimon2006-09-181-1/+1 * BROKEN on 6.x: Incorrect pkg-plistkris2006-09-171-1/+7 * KDE 3.5.4 / KOffice 1.5.2lofi2006-09-134-8/+6 * Remove expired leaf ports:vd2006-09-125-60/+0 * Schedule these broken ports for termination on 2006-12-01kris2006-09-032-0/+4 * temporarily, I mark it BROKEN in 4.x.cjh2006-08-131-0/+4 * Update to 7.0.8.hrs2006-08-022-5/+5 * Deprecate this port, the dependency is deprecated and this port is notnetchild2006-06-301-0/+3 * This port may not be needed anymore. The maintainer is checking this. Innetchild2006-06-141-2/+2 * Register conflicts with the FC linux base ports (fixes experimental portsnetchild2006-06-101-2/+4 * Update to KDE 3.5.3lofi2006-06-064-20/+18 * - Remove single-locale firefox l10n ports, please use www/firefox-i18n nowsat2006-06-015-77/+0 * Bump PORTREVISION to reflect the fact that the .desktop file is nojylefort2006-05-211-1/+1 * Bump PORTREVISION to reflect the fact that these ports may nowjylefort2006-05-191-1/+1 * Remove USE_REINPLACE from categories starting with a Kedwin2006-05-094-4/+0 * Update to 7.3perky2006-04-222-4/+4 * Reset hollywar@mail.holywar.net due to no response to email about maintainerlinimon2006-04-053-3/+3 * Update to KDE 3.5.2lofi2006-03-314-126/+20 * Update to 7.1perky2006-03-193-6/+8 * Downgrade to 7.0.1 temporarily mainly because the printing featurehrs2006-03-082-4/+5 * Bump PORTREVISION on glib12/gtk12 consumer ports to ease the upgrade path.ade2006-03-074-4/+4 * - Fix build breakage due to print/adobe-cmaps updating.hrs2006-02-273-21/+23 * Fix devel/libytnef[1] and others[2] after libtool commit.ade2006-02-241-1/+1 * Conversion to a single libtool environment.ade2006-02-235-3/+7 * Fix pkg-plist.hrs2006-02-221-0/+1 * - Use a distfile in tarball instead of one in rpm.hrs2006-02-223-23/+7 * - Remove ak12.tar.Z and use print/adobe-cmaps instead.hrs2006-02-213-50/+19 * Bump PORTREVISION because of print/ghostscript-gnu-commfont update.hrs2006-02-211-0/+1 * * Remove print/acroread - it has expired on 2006-01-03vd2006-02-104-24/+0 * Upgrade to 1.5a.vanilla2006-02-083-14/+9 * - Remove USE_REINPLACEbarner2006-02-061-4/+2 * - Fix bug(updater.ini).vanilla2006-02-042-4/+2 * - Unbreakvanilla2006-02-024-35/+30 * Update to KDE 3.5.1.lofi2006-02-012-6/+6 * Update to 6.5perky2006-02-013-6/+5 * SHA256ifyedwin2006-01-305-2/+24 * SHA256ify, and remove file from filesdiredwin2006-01-301-1/+2 * BROKEN when WITHOUT_X11: Broken dependencykris2006-01-261-0/+4 * SHA256ifyedwin2006-01-2239-0/+59 * eplace ugly "@unexec rmdir %D... 2>/dev/null || true" with @dirrmtryedwin2006-01-221-1/+1 * Replace ugly "@unexec rmdir %D... 2>/dev/null || true" with @dirrmtryedwin2006-01-226-11/+11 * BROKEN: Unfetchablekris2006-01-201-0/+2 * Update to KDE 3.5.0lofi2006-01-096-76/+98 * Hash with SHA-256.trevor2006-01-081-0/+1 * Add firefox-ko 1.5, Firefox Korean(ko) Language Pack.lawrance2005-12-196-0/+87 * Update to 6.2perky2005-12-173-11/+12 * Update to 0.2.1.cjh2005-12-082-4/+5 * - Update to 1.1.1-a021.hrs2005-12-072-4/+4 * - Add SHA256pav2005-11-252-0/+2 * Mass-conversion to the USE_AUTOTOOLS New World Order. The code presentade2005-11-154-6/+4 * Update to KDE 3.4.3 / KOffice 1.4.2lofi2005-11-052-10/+0 * Bump PORTREVISION to chase the glib20 shared library update.marcus2005-11-055-4/+5 * Fix pkg-plistedwin2005-11-032-5/+2 * Update to 0.5.4.nork2005-11-036-24/+55 * Drop maintainership.jkim2005-10-171-1/+1 * SCIM updated to 1.4.2.nork2005-10-152-2/+2 * Enable Korean support for xpdf.jkim2005-10-151-0/+1 * Enable korean support for xpdf.jkim2005-10-156