Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryRadioState.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 BERRYRADIOSTATE_H
18 #define BERRYRADIOSTATE_H
19 
20 #include "internal/berryPersistentState.h"
22 
23 namespace berry {
24 
45 class RadioState : public PersistentState, public IExecutableExtension
46 {
47 
48 public:
49 
53  static const QString STATE_ID; // = "org.blueberry.ui.commands.radioState";
54 
58  static const QString PARAMETER_ID; // = "org.blueberry.ui.commands.radioStateParameter";
59 
60  RadioState();
61 
63  const QString& propertyName, const Object::Pointer& data) override;
64 
65  void Load(const SmartPointer<IPreferences>& store, const QString& preferenceKey) override;
66 
67  void Save(const SmartPointer<IPreferences>& store, const QString& preferenceKey) override;
68 
69  void SetValue(const Object::Pointer& value) override;
70 
71 };
72 
73 }
74 
75 #endif // BERRYRADIOSTATE_H
void SetInitializationData(const SmartPointer< IConfigurationElement > &config, const QString &propertyName, const Object::Pointer &data) override
Implements transparent reference counting.
static const QString STATE_ID
static const QString PARAMETER_ID
void SetValue(const Object::Pointer &value) override
void Load(const SmartPointer< IPreferences > &store, const QString &preferenceKey) override
void Save(const SmartPointer< IPreferences > &store, const QString &preferenceKey) override