Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryToggleState.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 
17 #ifndef BERRYTOGGLESTATE_H
18 #define BERRYTOGGLESTATE_H
19 
20 #include "internal/berryPersistentState.h"
21 
22 namespace berry {
23 
37 class ToggleState : public PersistentState
38 {
39 
40 public:
41 
46  ToggleState();
47 
48  void Load(const SmartPointer<IPreferences>& store,
49  const QString& preferenceKey) override;
50 
51  void Save(const SmartPointer<IPreferences>& store,
52  const QString& preferenceKey) override;
53 
54  void SetValue(const Object::Pointer& value) override;
55 };
56 
57 }
58 
59 #endif // BERRYTOGGLESTATE_H
void Load(const SmartPointer< IPreferences > &store, const QString &preferenceKey) override
Implements transparent reference counting.
void Save(const SmartPointer< IPreferences > &store, const QString &preferenceKey) override
void SetValue(const Object::Pointer &value) override