X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fglobalsettings.hpp;h=e41c2ea9ed6a8b8d88b537f7bbae33bcc07f418d;hb=e23d7aa0d9980c3c269cbddb4cfbb32350d7425c;hp=adb9168a1fbc3be027db6f7ee16df0930b501de4;hpb=a3c57f445a469cd9fc7ec02d529d9425a94b2256;p=pulseview.git diff --git a/pv/globalsettings.hpp b/pv/globalsettings.hpp index adb9168a..e41c2ea9 100644 --- a/pv/globalsettings.hpp +++ b/pv/globalsettings.hpp @@ -17,8 +17,8 @@ * along with this program; if not, see . */ -#ifndef PULSEVIEW_GLOBALSETTINGS_HPP -#define PULSEVIEW_GLOBALSETTINGS_HPP +#ifndef PULSEVIEW_PV_GLOBALSETTINGS_HPP +#define PULSEVIEW_PV_GLOBALSETTINGS_HPP #include @@ -30,6 +30,8 @@ #include #include +#include "util.hpp" + using std::map; using std::pair; using std::vector; @@ -122,13 +124,14 @@ public: void undo_tracked_changes(); static void store_gvariant(QSettings &settings, GVariant *v); - static GVariant* restore_gvariant(QSettings &settings); static void store_variantbase(QSettings &settings, Glib::VariantBase v); - static Glib::VariantBase restore_variantbase(QSettings &settings); + static void store_timestamp(QSettings &settings, const char *name, const pv::util::Timestamp &ts); + static pv::util::Timestamp restore_timestamp(QSettings &settings, const char *name); + private: static vector callbacks_; @@ -143,4 +146,4 @@ private: } // namespace pv -#endif // PULSEVIEW_GLOBALSETTINGS_HPP +#endif // PULSEVIEW_PV_GLOBALSETTINGS_HPP