diff options
| author | Brian Potchik <brian@vector35.com> | 2019-08-11 23:04:17 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2019-08-11 23:04:17 -0400 |
| commit | 02023064fc5e112985035a9c0b3dc0957cdfda02 (patch) | |
| tree | 9fb0048fd2ecac09311cb4dc153f7a43be03f669 /settings.cpp | |
| parent | 472cbb7a1cb3b51846abd3bda810c5dcc644acd7 (diff) | |
Eliminate mandatory ephemeral view creation during open with options.
Diffstat (limited to 'settings.cpp')
| -rw-r--r-- | settings.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/settings.cpp b/settings.cpp index 3ea43a7e..fdc74335 100644 --- a/settings.cpp +++ b/settings.cpp @@ -28,6 +28,12 @@ Ref<Settings> Settings::Instance(const std::string& instanceId) } +void Settings::SetResourceId(const string& resourceId) +{ + return BNSettingsSetResourceId(m_object, resourceId.c_str()); +} + + bool Settings::RegisterGroup(const string& group, const string& title) { return BNSettingsRegisterGroup(m_object, group.c_str(), title.c_str()); @@ -46,6 +52,12 @@ bool Settings::Contains(const string& key) } +bool Settings::IsEmpty() +{ + return BNSettingsIsEmpty(m_object); +} + + template<> vector<string> Settings::QueryProperty<vector<string>>(const string& key, const string& property) { size_t size = 0; |
