1 | /* rgpkgcdrom.h - make use of the new apt-pkg/cdrom.h interface |
---|
2 | * |
---|
3 | * Copyright (c) 2000, 2001 Conectiva S/A |
---|
4 | * 2004 Canonical |
---|
5 | * |
---|
6 | * Author: Alfredo K. Kojima <kojima@conectiva.com.br> |
---|
7 | * Michael Vogt <michael.vogt@ubuntu.com> |
---|
8 | * |
---|
9 | * This program is free software; you can redistribute it and/or |
---|
10 | * modify it under the terms of the GNU General Public License as |
---|
11 | * published by the Free Software Foundation; either version 2 of the |
---|
12 | * License, or (at your option) any later version. |
---|
13 | * |
---|
14 | * This program 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 this program; if not, write to the Free Software |
---|
21 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
---|
22 | * USA |
---|
23 | */ |
---|
24 | |
---|
25 | #ifndef RGPKGCDROM_H |
---|
26 | #define RGPKGCDROM_H |
---|
27 | |
---|
28 | #include <config.h> |
---|
29 | #ifdef HAVE_APTPKG_CDROM |
---|
30 | |
---|
31 | #include "rggladewindow.h" |
---|
32 | #include <apt-pkg/cdrom.h> |
---|
33 | |
---|
34 | class RGMainWindow; |
---|
35 | |
---|
36 | class RGCDScanner:public pkgCdromStatus, public RGWindow { |
---|
37 | protected: |
---|
38 | |
---|
39 | GtkWidget *_label; |
---|
40 | GtkWidget *_pbar; |
---|
41 | |
---|
42 | RUserDialog *_userDialog; |
---|
43 | |
---|
44 | public: |
---|
45 | RGCDScanner(RGMainWindow *main, RUserDialog *userDialog); |
---|
46 | |
---|
47 | bool RGCDScanner::ChangeCdrom(); |
---|
48 | bool RGCDScanner::AskCdromName(string &defaultName); |
---|
49 | void Update(string text, int current); |
---|
50 | |
---|
51 | bool run(); |
---|
52 | |
---|
53 | }; |
---|
54 | |
---|
55 | #endif |
---|
56 | #endif |
---|