]> ToastFreeware Gitweb - toast/confclerk.git/blobdiff - src/mvc/conference.h
Bump copyright years.
[toast/confclerk.git] / src / mvc / conference.h
index f042445293bd85e79083b84a554c17e33a7025a0..51b2bd947bd302a4cdd1a114919020f64127337f 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 2010 Ixonos Plc.
- * Copyright (C) 2011-2017 Philipp Spitzer, gregor herrmann, Stefan Stahl
+ * Copyright (C) 2011-2024 Philipp Spitzer, gregor herrmann, Stefan Stahl
  *
  * This file is part of ConfClerk.
  *
@@ -55,6 +55,8 @@ public:
     int utcOffset() const {return value("utc_offset").toInt();}
     bool hasDisplayTimeShift() const {return !value("display_time_shift").isNull();}
     int displayTimeShift() const {return value("display_time_shift").toInt();}
+    void setDisplayTimeShift(int newValue) {setValue("display_time_shift", newValue); update("display_time_shift");}
+
     bool isActive() const { return value("active").toBool(); }
     QString url() const { return stringFromNullable(value("url")); }
 
@@ -64,6 +66,9 @@ public:
         update("url");
     }
 
+    /// Returns a QTime that is shifted by displayTimeShift minutes
+    QTime shiftTime(const QTime& value) const;
+
 private:
     static QString stringFromNullable(const QVariant& v)
     {