Qyoto
4.0.5
Qyoto is a C# language binding for Qt
|
The QUrlInfo class stores information about URLs. More...
Public Types | |
enum | PermissionSpec { ExeGroup = 8, ExeOther = 1, ExeOwner = 64, ReadGroup = 32, ReadOther = 4, ReadOwner = 256, WriteGroup = 16, WriteOther = 2, WriteOwner = 128 } |
More... | |
Public Member Functions | |
override bool | Equals (object o) |
override int | GetHashCode () |
QUrlInfo () | |
| |
QUrlInfo (QUrlInfo ui) | |
| |
QUrlInfo (QUrl url, int permissions, string owner, string group, long size, QDateTime lastModified, QDateTime lastRead, bool isDir, bool isFile, bool isSymLink, bool isWritable, bool isReadable, bool isExecutable) | |
| |
QUrlInfo (string name, int permissions, string owner, string group, long size, QDateTime lastModified, QDateTime lastRead, bool isDir, bool isFile, bool isSymLink, bool isWritable, bool isReadable, bool isExecutable) | |
| |
virtual void | CreateProxy () |
new bool | IsDir () |
| |
new bool | IsExecutable () |
| |
new bool | IsFile () |
| |
new bool | IsReadable () |
| |
new bool | IsSymLink () |
| |
new bool | IsValid () |
| |
new bool | IsWritable () |
| |
virtual void | SetDir (bool b) |
| |
virtual void | SetFile (bool b) |
| |
virtual void | SetReadable (bool b) |
| |
virtual void | SetSymLink (bool b) |
| |
virtual void | SetWritable (bool b) |
| |
new void | Dispose () |
Static Public Member Functions | |
static bool | Equal (QUrlInfo i1, QUrlInfo i2, int sortBy) |
| |
static bool | GreaterThan (QUrlInfo i1, QUrlInfo i2, int sortBy) |
| |
static bool | LessThan (QUrlInfo i1, QUrlInfo i2, int sortBy) |
| |
static bool | operator!= (QUrlInfo arg1, QUrlInfo arg2) |
| |
static bool | operator== (QUrlInfo arg1, QUrlInfo arg2) |
| |
Protected Member Functions | |
QUrlInfo (System.Type dummy) | |
Protected Attributes | |
SmokeInvocation | interceptor |
Properties | |
virtual string | Group [get, set] |
| |
virtual QDateTime | LastModified [get, set] |
| |
new QDateTime | LastRead [get, set] |
| |
virtual string | Name [get, set] |
| |
virtual string | Owner [get, set] |
| |
virtual int | Permissions [get, set] |
| |
virtual long | Size [get, set] |
| |
virtual System.IntPtr | SmokeObject [get, set] |
The QUrlInfo class stores information about URLs.
The information about a URL that can be retrieved includes name(), permissions(), owner(), group(), size(), lastModified(), lastRead(), isDir(), isFile(), isSymLink(), isWritable(), isReadable() and isExecutable().
You can create your own QUrlInfo objects passing in all the relevant information in the constructor, and you can modify a QUrlInfo; for each getter mentioned above there is an equivalent setter. Note that setting values does not affect the underlying resource that the QUrlInfo provides information about; for example if you call setWritable(true) on a read-only resource the only thing changed is the QUrlInfo object, not the resource.
See also QUrl and FTP Example.
This enum is used by the permissions() function to report the permissions of a file.
|
protected |
QtNetwork.QUrlInfo.QUrlInfo | ( | ) |
Constructs an invalid QUrlInfo object with default values.
See also isValid().
QtNetwork.QUrlInfo.QUrlInfo | ( | QUrlInfo | ui | ) |
Copy constructor, copies ui to this URL info object.
QtNetwork.QUrlInfo.QUrlInfo | ( | QUrl | url, |
int | permissions, | ||
string | owner, | ||
string | group, | ||
long | size, | ||
QDateTime | lastModified, | ||
QDateTime | lastRead, | ||
bool | isDir, | ||
bool | isFile, | ||
bool | isSymLink, | ||
bool | isWritable, | ||
bool | isReadable, | ||
bool | isExecutable | ||
) |
Constructs an invalid QUrlInfo object with default values.
See also isValid().
QtNetwork.QUrlInfo.QUrlInfo | ( | string | name, |
int | permissions, | ||
string | owner, | ||
string | group, | ||
long | size, | ||
QDateTime | lastModified, | ||
QDateTime | lastRead, | ||
bool | isDir, | ||
bool | isFile, | ||
bool | isSymLink, | ||
bool | isWritable, | ||
bool | isReadable, | ||
bool | isExecutable | ||
) |
Constructs an invalid QUrlInfo object with default values.
See also isValid().
|
virtual |
new void QtNetwork.QUrlInfo.Dispose | ( | ) |
Returns true if i1 equals to i2; otherwise returns false. The objects are compared by the value, which is specified by sortBy. This must be one of QDir::Name, QDir::Time or QDir::Size.
override bool QtNetwork.QUrlInfo.Equals | ( | object | o | ) |
override int QtNetwork.QUrlInfo.GetHashCode | ( | ) |
Returns true if i1 is greater than i2; otherwise returns false. The objects are compared by the value, which is specified by sortBy. This must be one of QDir::Name, QDir::Time or QDir::Size.
new bool QtNetwork.QUrlInfo.IsDir | ( | ) |
Returns true if the URL is a directory; otherwise returns false.
See also isValid().
new bool QtNetwork.QUrlInfo.IsExecutable | ( | ) |
Returns true if the URL is executable; otherwise returns false.
See also isValid().
new bool QtNetwork.QUrlInfo.IsFile | ( | ) |
Returns true if the URL is a file; otherwise returns false.
See also isValid().
new bool QtNetwork.QUrlInfo.IsReadable | ( | ) |
Returns true if the URL is readable; otherwise returns false.
See also isValid().
new bool QtNetwork.QUrlInfo.IsSymLink | ( | ) |
Returns true if the URL is a symbolic link; otherwise returns false.
See also isValid().
new bool QtNetwork.QUrlInfo.IsValid | ( | ) |
Returns true if the URL info is valid; otherwise returns false. Valid means that the QUrlInfo contains real information.
You should always check if the URL info is valid before relying on the values.
new bool QtNetwork.QUrlInfo.IsWritable | ( | ) |
Returns true if the URL is writable; otherwise returns false.
See also isValid().
Returns true if i1 is less than i2; otherwise returns false. The objects are compared by the value, which is specified by sortBy. This must be one of QDir::Name, QDir::Time or QDir::Size.
Returns true if this QUrlInfo is not equal to other; otherwise returns false.
This function was introduced in Qt 4.2.
See also lessThan() and equal().
Returns true if this QUrlInfo is equal to other; otherwise returns false.
See also lessThan() and equal().
|
virtual |
If b is true then the URL is set to be a directory; if b is false then the URL is set not to be a directory (which normally means it is a file). (Note that a URL can refer to both a file and a directory even though most file systems do not support this.)
If you call this function for an invalid URL info, this function turns it into a valid one.
See also isDir() and isValid().
|
virtual |
If b is true then the URL is set to be a file; if \b is false then the URL is set not to be a file (which normally means it is a directory). (Note that a URL can refer to both a file and a directory even though most file systems do not support this.)
If you call this function for an invalid URL info, this function turns it into a valid one.
See also isFile() and isValid().
|
virtual |
Specifies that the URL is readable if b is true and not readable if b is false.
If you call this function for an invalid URL info, this function turns it into a valid one.
See also isReadable() and isValid().
|
virtual |
Specifies that the URL refers to a symbolic link if b is true and that it does not if b is false.
If you call this function for an invalid URL info, this function turns it into a valid one.
See also isSymLink() and isValid().
|
virtual |
Specifies that the URL is writable if b is true and not writable if b is false.
If you call this function for an invalid URL info, this function turns it into a valid one.
See also isWritable() and isValid().
|
protected |
|
getset |
Returns the group of the URL.
Specifies that the owning group of the URL is called s.
If you call this function for an invalid URL info, this function turns it into a valid one.
|
getset |
Returns the last modification date of the URL.
Specifies that the object the URL refers to was last modified at dt.
If you call this function for an invalid URL info, this function turns it into a valid one.
|
getset |
Returns the date when the URL was last read.
Specifies that the object the URL refers to was last read at dt.
If you call this function for an invalid URL info, this function turns it into a valid one.
This function was introduced in Qt 4.4.
|
getset |
Returns the file name of the URL.
Sets the name of the URL to name. The name is the full text, for example, "http://qt.nokia.com/doc/qurlinfo.html".
If you call this function for an invalid URL info, this function turns it into a valid one.
|
getset |
Returns the owner of the URL.
Specifies that the owner of the URL is called s.
If you call this function for an invalid URL info, this function turns it into a valid one.
|
getset |
Returns the permissions of the URL. You can use the PermissionSpec flags to test for certain permissions.
Specifies that the URL has access permissions p.
If you call this function for an invalid URL info, this function turns it into a valid one.
|
getset |
Returns the size of the URL.
Specifies the size of the URL.
If you call this function for an invalid URL info, this function turns it into a valid one.
|
getset |