Medical Imaging Interaction Toolkit  2021.10.99-1c4db16f
Medical Imaging Interaction Toolkit
berryIPreferences.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 #ifndef BERRYIPREFERENCES_H_
13 #define BERRYIPREFERENCES_H_
14 
16 
17 #include "berryObject.h"
19 
20 
21 namespace berry
22 {
23 
120  {
122 
123  ~IPreferences() override;
124 
135  virtual void Put(const QString& key, const QString& value) = 0;
136 
153  virtual QString Get(const QString& key, const QString& def) const = 0;
154 
164  virtual void Remove(const QString& key) = 0;
165 
177  virtual void Clear() = 0;
178 
203  virtual void PutInt(const QString& key, int value) = 0;
204 
232  virtual int GetInt(const QString& key, int def) const = 0;
233 
260  virtual void PutLong(const QString& key, long value) = 0;
261 
289  virtual long GetLong(const QString& key, long def) const = 0;
290 
317  virtual void PutBool(const QString& key, bool value) = 0;
318 
348  virtual bool GetBool(const QString& key, bool def) const = 0;
349 
375  virtual void PutFloat(const QString& key, float value) = 0;
376 
404  virtual float GetFloat(const QString& key, float def) const = 0;
405 
432  virtual void PutDouble(const QString& key, double value) = 0;
433 
461  virtual double GetDouble(const QString& key, double def) const = 0;
462 
481  virtual void PutByteArray(const QString& key, const QByteArray& value) = 0;
482 
515  virtual QByteArray GetByteArray(const QString& key, const QByteArray& def) const = 0;
516 
529  virtual QStringList Keys() const = 0;
530 
542  virtual QStringList ChildrenNames() const = 0;
543 
551  virtual IPreferences::Pointer Parent() const = 0;
552 
577  virtual IPreferences::Pointer Node(const QString& pathName) = 0;
578 
607  virtual bool NodeExists(const QString& pathName) const = 0;
608 
629  virtual void RemoveNode() = 0;
630 
636  virtual QString Name() const = 0;
637 
652  virtual QString AbsolutePath() const = 0;
653 
680  virtual void Flush() = 0;
681 
696  virtual void Sync() = 0;
697 
704  virtual void BlockSignals(bool block) = 0;
705  };
706 
707 } // namespace berry
708 
709 #endif /*BERRYIPREFERENCES_H_*/
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
#define org_blueberry_core_runtime_EXPORT
#define berryObjectMacro(...)
Definition: berryMacros.h:33