OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [gdb/] [gdbtk/] [library/] [download.ith] - Blame information for rev 1767

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
# Download class definition for GDBtk.
2
# Copyright 1999 Cygnus Solutions
3
#
4
# This program is free software; you can redistribute it and/or modify it
5
# under the terms of the GNU General Public License (GPL) as published by
6
# the Free Software Foundation; either version 2 of the License, or (at
7
# your option) any later version.
8
#
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
# GNU General Public License for more details.
13
 
14
 
15
class Download {
16
  inherit ManagedWin
17
 
18
  protected {
19
    common total_bytes
20
    common section
21
    common bytes
22
    common num_sections
23
    proc dont_remember_size {} { return 1}
24
  }
25
  public {
26
    variable filename
27
 
28
    method constructor {args}
29
    method destructor {}
30
    method update_download { sec num tot }
31
    method done { {msg ""} }
32
    method cancel {}
33
 
34
    proc download_it { }
35
    proc do_download_hooks {}
36
    proc download_hash { section num }
37
 
38
  }
39
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.