KLayout 0.29.8 (2024-11-26 926dac96c) [master]

API reference - Class QNetworkRequest::Attribute

Notation used in Ruby API documentation

Module: QtNetwork

Description: This class represents the QNetworkRequest::Attribute enum

This class is equivalent to the class QNetworkRequest_Attribute

Public constructors

new QNetworkRequest_Attribute ptrnew(int i)Creates an enum from an integer value
new QNetworkRequest_Attribute ptrnew(string s)Creates an enum from a string value

Public methods

[const]bool!=(const QNetworkRequest_Attribute other)Compares two enums for inequality
[const]bool!=(int other)Compares an enum with an integer for inequality
[const]bool<(const QNetworkRequest_Attribute other)Returns true if the first enum is less (in the enum symbol order) than the second
[const]bool<(int other)Returns true if the enum is less (in the enum symbol order) than the integer value
[const]bool==(const QNetworkRequest_Attribute other)Compares two enums
[const]bool==(int other)Compares an enum with an integer value
[const]QNetworkRequest_Attribute ptr_const_castReturns a non-const reference to self.
void_createEnsures the C++ object is created
void_destroyExplicitly destroys the object
[const]bool_destroyed?Returns a value indicating whether the object was already destroyed
[const]bool_is_const_object?Returns a value indicating whether the reference is a const reference
void_manageMarks the object as managed by the script side.
void_unmanageMarks the object as no longer owned by the script side.
voidassign(const QNetworkRequest_Attribute other)Assigns another object to self
[const]new QNetworkRequest_Attribute ptrdupCreates a copy of self
[const]inthashGets the hash value from the enum
[const]stringinspectConverts an enum to a visual string
[const]intto_iGets the integer value from the enum
[const]stringto_sGets the symbolic string from an enum
[const]QNetworkRequest_QFlags_Attribute|(const QNetworkRequest_Attribute other)Creates a flag set by combining the two flags
[const]QNetworkRequest_QFlags_Attribute|(const QNetworkRequest_QFlags_Attribute other)Combines the flag and the flag set

Public static methods and constants

