progress.h #1

  • //
  • guest/
  • perforce_software/
  • p4/
  • 2014.1/
  • support/
  • progress.h
  • View
  • Commits
  • Open Download .zip Download (841 B)
/*
 * Copyright 1995, 2011 Perforce Software.  All rights reserved.
 *
 * This file is part of Perforce - the FAST SCM System.
 */

# define CPP_NORMAL	0
# define CPP_DONE	1
# define CPP_FAILDONE	2
# define CPP_FLUSH	3

# define CP_DESC	0x01
# define CP_UNITS	0x02
# define CP_TOTAL	0x04
# define CP_POS		0x08
# define CP_NEW		0x10

class ProgressReport {
    public:
	ProgressReport();
	virtual ~ProgressReport();
	virtual void Description( const StrPtr & );
	virtual void Units( int );
	virtual void Total( long );

	virtual void Position( long, int = CPP_NORMAL );
	virtual void Increment( long = 1, int = CPP_NORMAL );
    protected:
	int	fieldChanged;
	StrBuf	description;
	int	units;
	long	total;
	long	position, lastReportedPosition;
	int	needfinal;

	Timer	tm;

	virtual void ConsiderReport( int );
	virtual void DoReport( int );
};
# Change User Description Committed
#2 15901 Matt Attaway Clean up code to fit modern Workshop naming standards
#1 12188 Matt Attaway Move 'main' p4 into a release specific directory in prep for new releases
//guest/perforce_software/p4/support/progress.h
#1 9129 Matt Attaway Initial commit of the 2014.1 p4/p4api source code