コード例 #1
0
ファイル: qauthenticator.cpp プロジェクト: Suneal/qt
/*!
  \internal
*/
void QAuthenticator::detach()
{
    if (!d) {
        d = new QAuthenticatorPrivate;
        d->ref = 1;
        return;
    }

    qAtomicDetach(d);
    d->phase = QAuthenticatorPrivate::Start;
}
コード例 #2
0
ファイル: qsqlfield.cpp プロジェクト: RS102839/qt
/*! \internal
*/
void QSqlField::detach()
{
    qAtomicDetach(d);
}
コード例 #3
0
/*!
  Sets this socket's CA certificate database to be \a certificates.
  The certificate database must be set prior to the SSL handshake.
  The CA certificate database is used by the socket during the
  handshake phase to validate the peer's certificate.

  \sa caCertificates()
*/
void QSslConfiguration::setCaCertificates(const QList<QSslCertificate> &certificates)
{
    qAtomicDetach(d);
    d->caCertificates = certificates;
}
コード例 #4
0
/*!
    Sets the cryptographic cipher suite for this socket to \a ciphers,
    which must contain a subset of the ciphers in the list returned by
    supportedCiphers().

    Restricting the cipher suite must be done before the handshake
    phase, where the session cipher is chosen.

    \sa ciphers(), QSslSocket::supportedCiphers()
*/
void QSslConfiguration::setCiphers(const QList<QSslCipher> &ciphers)
{
    qAtomicDetach(d);
    d->ciphers = ciphers;
}
コード例 #5
0
/*!
    Sets the connection's private \l {QSslKey} {key} to \a key. The
    private key and the local \l {QSslCertificate} {certificate} are
    used by clients and servers that must prove their identity to
    SSL peers.

    Both the key and the local certificate are required if you are
    creating an SSL server socket. If you are creating an SSL client
    socket, the key and local certificate are required if your client
    must identify itself to an SSL server.

    \sa privateKey(), setLocalCertificate()
*/
void QSslConfiguration::setPrivateKey(const QSslKey &key)
{
    qAtomicDetach(d);
    d->privateKey = key;
}
コード例 #6
0
/*!
    Sets the certificate to be presented to the peer during SSL
    handshake to be \a certificate.

    Setting the certificate once the connection has been established
    has no effect.

    A certificate is the means of identification used in the SSL
    process. The local certificate is used by the remote end to verify
    the local user's identity against its list of Certification
    Authorities. In most cases, such as in HTTP web browsing, only
    servers identify to the clients, so the client does not send a
    certificate.

    \sa localCertificate()
*/
void QSslConfiguration::setLocalCertificate(const QSslCertificate &certificate)
{
    qAtomicDetach(d);
    d->localCertificate = certificate;
}
コード例 #7
0
/*!
    Sets the protocol setting for this configuration to be \a
    protocol.

    Setting the protocol once the connection has already been
    established has no effect.

    \sa protocol()
*/
void QSslConfiguration::setProtocol(QSsl::SslProtocol protocol)
{
    qAtomicDetach(d);
    d->protocol = protocol;
}
コード例 #8
0
ファイル: qsqlrecord.cpp プロジェクト: AtlantisCD9/Qt
/*! \internal
*/
void QSqlRecord::detach()
{
    qAtomicDetach(d);
}
コード例 #9
0
void DimensionSlice::detach()
{
    qAtomicDetach((DimensionSlicePrivate *&) d);
}
コード例 #10
0
ファイル: GeoDataCamera.cpp プロジェクト: AsherBond/marble
void GeoDataCamera::detach()
{
    qAtomicDetach( d );
}
コード例 #11
0
ファイル: GeoDataLookAt.cpp プロジェクト: KDE/marble
void GeoDataLookAt::detach()
{
    qAtomicDetach( d );
}
コード例 #12
0
ファイル: BBCStation.cpp プロジェクト: snowy97/marble
void BBCStation::detach()
{
    qAtomicDetach( d );
}
コード例 #13
0
ファイル: entityinfo.cpp プロジェクト: ernan/qeverything
void PropertyInfo::detach()
{
    qAtomicDetach(d);
    if(d->ref.load()==0) d->ref.ref();
}
コード例 #14
0
ファイル: entityinstance.cpp プロジェクト: Jinxiaohai/QT
void EntityInstance::detach()
{
    qAtomicDetach(d);
    if(d->ref.load()==0) d->ref.ref();
}