[Kst] kdeextragear-2/kst/kst/datasources/planck
George Staikos
staikos at kde.org
Wed Jan 19 05:37:17 CET 2005
CVS commit by staikos:
stubs for time conversion
M +22 -0 planck.cpp 1.31
M +11 -0 planck.h 1.12
--- kdeextragear-2/kst/kst/datasources/planck/planck.cpp #1.30:1.31
@@ -229,4 +229,26 @@ bool PlanckSource::isEmpty() const {
+bool PlanckSource::supportsTimeConversions() const {
+ return true;
+}
+
+
+int PlanckSource::sampleForTime(const QDateTime& time, bool *ok) {
+}
+
+
+int PlanckSource::sampleForTime(int milliseconds, bool *ok) {
+}
+
+
+QDateTime PlanckSource::timeForSample(int sample, bool *ok) {
+}
+
+
+int PlanckSource::relativeTimeForSample(int sample, bool *ok) {
+}
+
+
+
extern "C" {
KstDataSource *create_planck(KConfig *cfg, const QString& filename, const QString& type) {
--- kdeextragear-2/kst/kst/datasources/planck/planck.h #1.11:1.12
@@ -48,4 +48,15 @@ class PlanckSource : public KstDataSourc
virtual bool isEmpty() const;
+ virtual bool supportsTimeConversions() const;
+
+ virtual int sampleForTime(const QDateTime& time, bool *ok = 0L);
+
+ virtual int sampleForTime(int milliseconds, bool *ok = 0L);
+
+ virtual QDateTime timeForSample(int sample, bool *ok = 0L);
+
+ // in (ms)
+ virtual int relativeTimeForSample(int sample, bool *ok = 0L);
+
private:
KstSharedPtr<Planck::Object> _planckObject;
More information about the Kst
mailing list