Medical Imaging Interaction Toolkit  2022.04.99-194dd5d8
Medical Imaging Interaction Toolkit
berryToggleState.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 
13 #ifndef BERRYTOGGLESTATE_H
14 #define BERRYTOGGLESTATE_H
15 
16 #include "internal/berryPersistentState.h"
17 
18 namespace berry {
19 
33 class ToggleState : public PersistentState
34 {
35 
36 public:
37 
42  ToggleState();
43 
44  void Load(const SmartPointer<IPreferences>& store,
45  const QString& preferenceKey) override;
46 
47  void Save(const SmartPointer<IPreferences>& store,
48  const QString& preferenceKey) override;
49 
50  void SetValue(const Object::Pointer& value) override;
51 };
52 
53 }
54 
55 #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