[static,const]QNetworkRequest_AttributeAuthenticationReuseAttributeEnum constant QNetworkRequest::AuthenticationReuseAttribute
[static,const]QNetworkRequest_AttributeBackgroundRequestAttributeEnum constant QNetworkRequest::BackgroundRequestAttribute
[static,const]QNetworkRequest_AttributeCacheLoadControlAttributeEnum constant QNetworkRequest::CacheLoadControlAttribute
[static,const]QNetworkRequest_AttributeCacheSaveControlAttributeEnum constant QNetworkRequest::CacheSaveControlAttribute
[static,const]QNetworkRequest_AttributeConnectionEncryptedAttributeEnum constant QNetworkRequest::ConnectionEncryptedAttribute
[static,const]QNetworkRequest_AttributeCookieLoadControlAttributeEnum constant QNetworkRequest::CookieLoadControlAttribute
[static,const]QNetworkRequest_AttributeCookieSaveControlAttributeEnum constant QNetworkRequest::CookieSaveControlAttribute
[static,const]QNetworkRequest_AttributeCustomVerbAttributeEnum constant QNetworkRequest::CustomVerbAttribute
[static,const]QNetworkRequest_AttributeDoNotBufferUploadDataAttributeEnum constant QNetworkRequest::DoNotBufferUploadDataAttribute
[static,const]QNetworkRequest_AttributeDownloadBufferAttributeEnum constant QNetworkRequest::DownloadBufferAttribute
[static,const]QNetworkRequest_AttributeEmitAllUploadProgressSignalsAttributeEnum constant QNetworkRequest::EmitAllUploadProgressSignalsAttribute
[static,const]QNetworkRequest_AttributeFollowRedirectsAttributeEnum constant QNetworkRequest::FollowRedirectsAttribute
[static,const]QNetworkRequest_AttributeHTTP2AllowedAttributeEnum constant QNetworkRequest::HTTP2AllowedAttribute
[static,const]QNetworkRequest_AttributeHTTP2WasUsedAttributeEnum constant QNetworkRequest::HTTP2WasUsedAttribute
[static,const]QNetworkRequest_AttributeHttp2DirectAttributeEnum constant QNetworkRequest::Http2DirectAttribute
[static,const]QNetworkRequest_AttributeHttpPipeliningAllowedAttributeEnum constant QNetworkRequest::HttpPipeliningAllowedAttribute
[static,const]QNetworkRequest_AttributeHttpPipeliningWasUsedAttributeEnum constant QNetworkRequest::HttpPipeliningWasUsedAttribute
[static,const]QNetworkRequest_AttributeHttpReasonPhraseAttributeEnum constant QNetworkRequest::HttpReasonPhraseAttribute
[static,const]QNetworkRequest_AttributeHttpStatusCodeAttributeEnum constant QNetworkRequest::HttpStatusCodeAttribute
[static,const]QNetworkRequest_AttributeMaximumDownloadBufferSizeAttributeEnum constant QNetworkRequest::MaximumDownloadBufferSizeAttribute
[static,const]QNetworkRequest_AttributeOriginalContentLengthAttributeEnum constant QNetworkRequest::OriginalContentLengthAttribute
[static,const]QNetworkRequest_AttributeRedirectPolicyAttributeEnum constant QNetworkRequest::RedirectPolicyAttribute
[static,const]QNetworkRequest_AttributeRedirectionTargetAttributeEnum constant QNetworkRequest::RedirectionTargetAttribute
[static,const]QNetworkRequest_AttributeResourceTypeAttributeEnum constant QNetworkRequest::ResourceTypeAttribute
[static,const]QNetworkRequest_AttributeSourceIsFromCacheAttributeEnum constant QNetworkRequest::SourceIsFromCacheAttribute
[static,const]QNetworkRequest_AttributeSpdyAllowedAttributeEnum constant QNetworkRequest::SpdyAllowedAttribute
[static,const]QNetworkRequest_AttributeSpdyWasUsedAttributeEnum constant QNetworkRequest::SpdyWasUsedAttribute
[static,const]QNetworkRequest_AttributeSynchronousRequestAttributeEnum constant QNetworkRequest::SynchronousRequestAttribute
[static,const]QNetworkRequest_AttributeUserEnum constant QNetworkRequest::User
[static,const]QNetworkRequest_AttributeUserMaxEnum constant QNetworkRequest::UserMax

Deprecated methods (protected, public, static, non-static and constructors)

voidcreateUse of this method is deprecated. Use _create instead
voiddestroyUse of this method is deprecated. Use _destroy instead
[const]booldestroyed?Use of this method is deprecated. Use _destroyed? instead
[const]boolis_const_object?Use of this method is deprecated. Use _is_const_object? instead

Detailed description

!=

(1) Signature: [const] bool != (const QNetworkRequest_Attribute other)

Description: Compares two enums for inequality

(2) Signature: [const] bool != (int other)

Description: Compares an enum with an integer for inequality

<

(1) Signature: [const] bool < (const QNetworkRequest_Attribute other)

Description: Returns true if the first enum is less (in the enum symbol order) than the second

(2) Signature: [const] bool < (int other)

Description: Returns true if the enum is less (in the enum symbol order) than the integer value

==

(1) Signature: [const] bool == (const QNetworkRequest_Attribute other)

Description: Compares two enums

(2) Signature: [const] bool == (int other)

Description: Compares an enum with an integer value

AuthenticationReuseAttribute

Signature: [static,const] QNetworkRequest_Attribute AuthenticationReuseAttribute

Description: Enum constant QNetworkRequest::AuthenticationReuseAttribute

Python specific notes:
The object exposes a readable attribute 'AuthenticationReuseAttribute'. This is the getter.

BackgroundRequestAttribute

