aboutsummaryrefslogtreecommitdiff
path: root/src/viewerpercent.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/viewerpercent.h')
-rw-r--r--src/viewerpercent.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/viewerpercent.h b/src/viewerpercent.h
new file mode 100644
index 0000000..96412cb
--- /dev/null
+++ b/src/viewerpercent.h
@@ -0,0 +1,36 @@
1#ifndef VIEWER_PERCENT_H
2#define VIEWER_PERCENT_H
3
4#include <stdint.h>
5
6#include "viewer.h"
7
8class ViewerPercent : public Viewer
9{
10public:
11 ViewerPercent();
12 virtual ~ViewerPercent();
13
14 virtual void beginCommand( Action::eAction nAct, const std::string &sTarget );
15 virtual void endCommand();
16
17 virtual void beginRequiresCheck( bool bCached, const std::string &sName );
18 virtual void endRequiresCheck();
19 virtual void beginPerform( Perform *pPerform );
20 virtual void endPerform();
21 virtual void beginPerforms( int nCount );
22 virtual void endPerforms();
23 virtual void beginAction( const std::string &sName, int nCommands );
24 virtual void endAction();
25
26private:
27 int nTotalCommands;
28 int nCurCommand;
29 int nTotalPerforms;
30 int nCurPerform;
31 std::string sTarget;
32 int nLastLen;
33 int nWidth;
34};
35
36#endif