Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QHstsStore Class Reference

#include <qhstsstore_p.h>

+ Collaboration diagram for QHstsStore:

Public Member Functions

 QHstsStore (const QString &dirName)
 
 ~QHstsStore ()
 
QList< QHstsPolicyreadPolicies ()
 
void addToObserved (const QHstsPolicy &policy)
 
void synchronize ()
 
bool isWritable () const
 

Static Public Member Functions

static QString absoluteFilePath (const QString &dirName)
 

Detailed Description

Definition at line 31 of file qhstsstore_p.h.

Constructor & Destructor Documentation

◆ QHstsStore()

QHstsStore::QHstsStore ( const QString & dirName)
explicit

Definition at line 33 of file qhstsstore.cpp.

References QSettings::setFallbacksEnabled().

+ Here is the call graph for this function:

◆ ~QHstsStore()

QHstsStore::~QHstsStore ( )

Definition at line 40 of file qhstsstore.cpp.

References synchronize().

+ Here is the call graph for this function:

Member Function Documentation

◆ absoluteFilePath()

QString QHstsStore::absoluteFilePath ( const QString & dirName)
static

Definition at line 101 of file qhstsstore.cpp.

References QStandardPaths::CacheLocation, dir, QString::isEmpty(), and QStandardPaths::writableLocation().

+ Here is the call graph for this function:

◆ addToObserved()

void QHstsStore::addToObserved ( const QHstsPolicy & policy)

Definition at line 71 of file qhstsstore.cpp.

References policy, and QList< T >::push_back().

+ Here is the call graph for this function:

◆ isWritable()

bool QHstsStore::isWritable ( ) const

Definition at line 96 of file qhstsstore.cpp.

References QSettings::isWritable().

Referenced by readPolicies(), and synchronize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ readPolicies()

QList< QHstsPolicy > QHstsStore::readPolicies ( )

Definition at line 45 of file qhstsstore.cpp.

References QSettings::childKeys(), isWritable(), keys, QHstsPolicy::setHost(), and settings_key_to_host_name().

+ Here is the call graph for this function:

◆ synchronize()

void QHstsStore::synchronize ( )

Definition at line 76 of file qhstsstore.cpp.

References QList< T >::clear(), host_name_to_settings_key(), isWritable(), policy, QList< T >::size(), and QSettings::sync().

Referenced by ~QHstsStore().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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