summaryrefslogtreecommitdiffstats
path: root/src/progressindicator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/progressindicator.h')
-rwxr-xr-xsrc/progressindicator.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/src/progressindicator.h b/src/progressindicator.h
new file mode 100755
index 0000000..873a4f9
--- /dev/null
+++ b/src/progressindicator.h
@@ -0,0 +1,61 @@
+
+
+#ifndef PROGRESSINDICATOR_H
+#define PROGRESSINDICATOR_H
+
+#include <qwidget.h>
+#include <qdatetime.h>
+
+class QProgressBar;
+class QLabel;
+class KSystemTray;
+
+/**
+ * @short Displays the current progress
+ * @author Daniel Faust <[email protected]>
+ * @version 0.3
+ */
+class ProgressIndicator : public QWidget
+{
+ Q_OBJECT
+public:
+ /**
+ * Constructor
+ */
+ ProgressIndicator( KSystemTray* _systemTray, QWidget* parent = 0, const char* name = 0 );
+
+ /**
+ * Destructor
+ */
+ virtual ~ProgressIndicator();
+
+public slots:
+ void increaseTime( float );
+ void decreaseTime( float );
+ void countTime( float );
+ void uncountTime( float );
+ void setTime( float );
+ void finished( float );
+
+ void update( float );
+
+//private slots:
+
+private:
+ QProgressBar* pBar;
+ QLabel* lSpeed;
+ QLabel* lTime;
+ KSystemTray* systemTray;
+
+ QTime elapsedTime;
+ QTime speedTime;
+ float speedProcessedTime;
+
+ float time;
+ float processedTime;
+
+signals:
+ void setTitle( const QString& );
+};
+
+#endif // PROGRESSINDICATOR_H