Signature: [static,const] QNetworkRequest_Attribute BackgroundRequestAttribute

Description: Enum constant QNetworkRequest::BackgroundRequestAttribute

Python specific notes:
The object exposes a readable attribute 'BackgroundRequestAttribute'. This is the getter.

CacheLoadControlAttribute

Signature: [static,const] QNetworkRequest_Attribute CacheLoadControlAttribute

Description: Enum constant QNetworkRequest::CacheLoadControlAttribute

Python specific notes:
The object exposes a readable attribute 'CacheLoadControlAttribute'. This is the getter.

CacheSaveControlAttribute

Signature: [static,const] QNetworkRequest_Attribute CacheSaveControlAttribute

Description: Enum constant QNetworkRequest::CacheSaveControlAttribute

Python specific notes:
The object exposes a readable attribute 'CacheSaveControlAttribute'. This is the getter.

ConnectionEncryptedAttribute

Signature: [static,const] QNetworkRequest_Attribute ConnectionEncryptedAttribute

Description: Enum constant QNetworkRequest::ConnectionEncryptedAttribute

Python specific notes:
The object exposes a readable attribute 'ConnectionEncryptedAttribute'. This is the getter.

CookieLoadControlAttribute

Signature: [static,const] QNetworkRequest_Attribute CookieLoadControlAttribute

Description: Enum constant QNetworkRequest::CookieLoadControlAttribute

Python specific notes:
The object exposes a readable attribute 'CookieLoadControlAttribute'. This is the getter.

CookieSaveControlAttribute

Signature: [static,const] QNetworkRequest_Attribute CookieSaveControlAttribute

Description: Enum constant QNetworkRequest::CookieSaveControlAttribute

Python specific notes:
The object exposes a readable attribute 'CookieSaveControlAttribute'. This is the getter.

CustomVerbAttribute

Signature: [static,const] QNetworkRequest_Attribute CustomVerbAttribute

Description: Enum constant QNetworkRequest::CustomVerbAttribute

Python specific notes:
The object exposes a readable attribute 'CustomVerbAttribute'. This is the getter.

DoNotBufferUploadDataAttribute

Signature: [static,const] QNetworkRequest_Attribute DoNotBufferUploadDataAttribute

Description: Enum constant QNetworkRequest::DoNotBufferUploadDataAttribute

Python specific notes:
The object exposes a readable attribute 'DoNotBufferUploadDataAttribute'. This is the getter.

DownloadBufferAttribute

Signature: [static,const] QNetworkRequest_Attribute DownloadBufferAttribute

Description: Enum constant QNetworkRequest::DownloadBufferAttribute

Python specific notes:
The object exposes a readable attribute 'DownloadBufferAttribute'. This is the getter.

EmitAllUploadProgressSignalsAttribute

Signature: [static,const] QNetworkRequest_Attribute EmitAllUploadProgressSignalsAttribute

Description: Enum constant QNetworkRequest::EmitAllUploadProgressSignalsAttribute

Python specific notes:
The object exposes a readable attribute 'EmitAllUploadProgressSignalsAttribute'. This is the getter.

FollowRedirectsAttribute

Signature: [static,const] QNetworkRequest_Attribute FollowRedirectsAttribute

Description: Enum constant QNetworkRequest::FollowRedirectsAttribute

Python specific notes:
The object exposes a readable attribute 'FollowRedirectsAttribute'. This is the getter.

HTTP2AllowedAttribute

Signature: [static,const] QNetworkRequest_Attribute HTTP2AllowedAttribute

Description: Enum constant QNetworkRequest::HTTP2AllowedAttribute

Python specific notes:
The object exposes a readable attribute 'HTTP2AllowedAttribute'. This is the getter.

HTTP2WasUsedAttribute

Signature: [static,const] QNetworkRequest_Attribute HTTP2WasUsedAttribute

Description: Enum constant QNetworkRequest::HTTP2WasUsedAttribute

Python specific notes:
The object exposes a readable attribute 'HTTP2WasUsedAttribute'. This is the getter.

