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

API reference - Class QUrlInfo

Notation used in Ruby API documentation

Module: QtNetwork

Description: Binding of QUrlInfo

Class hierarchy: QUrlInfo

Public constructors

new QUrlInfonewConstructor QUrlInfo::QUrlInfo()
new QUrlInfonew(const QUrlInfo ui)Constructor QUrlInfo::QUrlInfo(const QUrlInfo &ui)

Public methods

[const]bool!=(const QUrlInfo i)Method bool QUrlInfo::operator!=(const QUrlInfo &i)
[const]bool==(const QUrlInfo i)Method bool QUrlInfo::operator==(const QUrlInfo &i)
void_assign(const QUrlInfo other)Assigns another object to self
[const]QUrlInfo 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]new QUrlInfo ptr_dupCreates a copy of self
[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.
QUrlInfoassign(const QUrlInfo ui)Method QUrlInfo &QUrlInfo::operator=(const QUrlInfo &ui)
[const]booldirMethod bool QUrlInfo::isDir()
voiddir=(bool b)Method void QUrlInfo::setDir(bool b)
[const]new QUrlInfo ptrdupCreates a copy of self
[const]boolfileMethod bool QUrlInfo::isFile()
voidfile=(bool b)Method void QUrlInfo::setFile(bool b)
[const]stringgroupMethod QString QUrlInfo::group()
voidgroup=(string s)Method void QUrlInfo::setGroup(const QString &s)
[const]boolisDir?Method bool QUrlInfo::isDir()
[const]boolisExecutable?Method bool QUrlInfo::isExecutable()
[const]boolisFile?Method bool QUrlInfo::isFile()
[const]boolisReadable?Method bool QUrlInfo::isReadable()
[const]boolisSymLink?Method bool QUrlInfo::isSymLink()
[const]boolisValid?Method bool QUrlInfo::isValid()
[const]boolisWritable?Method bool QUrlInfo::isWritable()
[const]QDateTimelastModifiedMethod QDateTime QUrlInfo::lastModified()
voidlastModified=(const QDateTime dt)Method void QUrlInfo::setLastModified(const QDateTime &dt)
[const]QDateTimelastReadMethod QDateTime QUrlInfo::lastRead()
voidlastRead=(const QDateTime dt)Method void QUrlInfo::setLastRead(const QDateTime &dt)
[const]stringnameMethod QString QUrlInfo::name()
voidname=(string name)Method void QUrlInfo::setName(const QString &name)
[const]stringownerMethod QString QUrlInfo::owner()
voidowner=(string s)Method void QUrlInfo::setOwner(const QString &s)
[const]intpermissionsMethod int QUrlInfo::permissions()
voidpermissions=(int p)Method void QUrlInfo::setPermissions(int p)
[const]boolreadableMethod bool QUrlInfo::isReadable()
voidreadable=(bool b)Method void QUrlInfo::setReadable(bool b)
voidsetDir(bool b)Virtual method void QUrlInfo::setDir(bool b)
voidsetFile(bool b)Virtual method void QUrlInfo::setFile(bool b)
voidsetGroup(string s)Virtual method void QUrlInfo::setGroup(const QString &s)
voidsetLastModified(const QDateTime dt)Virtual method void QUrlInfo::setLastModified(const QDateTime &dt)
voidsetLastRead(const QDateTime dt)Method void QUrlInfo::setLastRead(const QDateTime &dt)
voidsetName(string name)Virtual method void QUrlInfo::setName(const QString &name)
voidsetOwner(string s)Virtual method void QUrlInfo::setOwner(const QString &s)
voidsetPermissions(int p)Virtual method void QUrlInfo::setPermissions(int p)
voidsetReadable(bool b)Virtual method void QUrlInfo::setReadable(bool b)
voidsetSize(long long size)Virtual method void QUrlInfo::setSize(qint64 size)
voidsetSymLink(bool b)Virtual method void QUrlInfo::setSymLink(bool b)
voidsetWritable(bool b)Virtual method void QUrlInfo::setWritable(bool b)
[const]long longsizeMethod qint64 QUrlInfo::size()
voidsize=(long long size)Method void QUrlInfo::setSize(qint64 size)
[const]boolsymLinkMethod bool QUrlInfo::isSymLink()
voidsymLink=(bool b)Method void QUrlInfo::setSymLink(bool b)
[const]boolwritableMethod bool QUrlInfo::isWritable()
voidwritable=(bool b)Method void QUrlInfo::setWritable(bool b)

Public static methods and constants

boolequal(const QUrlInfo i1,
const QUrlInfo i2,
int sortBy)
Static method bool QUrlInfo::equal(const QUrlInfo &i1, const QUrlInfo &i2, int sortBy)
boolgreaterThan(const QUrlInfo i1,
const QUrlInfo i2,
int sortBy)
Static method bool QUrlInfo::greaterThan(const QUrlInfo &i1, const QUrlInfo &i2, int sortBy)
boollessThan(const QUrlInfo i1,
const QUrlInfo i2,
int sortBy)
Static method bool QUrlInfo::lessThan(const QUrlInfo &i1, const QUrlInfo &i2, int sortBy)

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

!=

Signature: [const] bool != (const QUrlInfo i)

Description: Method bool QUrlInfo::operator!=(const QUrlInfo &i)

==

Signature: [const] bool == (const QUrlInfo i)

Description: Method bool QUrlInfo::operator==(const QUrlInfo &i)

_assign

Signature: void _assign (const QUrlInfo other)

Description: Assigns another object to self

_const_cast

Signature: [const] QUrlInfo 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.

_dup

Signature: [const] new QUrlInfo ptr _dup

Description: Creates a copy of self

_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: QUrlInfo assign (const QUrlInfo ui)

Description: Method QUrlInfo &QUrlInfo::operator=(const QUrlInfo &ui)

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.

dir

Signature: [const] bool dir

Description: Method bool QUrlInfo::isDir()

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

dir=

Signature: void dir= (bool b)

Description: Method void QUrlInfo::setDir(bool b)

Python specific notes:
The object exposes a writable attribute 'dir'. This is the setter.

dup

Signature: [const] new QUrlInfo ptr dup

Description: Creates a copy of self

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

equal

Signature: [static] bool equal (const QUrlInfo i1, const QUrlInfo i2, int sortBy)

Description: Static method bool QUrlInfo::equal(const QUrlInfo &i1, const QUrlInfo &i2, int sortBy)

This method is static and can be called without an instance.

file

Signature: [const] bool file

Description: Method bool QUrlInfo::isFile()

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

file=

Signature: void file= (bool b)

Description: Method void QUrlInfo::setFile(bool b)

Python specific notes:
The object exposes a writable attribute 'file'. This is the setter.

greaterThan

Signature: [static] bool greaterThan (const QUrlInfo i1, const QUrlInfo i2, int sortBy)

Description: Static method bool QUrlInfo::greaterThan(const QUrlInfo &i1, const QUrlInfo &i2, int sortBy)

This method is static and can be called without an instance.

group

Signature: [const] string group

Description: Method QString QUrlInfo::group()

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

group=

Signature: void group= (string s)

Description: Method void QUrlInfo::setGroup(const QString &s)

Python specific notes:
The object exposes a writable attribute 'group'. This is the setter.

isDir?

Signature: [const] bool isDir?

Description: Method bool QUrlInfo::isDir()

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

isExecutable?

Signature: [const] bool isExecutable?

Description: Method bool QUrlInfo::isExecutable()

isFile?

Signature: [const] bool isFile?

Description: Method bool QUrlInfo::isFile()

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

isReadable?

Signature: [const] bool isReadable?

Description: Method bool QUrlInfo::isReadable()

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

isSymLink?

Signature: [const] bool isSymLink?

Description: Method bool QUrlInfo::isSymLink()

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

isValid?

Signature: [const] bool isValid?

Description: Method bool QUrlInfo::isValid()

isWritable?

Signature: [const] bool isWritable?

Description: Method bool QUrlInfo::isWritable()

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

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.

lastModified

Signature: [const] QDateTime lastModified

Description: Method QDateTime QUrlInfo::lastModified()

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

lastModified=

Signature: void lastModified= (const QDateTime dt)

Description: Method void QUrlInfo::setLastModified(const QDateTime &dt)

Python specific notes:
The object exposes a writable attribute 'lastModified'. This is the setter.

lastRead

Signature: [const] QDateTime lastRead

Description: Method QDateTime QUrlInfo::lastRead()

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

lastRead=

Signature: void lastRead= (const QDateTime dt)

Description: Method void QUrlInfo::setLastRead(const QDateTime &dt)

Python specific notes:
The object exposes a writable attribute 'lastRead'. This is the setter.

lessThan

Signature: [static] bool lessThan (const QUrlInfo i1, const QUrlInfo i2, int sortBy)

Description: Static method bool QUrlInfo::lessThan(const QUrlInfo &i1, const QUrlInfo &i2, int sortBy)

This method is static and can be called without an instance.

name

Signature: [const] string name

Description: Method QString QUrlInfo::name()

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

name=

Signature: void name= (string name)

Description: Method void QUrlInfo::setName(const QString &name)

Python specific notes:
The object exposes a writable attribute 'name'. This is the setter.

new

(1) Signature: [static] new QUrlInfo new

Description: Constructor QUrlInfo::QUrlInfo()

This method creates an object of class QUrlInfo.

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

(2) Signature: [static] new QUrlInfo new (const QUrlInfo ui)

Description: Constructor QUrlInfo::QUrlInfo(const QUrlInfo &ui)

This method creates an object of class QUrlInfo.

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

owner

Signature: [const] string owner

Description: Method QString QUrlInfo::owner()

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

owner=

Signature: void owner= (string s)

Description: Method void QUrlInfo::setOwner(const QString &s)

Python specific notes:
The object exposes a writable attribute 'owner'. This is the setter.

permissions

Signature: [const] int permissions

Description: Method int QUrlInfo::permissions()

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

permissions=

Signature: void permissions= (int p)

Description: Method void QUrlInfo::setPermissions(int p)

Python specific notes:
The object exposes a writable attribute 'permissions'. This is the setter.

readable

Signature: [const] bool readable

Description: Method bool QUrlInfo::isReadable()

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

readable=

Signature: void readable= (bool b)

Description: Method void QUrlInfo::setReadable(bool b)

Python specific notes:
The object exposes a writable attribute 'readable'. This is the setter.

setDir

Signature: void setDir (bool b)

Description: Virtual method void QUrlInfo::setDir(bool b)

This method can be reimplemented in a derived class.

setFile

Signature: void setFile (bool b)

Description: Virtual method void QUrlInfo::setFile(bool b)

This method can be reimplemented in a derived class.

setGroup

Signature: void setGroup (string s)

Description: Virtual method void QUrlInfo::setGroup(const QString &s)

This method can be reimplemented in a derived class.

setLastModified

Signature: void setLastModified (const QDateTime dt)

Description: Virtual method void QUrlInfo::setLastModified(const QDateTime &dt)

This method can be reimplemented in a derived class.

setLastRead

Signature: void setLastRead (const QDateTime dt)

Description: Method void QUrlInfo::setLastRead(const QDateTime &dt)

Python specific notes:
The object exposes a writable attribute 'lastRead'. This is the setter.

setName

Signature: void setName (string name)

Description: Virtual method void QUrlInfo::setName(const QString &name)

This method can be reimplemented in a derived class.

setOwner

Signature: void setOwner (string s)

Description: Virtual method void QUrlInfo::setOwner(const QString &s)

This method can be reimplemented in a derived class.

setPermissions

Signature: void setPermissions (int p)

Description: Virtual method void QUrlInfo::setPermissions(int p)

This method can be reimplemented in a derived class.

setReadable

Signature: void setReadable (bool b)

Description: Virtual method void QUrlInfo::setReadable(bool b)

This method can be reimplemented in a derived class.

setSize

Signature: void setSize (long long size)

Description: Virtual method void QUrlInfo::setSize(qint64 size)

This method can be reimplemented in a derived class.

setSymLink

Signature: void setSymLink (bool b)

Description: Virtual method void QUrlInfo::setSymLink(bool b)

This method can be reimplemented in a derived class.

setWritable

Signature: void setWritable (bool b)

Description: Virtual method void QUrlInfo::setWritable(bool b)

This method can be reimplemented in a derived class.

size

Signature: [const] long long size

Description: Method qint64 QUrlInfo::size()

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

size=

Signature: void size= (long long size)

Description: Method void QUrlInfo::setSize(qint64 size)

Python specific notes:
The object exposes a writable attribute 'size'. This is the setter.

symLink

Signature: [const] bool symLink

Description: Method bool QUrlInfo::isSymLink()

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

symLink=

Signature: void symLink= (bool b)

Description: Method void QUrlInfo::setSymLink(bool b)

Python specific notes:
The object exposes a writable attribute 'symLink'. This is the setter.

writable

Signature: [const] bool writable

Description: Method bool QUrlInfo::isWritable()

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

writable=

Signature: void writable= (bool b)

Description: Method void QUrlInfo::setWritable(bool b)

Python specific notes:
The object exposes a writable attribute 'writable'. This is the setter.