LibreOffice Module svl (master) 1
|
#include <passwordcontainer.hxx>
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 | |
ConfigItem & | operator= (ConfigItem const &)=delete |
ConfigItem & | operator= (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 () |
ConfigurationBroadcaster & | operator= (ConfigurationBroadcaster const &other) |
virtual void | BlockBroadcasts (bool bBlock) |
Private Member Functions | |
virtual void | ImplCommit () override |
Private Attributes | |
PasswordContainer * | mainCont |
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_Bool > | GetReadOnlyStates (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) |
Definition at line 198 of file passwordcontainer.hxx.
|
inline |
Definition at line 210 of file passwordcontainer.hxx.
References utl::ConfigItem::EnableNotification(), NONE, and point().
void StorageItem::clear | ( | ) |
Definition at line 337 of file passwordcontainer.cxx.
bool StorageItem::getEncodedMasterPassword | ( | OUString & | aResult, |
OUString & | aResultIV | ||
) |
Definition at line 284 of file passwordcontainer.cxx.
References aPropertyValues, hasEncoded, mEncoded, and mEncodedIV.
PasswordMap StorageItem::getInfo | ( | ) |
Definition at line 184 of file passwordcontainer.cxx.
References aName, aPropertyValues, aPropNames, and getInfoFromInd().
sal_Int32 StorageItem::getStorageVersion | ( | ) |
Definition at line 266 of file passwordcontainer.cxx.
References aPropertyValues.
|
overrideprivatevirtual |
Implements utl::ConfigItem.
Definition at line 370 of file passwordcontainer.cxx.
|
overridevirtual |
Implements utl::ConfigItem.
Definition at line 362 of file passwordcontainer.cxx.
References mainCont, and PasswordContainer::Notify().
void StorageItem::remove | ( | const OUString & | url, |
const OUString & | rec | ||
) |
Definition at line 329 of file passwordcontainer.cxx.
References aName, aURL, and createIndex().
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.
void StorageItem::setUseStorage | ( | bool | bUse | ) |
Definition at line 240 of file passwordcontainer.cxx.
void StorageItem::update | ( | const OUString & | url, |
const NamePasswordRecord & | rec | ||
) |
Definition at line 343 of file passwordcontainer.cxx.
References aURL, createIndex(), NamePasswordRecord::GetPersistentIV(), NamePasswordRecord::GetPersistentPasswords(), NamePasswordRecord::GetUserName(), NamePasswordRecord::HasPasswords(), comphelper::makePropertyValue(), and PERSISTENT_RECORD.
bool StorageItem::useStorage | ( | ) |
Definition at line 247 of file passwordcontainer.cxx.
References aPropertyValues.
|
private |
Definition at line 203 of file passwordcontainer.hxx.
Referenced by getEncodedMasterPassword(), and setEncodedMasterPassword().
|
private |
Definition at line 202 of file passwordcontainer.hxx.
Referenced by Notify().
|
private |
Definition at line 204 of file passwordcontainer.hxx.
Referenced by getEncodedMasterPassword(), and setEncodedMasterPassword().
|
private |
Definition at line 205 of file passwordcontainer.hxx.
Referenced by getEncodedMasterPassword(), and setEncodedMasterPassword().