Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
berry::IPreferencesService Struct Referenceabstract

#include <berryIPreferencesService.h>

Inheritance diagram for berry::IPreferencesService:

Public Member Functions

virtual ~IPreferencesService ()
 
virtual SmartPointer< IPreferencesGetSystemPreferences ()=0
 
virtual SmartPointer< IPreferencesGetUserPreferences (const QString &name)=0
 
virtual QStringList GetUsers () const =0
 

Detailed Description

The Preferences Service.

Each bundle using this service has its own set of preference trees: one for system preferences, and one for each user.

A PreferencesService object is specific to the bundle which obtained it from the service registry. If a bundle wishes to allow another bundle to access its preferences, it should pass its PreferencesService object to that bundle.

Definition at line 40 of file berryIPreferencesService.h.

Constructor & Destructor Documentation

◆ ~IPreferencesService()

berry::IPreferencesService::~IPreferencesService ( )
virtual

Definition at line 17 of file berryIPreferencesService.cpp.

Member Function Documentation

◆ GetSystemPreferences()

◆ GetUserPreferences()

virtual SmartPointer<IPreferences> berry::IPreferencesService::GetUserPreferences ( const QString &  name)
pure virtual

Returns the root node for the specified user and the calling bundle.

Parameters
nameThe user for which to return the preference root node.
Returns
The root node for the specified user and the calling bundle.

◆ GetUsers()

virtual QStringList berry::IPreferencesService::GetUsers ( ) const
pure virtual

Returns the names of users for which node trees exist.

Returns
The names of users for which node trees exist.

The documentation for this struct was generated from the following files: