LibreOffice Module sd (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
sd::slidesorter::cache::CacheConfiguration Class Reference

A very simple and easy-to-use access to configuration entries regarding the slide sorter cache. More...

#include <SlsCacheConfiguration.hxx>

Collaboration diagram for sd::slidesorter::cache::CacheConfiguration:
[legend]

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< CacheConfigurationInstance ()
 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< CacheConfigurationmpWeakInstance
 When a caller holds a reference after we have released ours we use this weak pointer to avoid creating a new instance. More...
 

Detailed Description

A very simple and easy-to-use access to configuration entries regarding the slide sorter cache.

Definition at line 36 of file SlsCacheConfiguration.hxx.

Constructor & Destructor Documentation

◆ CacheConfiguration()

sd::slidesorter::cache::CacheConfiguration::CacheConfiguration ( )
private

Definition at line 71 of file SlsCacheConfiguration.cxx.

References Any, Exception, comphelper::InitAnyPropertySequence(), and mxCacheNode.

Referenced by Instance().

Member Function Documentation

◆ DECL_STATIC_LINK()

sd::slidesorter::cache::CacheConfiguration::DECL_STATIC_LINK ( CacheConfiguration  ,
TimerCallback  ,
Timer ,
void   
)
private

◆ GetValue()

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.

◆ Instance()

std::shared_ptr< CacheConfiguration > sd::slidesorter::cache::CacheConfiguration::Instance ( )
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().

◆ Shutdown()

void sd::slidesorter::cache::CacheConfiguration::Shutdown ( )
static

Member Data Documentation

◆ m_ReleaseTimer

Timer sd::slidesorter::cache::CacheConfiguration::m_ReleaseTimer
private

Definition at line 58 of file SlsCacheConfiguration.hxx.

◆ mpWeakInstance

std::weak_ptr< CacheConfiguration > sd::slidesorter::cache::CacheConfiguration::mpWeakInstance
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().

◆ mxCacheNode

css::uno::Reference<css::container::XNameAccess> sd::slidesorter::cache::CacheConfiguration::mxCacheNode
private

Definition at line 59 of file SlsCacheConfiguration.hxx.

Referenced by CacheConfiguration(), and GetValue().


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