#include <string>
#include <sys/time.h>
+#ifndef APT_8_CLEANER_HEADERS
using std::string;
+#endif
class Configuration;
class OpProgress
// Change reduction code
struct timeval LastTime;
- string LastOp;
- string LastSubOp;
+ std::string LastOp;
+ std::string LastSubOp;
protected:
- string Op;
- string SubOp;
+ std::string Op;
+ std::string SubOp;
float Percent;
bool MajorChange;
public:
void Progress(unsigned long long Current);
- void SubProgress(unsigned long long SubTotal, const string &Op = "", float const Percent = -1);
+ void SubProgress(unsigned long long SubTotal, const std::string &Op = "", float const Percent = -1);
void OverallProgress(unsigned long long Current,unsigned long long Total,
- unsigned long long Size,const string &Op);
+ unsigned long long Size,const std::string &Op);
virtual void Done() {};
OpProgress();
class OpTextProgress : public OpProgress
{
protected:
-
- string OldOp;
+
+ std::string OldOp;
bool NoUpdate;
bool NoDisplay;
unsigned long LastLen;