LibreOffice Module sd (master) 1
|
A very simple and easy-to-use access to configuration entries regarding the slide sorter cache. More...
#include <SlsCacheConfiguration.hxx>
Public Member Functions | |
css::uno::Any | GetValue (const OUString &rName) |
Look up the specified value in MultiPaneGUI/SlideSorter/PreviewCache. More... | |
Static Public Member Functions | |
static std::shared_ptr< CacheConfiguration > | Instance () |
Return an instance to this class. More... | |
static void | Shutdown () |
Private Member Functions | |
CacheConfiguration () | |
DECL_STATIC_LINK (CacheConfiguration, TimerCallback, Timer *, void) | |
Private Attributes | |
Timer | m_ReleaseTimer |
css::uno::Reference< css::container::XNameAccess > | mxCacheNode |
Static Private Attributes | |
static std::weak_ptr< CacheConfiguration > | mpWeakInstance |
When a caller holds a reference after we have released ours we use this weak pointer to avoid creating a new instance. More... | |
A very simple and easy-to-use access to configuration entries regarding the slide sorter cache.
Definition at line 36 of file SlsCacheConfiguration.hxx.
|
private |
Definition at line 71 of file SlsCacheConfiguration.cxx.
References Any, Exception, comphelper::InitAnyPropertySequence(), and mxCacheNode.
Referenced by Instance().
|
private |
Any sd::slidesorter::cache::CacheConfiguration::GetValue | ( | const OUString & | rName | ) |
Look up the specified value in MultiPaneGUI/SlideSorter/PreviewCache.
When the specified value does not exist then an empty Any is returned.
Definition at line 108 of file SlsCacheConfiguration.cxx.
References Any, Exception, and mxCacheNode.
|
static |
Return an instance to this class.
The reference is released after 5 seconds. Subsequent calls to this function will create a new instance.
Definition at line 47 of file SlsCacheConfiguration.cxx.
References CacheConfiguration(), LINK, and mpWeakInstance.
Referenced by sd::slidesorter::cache::BitmapCache::BitmapCache(), and sd::slidesorter::cache::CacheCompactor::Create().
|
static |
Definition at line 135 of file SlsCacheConfiguration.cxx.
References mpWeakInstance.
Referenced by sd::SdGlobalResourceContainer::~SdGlobalResourceContainer().
|
private |
Definition at line 58 of file SlsCacheConfiguration.hxx.
|
staticprivate |
When a caller holds a reference after we have released ours we use this weak pointer to avoid creating a new instance.
Definition at line 57 of file SlsCacheConfiguration.hxx.
Referenced by Instance(), and Shutdown().
|
private |
Definition at line 59 of file SlsCacheConfiguration.hxx.
Referenced by CacheConfiguration(), and GetValue().