Http2DirectAttribute

Signature: [static,const] QNetworkRequest_Attribute Http2DirectAttribute

Description: Enum constant QNetworkRequest::Http2DirectAttribute

Python specific notes:
The object exposes a readable attribute 'Http2DirectAttribute'. This is the getter.

HttpPipeliningAllowedAttribute

Signature: [static,const] QNetworkRequest_Attribute HttpPipeliningAllowedAttribute

Description: Enum constant QNetworkRequest::HttpPipeliningAllowedAttribute

Python specific notes:
The object exposes a readable attribute 'HttpPipeliningAllowedAttribute'. This is the getter.

HttpPipeliningWasUsedAttribute

Signature: [static,const] QNetworkRequest_Attribute HttpPipeliningWasUsedAttribute

Description: Enum constant QNetworkRequest::HttpPipeliningWasUsedAttribute

Python specific notes:
The object exposes a readable attribute 'HttpPipeliningWasUsedAttribute'. This is the getter.

HttpReasonPhraseAttribute

Signature: [static,const] QNetworkRequest_Attribute HttpReasonPhraseAttribute

Description: Enum constant QNetworkRequest::HttpReasonPhraseAttribute

Python specific notes:
The object exposes a readable attribute 'HttpReasonPhraseAttribute'. This is the getter.

HttpStatusCodeAttribute

Signature: [static,const] QNetworkRequest_Attribute HttpStatusCodeAttribute

Description: Enum constant QNetworkRequest::HttpStatusCodeAttribute

Python specific notes:
The object exposes a readable attribute 'HttpStatusCodeAttribute'. This is the getter.

MaximumDownloadBufferSizeAttribute

Signature: [static,const] QNetworkRequest_Attribute MaximumDownloadBufferSizeAttribute

Description: Enum constant QNetworkRequest::MaximumDownloadBufferSizeAttribute

Python specific notes:
The object exposes a readable attribute 'MaximumDownloadBufferSizeAttribute'. This is the getter.

OriginalContentLengthAttribute

Signature: [static,const] QNetworkRequest_Attribute OriginalContentLengthAttribute

Description: Enum constant QNetworkRequest::OriginalContentLengthAttribute

Python specific notes:
The object exposes a readable attribute 'OriginalContentLengthAttribute'. This is the getter.

RedirectPolicyAttribute

Signature: [static,const] QNetworkRequest_Attribute RedirectPolicyAttribute

Description: Enum constant QNetworkRequest::RedirectPolicyAttribute

Python specific notes:
The object exposes a readable attribute 'RedirectPolicyAttribute'. This is the getter.

RedirectionTargetAttribute

Signature: [static,const] QNetworkRequest_Attribute RedirectionTargetAttribute

Description: Enum constant QNetworkRequest::RedirectionTargetAttribute

Python specific notes:
The object exposes a readable attribute 'RedirectionTargetAttribute'. This is the getter.

ResourceTypeAttribute

Signature: [static,const] QNetworkRequest_Attribute ResourceTypeAttribute

Description: Enum constant QNetworkRequest::ResourceTypeAttribute

Python specific notes:
The object exposes a readable attribute 'ResourceTypeAttribute'. This is the getter.

SourceIsFromCacheAttribute

Signature: [static,const] QNetworkRequest_Attribute SourceIsFromCacheAttribute

Description: Enum constant QNetworkRequest::SourceIsFromCacheAttribute

Python specific notes:
The object exposes a readable attribute 'SourceIsFromCacheAttribute'. This is the getter.

SpdyAllowedAttribute

Signature: [static,const] QNetworkRequest_Attribute SpdyAllowedAttribute

Description: Enum constant QNetworkRequest::SpdyAllowedAttribute

Python specific notes:
The object exposes a readable attribute 'SpdyAllowedAttribute'. This is the getter.

SpdyWasUsedAttribute

Signature: [static,const] QNetworkRequest_Attribute SpdyWasUsedAttribute

