~ubuntu-branches/ubuntu/karmic/gtk-gnutella/karmic

« back to all changes in this revision

Viewing changes to src/ui/gtk/uploads.h

  • Committer: Bazaar Package Importer
  • Author(s): Anand Kumria
  • Date: 2005-08-04 11:32:05 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050804113205-q746i4lgo3rtlegn
Tags: 0.95.4-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * $Id: uploads.h,v 1.7 2005/06/29 14:24:28 daichik Exp $
 
3
 *
 
4
 * Copyright (c) 2001-2003, Richard Eckart
 
5
 *
 
6
 *----------------------------------------------------------------------
 
7
 * This file is part of gtk-gnutella.
 
8
 *
 
9
 *  gtk-gnutella is free software; you can redistribute it and/or modify
 
10
 *  it under the terms of the GNU General Public License as published by
 
11
 *  the Free Software Foundation; either version 2 of the License, or
 
12
 *  (at your option) any later version.
 
13
 *
 
14
 *  gtk-gnutella is distributed in the hope that it will be useful,
 
15
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
 *  GNU General Public License for more details.
 
18
 *
 
19
 *  You should have received a copy of the GNU General Public License
 
20
 *  along with gtk-gnutella; if not, write to the Free Software
 
21
 *  Foundation, Inc.:
 
22
 *      59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
23
 *----------------------------------------------------------------------
 
24
 */
 
25
 
 
26
#ifndef _gtk_uploads_h_
 
27
#define _gtk_uploads_h_
 
28
 
 
29
#include "gui.h"
 
30
#include "if/core/uploads.h"
 
31
 
 
32
typedef struct upload_row_data {
 
33
    gnet_upload_t handle;       /**< upload handle in backend */
 
34
    gboolean      valid;        /**< handle still valid in backend */
 
35
    time_t        start_date;
 
36
    time_t        last_update;  /**< last time the gui updated */
 
37
    filesize_t    range_start;
 
38
    filesize_t    range_end;
 
39
    upload_stage_t status;      /**< last known status */
 
40
#ifdef USE_GTK2
 
41
    GtkTreeIter   iter;
 
42
        guint32       ip;
 
43
        filesize_t    size;
 
44
        gboolean      push;
 
45
        gchar         *user_agent;      /**< atom */
 
46
        gchar         *name;            /**< atom */
 
47
        gint          country;
 
48
#endif
 
49
} upload_row_data_t;
 
50
 
 
51
void uploads_gui_early_init(void);
 
52
void uploads_gui_init(void);
 
53
void uploads_gui_shutdown(void);
 
54
 
 
55
void uploads_gui_update_display(time_t now);
 
56
void uploads_gui_clear_completed(void);
 
57
 
 
58
#endif /* _gtk_uploads_h_ */
 
59
 
 
60
/* vi: set ts=4 sw=4 cindent: */