]>
git.saurik.com Git - apt.git/blob - apt-pkg/cdrom.h
4 #include<apt-pkg/init.h>
9 #pragma interface "apt-pkg/cdrom.h"
21 virtual ~pkgCdromStatus() {};
24 virtual void SetTotal(int total
) { totalSteps
= total
; };
25 // update steps, will be called regularly as a "pulse"
26 virtual void Update(string text
="", int current
=0) = 0;
28 // ask for cdrom insert
29 virtual bool ChangeCdrom() = 0;
31 virtual bool AskCdromName(string
&Name
) = 0;
32 // Progress indicator for the Index rewriter
33 virtual OpProgress
* GetOpProgress() {return NULL
; };
53 bool FindPackages(string CD
,
55 vector
<string
> &SList
,
56 vector
<string
> &SigList
,
57 vector
<string
> &TransList
,
58 string
&InfoDir
, pkgCdromStatus
*log
,
59 unsigned int Depth
= 0);
60 bool DropBinaryArch(vector
<string
> &List
);
61 bool DropRepeats(vector
<string
> &List
,const char *Name
);
62 void ReduceSourcelist(string CD
,vector
<string
> &List
);
63 bool WriteDatabase(Configuration
&Cnf
);
64 bool WriteSourceList(string Name
,vector
<string
> &List
,bool Source
);
65 int Score(string Path
);
68 bool Ident(string
&ident
, pkgCdromStatus
*log
);
69 bool Add(pkgCdromStatus
*log
);