Класс ManagedConfiguration
(Aurora::Mdm::ManagedConfiguration)
Класс ManagedConfiguration описывает управляемую конфигурацию приложения. Подробнее…
Подключение: | #include <mdm-managedconfiguration.h> |
Публичные функции
- ManagedConfiguration()
- ManagedConfiguration(const ManagedConfiguration &other)
- ManagedConfiguration(ManagedConfiguration &&other)
- virtual ~ManagedConfiguration()
- void add(const QString &key, const ManagedConfigurationValue &value)
- ManagedConfigurationValue get(const QString &key) const
- QStringList keys() const
- ManagedConfiguration &operator=(const ManagedConfiguration &other)
- ManagedConfiguration &operator=(ManagedConfiguration &&other)
Подробное описание
Класс ManagedConfiguration описывает управляемую конфигурацию приложения.
Для использования данного класса в qmake-настройки проекта клиента следует добавить следующее:
CONFIG += link_pkgconfig
PKGCONFIG += sailfishmdm
и затем #include <mdm-managedconfiguration.h>
.
Описание функций-членов
ManagedConfiguration::ManagedConfiguration()
По умолчанию создается экземпляр ManagedConfiguration.
ManagedConfiguration::ManagedConfiguration(const ManagedConfiguration &other)
Конструктор копирования.
ManagedConfiguration::ManagedConfiguration(ManagedConfiguration &&other)
Конструктор копирования с перемещением.
[virtual] ManagedConfiguration::~ManagedConfiguration()
Уничтожает экземпляр ManagedConfiguration. Деструктор является виртуальным.
void ManagedConfiguration::add(const QString &key, const ManagedConfigurationValue &value)
Добавляет ManagedConfigurationValue в управляемую конфигурацию по его ключу.
ManagedConfigurationValue ManagedConfiguration::get(const QString &key) const
Возвращает ManagedConfigurationValue в управляемую конфигурацию по его ключу.
QStringList ManagedConfiguration::keys() const
Возвращает ключи содержащихся ManagedConfigurationValue.
ManagedConfiguration &ManagedConfiguration::operator=(const ManagedConfiguration &other)
Конструктор копирования с перемещением.
ManagedConfiguration &ManagedConfiguration::operator=(ManagedConfiguration &&other)
Оператор присваивания с перемещением.