Revision 280,
1.3 KB
checked in by yasumichi, 14 years ago
(diff) |
first import
|
Line | |
---|
1 | /* rgcacheprogress.h |
---|
2 | * |
---|
3 | * Copyright (c) 2000, 2001 Conectiva S/A |
---|
4 | * |
---|
5 | * Author: Alfredo K. Kojima <kojima@conectiva.com.br> |
---|
6 | * |
---|
7 | * This program is free software; you can redistribute it and/or |
---|
8 | * modify it under the terms of the GNU General Public License as |
---|
9 | * published by the Free Software Foundation; either version 2 of the |
---|
10 | * License, or (at your option) any later version. |
---|
11 | * |
---|
12 | * This program is distributed in the hope that it will be useful, |
---|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
15 | * GNU General Public License for more details. |
---|
16 | * |
---|
17 | * You should have received a copy of the GNU General Public License |
---|
18 | * along with this program; if not, write to the Free Software |
---|
19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
---|
20 | * USA |
---|
21 | */ |
---|
22 | |
---|
23 | #ifndef _RGCACHEPROGRESS_H_ |
---|
24 | #define _RGCACHEPROGRESS_H_ |
---|
25 | |
---|
26 | #include <apt-pkg/progress.h> |
---|
27 | |
---|
28 | #include <gtk/gtk.h> |
---|
29 | |
---|
30 | class RGCacheProgress:public OpProgress { |
---|
31 | GtkWidget *_parent; |
---|
32 | GtkWidget *_label; |
---|
33 | GtkWidget *_prog; |
---|
34 | |
---|
35 | |
---|
36 | bool _mapped; |
---|
37 | |
---|
38 | public: |
---|
39 | RGCacheProgress(GtkWidget *parent, GtkWidget *label); |
---|
40 | ~RGCacheProgress(); |
---|
41 | |
---|
42 | inline GtkWidget *widget() { |
---|
43 | return _prog; |
---|
44 | }; |
---|
45 | |
---|
46 | virtual void Update(); |
---|
47 | virtual void Done(); |
---|
48 | }; |
---|
49 | |
---|
50 | |
---|
51 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.