Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
mitkIPreferencesService.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 mitkIPreferencesService_h
14 #define mitkIPreferencesService_h
15 
16 #include <mitkServiceInterface.h>
17 #include <MitkCoreExports.h>
18 
19 #include <mitkFileSystem.h>
20 
21 namespace mitk
22 {
23  class IPreferences;
24 
34  {
35  public:
40 
54  virtual void InitializeStorage(const fs::path& filename) = 0;
55 
62  virtual void UninitializeStorage(bool removeFile = true) = 0;
63 
79 
95  virtual bool OpenPreferencesDialog(const std::string& page = {});
96  };
97 }
98 
99 MITK_DECLARE_SERVICE_INTERFACE(mitk::IPreferencesService, "org.mitk.IPreferencesService")
100 
101 #endif
#define MITKCORE_EXPORT
A service for persistent application preferences.
virtual void UninitializeStorage(bool removeFile=true)=0
For internal use only.
virtual ~IPreferencesService()
If initialized, ask the preferences backend to flush preferences, i.e. write them to disk.
virtual bool OpenPreferencesDialog(const std::string &page={})
Opens the preferences dialog, if available.
virtual void InitializeStorage(const fs::path &filename)=0
Initialize the preferences backend.
virtual IPreferences * GetSystemPreferences()=0
Access preferences.
Interface to application preferences.
#define MITK_DECLARE_SERVICE_INTERFACE(IFace, IId)
Find image slices visible on a given plane.