Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryIPreferences.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 BlueBerry Platform
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 #ifndef BERRYIPREFERENCES_H_
17 #define BERRYIPREFERENCES_H_
18 
20 
21 #include "berryObject.h"
23 
24 
25 namespace berry
26 {
27 
124  {
126 
127  virtual ~IPreferences();
128 
139  virtual void Put(const QString& key, const QString& value) = 0;
140 
157  virtual QString Get(const QString& key, const QString& def) const = 0;
158 
168  virtual void Remove(const QString& key) = 0;
169 
181  virtual void Clear() = 0;
182 
207  virtual void PutInt(const QString& key, int value) = 0;
208 
236  virtual int GetInt(const QString& key, int def) const = 0;
237 
264  virtual void PutLong(const QString& key, long value) = 0;
265 
293  virtual long GetLong(const QString& key, long def) const = 0;
294 
321  virtual void PutBool(const QString& key, bool value) = 0;
322 
352  virtual bool GetBool(const QString& key, bool def) const = 0;
353 
379  virtual void PutFloat(const QString& key, float value) = 0;
380 
408  virtual float GetFloat(const QString& key, float def) const = 0;
409 
436  virtual void PutDouble(const QString& key, double value) = 0;
437 
465  virtual double GetDouble(const QString& key, double def) const = 0;
466 
485  virtual void PutByteArray(const QString& key, const QByteArray& value) = 0;
486 
519  virtual QByteArray GetByteArray(const QString& key, const QByteArray& def) const = 0;
520 
533  virtual QStringList Keys() const = 0;
534 
546  virtual QStringList ChildrenNames() const = 0;
547 
555  virtual IPreferences::Pointer Parent() const = 0;
556 
581  virtual IPreferences::Pointer Node(const QString& pathName) = 0;
582 
611  virtual bool NodeExists(const QString& pathName) const = 0;
612 
633  virtual void RemoveNode() = 0;
634 
640  virtual QString Name() const = 0;
641 
656  virtual QString AbsolutePath() const = 0;
657 
684  virtual void Flush() = 0;
685 
700  virtual void Sync() = 0;
701 
708  virtual void BlockSignals(bool block) = 0;
709  };
710 
711 } // namespace berry
712 
713 #endif /*BERRYIPREFERENCES_H_*/
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
#define org_blueberry_core_runtime_EXPORT
#define berryObjectMacro(...)
Definition: berryMacros.h:37