summaryrefslogtreecommitdiffstats
path: root/src/datasource/idatasource.h
diff options
context:
space:
mode:
authorSimon Rettberg2017-02-24 12:33:55 +0100
committerSimon Rettberg2017-02-24 12:33:55 +0100
commitd4f10f9fe446da2aff65088e5236d6ffcdd034b5 (patch)
tree5d7467a6f67272064619c000a14800e706368ac6 /src/datasource/idatasource.h
downloadspeedcheck-d4f10f9fe446da2aff65088e5236d6ffcdd034b5.tar.gz
speedcheck-d4f10f9fe446da2aff65088e5236d6ffcdd034b5.tar.xz
speedcheck-d4f10f9fe446da2aff65088e5236d6ffcdd034b5.zip
initial commit
Diffstat (limited to 'src/datasource/idatasource.h')
-rw-r--r--src/datasource/idatasource.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/datasource/idatasource.h b/src/datasource/idatasource.h
new file mode 100644
index 0000000..4639d57
--- /dev/null
+++ b/src/datasource/idatasource.h
@@ -0,0 +1,16 @@
+#ifndef IDATASOURCE_H_
+#define IDATASOURCE_H_
+
+#include <QList>
+
+class IDataSource {
+public:
+ IDataSource() {};
+ virtual ~IDataSource() {};
+
+ virtual qint64 read() = 0;
+ virtual const QList<qint64>& getBars() const = 0;
+ virtual qint64 getMaximum() = 0;
+};
+
+#endif /* IDATASOURCE_H_ */