LibreOffice Module svl (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
StorageItem Class Reference

#include <passwordcontainer.hxx>

Inheritance diagram for StorageItem:
[legend]
Collaboration diagram for StorageItem:
[legend]

Public Member Functions

 StorageItem (PasswordContainer *point, const OUString &path)
 
PasswordMap getInfo ()
 
void update (const OUString &url, const NamePasswordRecord &rec)
 
void remove (const OUString &url, const OUString &rec)
 
void clear ()
 
sal_Int32 getStorageVersion ()
 
bool getEncodedMasterPassword (OUString &aResult, OUString &aResultIV)
 
void setEncodedMasterPassword (const OUString &aResult, const OUString &aResultIV, bool bAcceptEmpty=false)
 
void setUseStorage (bool bUse)
 
bool useStorage ()
 
virtual void Notify (const css::uno::Sequence< OUString > &aPropertyNames) override
 
- Public Member Functions inherited from utl::ConfigItem
virtual ~ConfigItem () override
 
 ConfigItem (ConfigItem const &)=default
 
 ConfigItem (ConfigItem &&)=default
 
ConfigItemoperator= (ConfigItem const &)=delete
 
ConfigItemoperator= (ConfigItem &&)=delete
 
virtual void Notify (const css::uno::Sequence< OUString > &aPropertyNames)=0
 
const OUString & GetSubTreeName () const
 
bool IsModified () const
 
void Commit ()
 
ConfigItemMode GetMode () const
 
- Public Member Functions inherited from utl::ConfigurationBroadcaster
void AddListener (utl::ConfigurationListener *pListener)
 
void RemoveListener (utl::ConfigurationListener const *pListener)
 
void NotifyListeners (ConfigurationHints nHint)
 
 ConfigurationBroadcaster ()
 
 ConfigurationBroadcaster (ConfigurationBroadcaster const &)
 
virtual ~ConfigurationBroadcaster ()
 
ConfigurationBroadcasteroperator= (ConfigurationBroadcaster const &other)
 
virtual void BlockBroadcasts (bool bBlock)
 

Private Member Functions

virtual void ImplCommit () override
 

Private Attributes

PasswordContainermainCont
 
bool hasEncoded
 
OUString mEncoded
 
OUString mEncodedIV
 

Additional Inherited Members

- Static Public Member Functions inherited from utl::ConfigItem
static css::uno::Sequence< OUString > GetNodeNames (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode, ConfigNameFormat eFormat)
 
static css::uno::Sequence< css::uno::Any > GetProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const css::uno::Sequence< OUString > &rNames, bool bAllLocales)
 
static bool PutProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const css::uno::Sequence< OUString > &rNames, const css::uno::Sequence< css::uno::Any > &rValues, bool bAllLocales)
 
static bool ClearNodeSet (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode)
 
static bool ReplaceSetProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues, bool bAllLocales)
 
static bool SetSetProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues)
 
- Protected Member Functions inherited from utl::ConfigItem
 ConfigItem (OUString aSubTree, ConfigItemMode nMode=ConfigItemMode::NONE)
 
void SetModified ()
 
void ClearModified ()
 
css::uno::Sequence< css::uno::Any > GetProperties (const css::uno::Sequence< OUString > &rNames)
 
css::uno::Sequence< sal_BoolGetReadOnlyStates (const css::uno::Sequence< OUString > &rNames)
 
bool PutProperties (const css::uno::Sequence< OUString > &rNames, const css::uno::Sequence< css::uno::Any > &rValues)
 
bool EnableNotification (const css::uno::Sequence< OUString > &rNames, bool bEnableInternalNotification=false)
 
void DisableNotification ()
 
css::uno::Sequence< OUString > GetNodeNames (const OUString &rNode)
 
css::uno::Sequence< OUString > GetNodeNames (const OUString &rNode, ConfigNameFormat eFormat)
 
bool ClearNodeSet (const OUString &rNode)
 
bool ClearNodeElements (const OUString &rNode, css::uno::Sequence< OUString > const &rElements)
 
bool SetSetProperties (const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues)
 
bool ReplaceSetProperties (const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues)
 
bool AddNode (const OUString &rNode, const OUString &rNewNode)
 

Detailed Description

Definition at line 198 of file passwordcontainer.hxx.

Constructor & Destructor Documentation

◆ StorageItem()

StorageItem::StorageItem ( PasswordContainer point,
const OUString &  path 
)
inline

Definition at line 210 of file passwordcontainer.hxx.

References utl::ConfigItem::EnableNotification(), NONE, and point().

Member Function Documentation

◆ clear()

void StorageItem::clear ( )

Definition at line 337 of file passwordcontainer.cxx.

◆ getEncodedMasterPassword()

bool StorageItem::getEncodedMasterPassword ( OUString &  aResult,
OUString &  aResultIV 
)

Definition at line 284 of file passwordcontainer.cxx.

References aPropertyValues, hasEncoded, mEncoded, and mEncodedIV.

◆ getInfo()

PasswordMap StorageItem::getInfo ( )

Definition at line 184 of file passwordcontainer.cxx.

References aName, aPropertyValues, aPropNames, and getInfoFromInd().

◆ getStorageVersion()

sal_Int32 StorageItem::getStorageVersion ( )

Definition at line 266 of file passwordcontainer.cxx.

References aPropertyValues.

◆ ImplCommit()

void StorageItem::ImplCommit ( )
overrideprivatevirtual

Implements utl::ConfigItem.

Definition at line 370 of file passwordcontainer.cxx.

◆ Notify()

void StorageItem::Notify ( const css::uno::Sequence< OUString > &  aPropertyNames)
overridevirtual

Implements utl::ConfigItem.

Definition at line 362 of file passwordcontainer.cxx.

References mainCont, and PasswordContainer::Notify().

◆ remove()

void StorageItem::remove ( const OUString &  url,
const OUString &  rec 
)

Definition at line 329 of file passwordcontainer.cxx.

References aName, aURL, and createIndex().

◆ setEncodedMasterPassword()

void StorageItem::setEncodedMasterPassword ( const OUString &  aResult,
const OUString &  aResultIV,
bool  bAcceptEmpty = false 
)

Definition at line 314 of file passwordcontainer.cxx.

References hasEncoded, mEncoded, mEncodedIV, and nCurrentStorageVersion.

◆ setUseStorage()

void StorageItem::setUseStorage ( bool  bUse)

Definition at line 240 of file passwordcontainer.cxx.

◆ update()

void StorageItem::update ( const OUString &  url,
const NamePasswordRecord rec 
)

◆ useStorage()

bool StorageItem::useStorage ( )

Definition at line 247 of file passwordcontainer.cxx.

References aPropertyValues.

Member Data Documentation

◆ hasEncoded

bool StorageItem::hasEncoded
private

Definition at line 203 of file passwordcontainer.hxx.

Referenced by getEncodedMasterPassword(), and setEncodedMasterPassword().

◆ mainCont

PasswordContainer* StorageItem::mainCont
private

Definition at line 202 of file passwordcontainer.hxx.

Referenced by Notify().

◆ mEncoded

OUString StorageItem::mEncoded
private

Definition at line 204 of file passwordcontainer.hxx.

Referenced by getEncodedMasterPassword(), and setEncodedMasterPassword().

◆ mEncodedIV

OUString StorageItem::mEncodedIV
private

Definition at line 205 of file passwordcontainer.hxx.

Referenced by getEncodedMasterPassword(), and setEncodedMasterPassword().


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