Description: Enum constant QNetworkRequest::SpdyWasUsedAttribute

Python specific notes:
The object exposes a readable attribute 'SpdyWasUsedAttribute'. This is the getter.

SynchronousRequestAttribute

Signature: [static,const] QNetworkRequest_Attribute SynchronousRequestAttribute

Description: Enum constant QNetworkRequest::SynchronousRequestAttribute

Python specific notes:
The object exposes a readable attribute 'SynchronousRequestAttribute'. This is the getter.

User

Signature: [static,const] QNetworkRequest_Attribute User

Description: Enum constant QNetworkRequest::User

Python specific notes:
The object exposes a readable attribute 'User'. This is the getter.

UserMax

Signature: [static,const] QNetworkRequest_Attribute UserMax

Description: Enum constant QNetworkRequest::UserMax

Python specific notes:
The object exposes a readable attribute 'UserMax'. This is the getter.

_const_cast

Signature: [const] QNetworkRequest_Attribute ptr _const_cast

Description: Returns a non-const reference to self.

Basically, this method allows turning a const object reference to a non-const one. This method is provided as last resort to remove the constness from an object. Usually there is a good reason for a const object reference, so using this method may have undesired side effects.

This method has been introduced in version 0.29.6.

_create

Signature: void _create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

_destroy

Signature: void _destroy

Description: Explicitly destroys the object

Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing.

_destroyed?

Signature: [const] bool _destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

_is_const_object?

Signature: [const] bool _is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

_manage

Signature: void _manage

Description: Marks the object as managed by the script side.

After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required.

Usually it's not required to call this method. It has been introduced in version 0.24.

_unmanage

Signature: void _unmanage

Description: Marks the object as no longer owned by the script side.

Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur.

Usually it's not required to call this method. It has been introduced in version 0.24.

assign

Signature: void assign (const QNetworkRequest_Attribute other)

Description: Assigns another object to self

create

Signature: void create

Description: Ensures the C++ object is created

Use of this method is deprecated. Use _create instead

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

destroy

Signature: void destroy

Description: Explicitly destroys the object

Use of this method is deprecated. Use _destroy instead

Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing.

destroyed?

Signature: [const] bool destroyed?

Description: Returns a value indicating whether the object was already destroyed

Use of this method is deprecated. Use _destroyed? instead

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

dup

Signature: [const] new QNetworkRequest_Attribute ptr dup

Description: Creates a copy of self

Python specific notes:
This method also implements '__copy__' and '__deepcopy__'.

hash

Signature: [const] int hash

Description: Gets the hash value from the enum

Python specific notes:
This method is also available as 'hash(object)'.

inspect

Signature: [const] string inspect

Description: Converts an enum to a visual string

Python specific notes:
This method is also available as 'repr(object)'.

is_const_object?

Signature: [const] bool is_const_object?

Description: Returns a value indicating whether the reference is a const reference

Use of this method is deprecated. Use _is_const_object? instead

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

new

(1) Signature: [static] new QNetworkRequest_Attribute ptr new (int i)

Description: Creates an enum from an integer value

Python specific notes:
This method is the default initializer of the object.

(2) Signature: [static] new QNetworkRequest_Attribute ptr new (string s)

Description: Creates an enum from a string value

Python specific notes:
This method is the default initializer of the object.

to_i

Signature: [const] int to_i

Description: Gets the integer value from the enum

Python specific notes:
This method is also available as 'int(object)'.

to_s

Signature: [const] string to_s

Description: Gets the symbolic string from an enum

Python specific notes:
This method is also available as 'str(object)'.

|

(1) Signature: [const] QNetworkRequest_QFlags_Attribute | (const QNetworkRequest_Attribute other)

Description: Creates a flag set by combining the two flags

(2) Signature: [const] QNetworkRequest_QFlags_Attribute | (const QNetworkRequest_QFlags_Attribute other)

Description: Combines the flag and the flag set