<class name="QUrlInfo" doc="/** <p>The <a href="QUrlInfo.html#QUrlInfo(java.lang.String, int, java.lang.String, java.lang.String, long, com.trolltech.qt.core.QDateTime, com.trolltech.qt.core.QDateTime, boolean, boolean, boolean, boolean, boolean, boolean)"><tt>QUrlInfo</tt></a> class stores information about URLs.</p> <p>The information about a URL that can be retrieved includes <a href="QUrlInfo.html#name()"><tt>name</tt></a>, <a href="QUrlInfo.html#permissions()"><tt>permissions</tt></a>, <a href="QUrlInfo.html#owner()"><tt>owner</tt></a>, <a href="QUrlInfo.html#group()"><tt>group</tt></a>, <a href="QUrlInfo.html#size()"><tt>size</tt></a>, <a href="QUrlInfo.html#lastModified()"><tt>lastModified</tt></a>, <a href="QUrlInfo.html#lastRead()"><tt>lastRead</tt></a>, <a href="QUrlInfo.html#isDir()"><tt>isDir</tt></a>, <a href="QUrlInfo.html#isFile()"><tt>isFile</tt></a>, <a href="QUrlInfo.html#isSymLink()"><tt>isSymLink</tt></a>, <a href="QUrlInfo.html#isWritable()"><tt>isWritable</tt></a>, <a href="QUrlInfo.html#isReadable()"><tt>isReadable</tt></a> and <a href="QUrlInfo.html#isExecutable()"><tt>isExecutable</tt></a>.</p> <p>You can create your own <a href="QUrlInfo.html#QUrlInfo(java.lang.String, int, java.lang.String, java.lang.String, long, com.trolltech.qt.core.QDateTime, com.trolltech.qt.core.QDateTime, boolean, boolean, boolean, boolean, boolean, boolean)"><tt>QUrlInfo</tt></a> objects passing in all the relevant information in the constructor, and you can modify a <a href="QUrlInfo.html#QUrlInfo(java.lang.String, int, java.lang.String, java.lang.String, long, com.trolltech.qt.core.QDateTime, com.trolltech.qt.core.QDateTime, boolean, boolean, boolean, boolean, boolean, boolean)"><tt>QUrlInfo</tt></a>; for each getter mentioned above there is an equivalent setter. Note that setting values does not affect the underlying resource that the <a href="QUrlInfo.html#QUrlInfo(java.lang.String, int, java.lang.String, java.lang.String, long, com.trolltech.qt.core.QDateTime, com.trolltech.qt.core.QDateTime, boolean, boolean, boolean, boolean, boolean, boolean)"><tt>QUrlInfo</tt></a> provides information about; for example if you call <a href="QUrlInfo.html#setWritable(boolean)"><tt>setWritable</tt></a>(true) on a read-only resource the only thing changed is the <a href="QUrlInfo.html#QUrlInfo(java.lang.String, int, java.lang.String, java.lang.String, long, com.trolltech.qt.core.QDateTime, com.trolltech.qt.core.QDateTime, boolean, boolean, boolean, boolean, boolean, boolean)"><tt>QUrlInfo</tt></a> object, not the resource.</p> @see <a href="%2E%2E/core/QUrl.html"><tt>QUrl</tt></a> @see FTP Example</tt> */"> <method name="public QUrlInfo(com.trolltech.qt.network.QUrlInfo ui)" doc="/** <p>Copy constructor, copies <tt>ui</tt> to this URL info object.</p> */"/> <method name="public QUrlInfo(com.trolltech.qt.core.QUrl url, int permissions, java.lang.String owner, java.lang.String group, long size, com.trolltech.qt.core.QDateTime lastModified, com.trolltech.qt.core.QDateTime lastRead, boolean isDir, boolean isFile, boolean isSymLink, boolean isWritable, boolean isReadable, boolean isExecutable)" doc="/** <p>Constructs a <a href="QUrlInfo.html#QUrlInfo(java.lang.String, int, java.lang.String, java.lang.String, long, com.trolltech.qt.core.QDateTime, com.trolltech.qt.core.QDateTime, boolean, boolean, boolean, boolean, boolean, boolean)"><tt>QUrlInfo</tt></a> object by specifying all the URL's information.</p> <p>The information that is passed is the <tt>url</tt>, file <tt>permissions</tt>, <tt>owner</tt> and <tt>group</tt> and the file's <tt>size</tt>. Also passed is the <tt>lastModified</tt> date/time and the <tt>lastRead</tt> date/time. Flags are also passed, specifically, <tt>isDir</tt>, <tt>isFile</tt>, <tt>isSymLink</tt>, <tt>isWritable</tt>, <tt>isReadable</tt> and <tt>isExecutable</tt>.</p> */"/> <method name="public QUrlInfo()" doc="/** <p>Constructs an invalid <a href="QUrlInfo.html#QUrlInfo(java.lang.String, int, java.lang.String, java.lang.String, long, com.trolltech.qt.core.QDateTime, com.trolltech.qt.core.QDateTime, boolean, boolean, boolean, boolean, boolean, boolean)"><tt>QUrlInfo</tt></a> object with default values.</p> @see <a href="QUrlInfo.html#isValid()"><tt>isValid</tt></a> */"/> <method name="public QUrlInfo(java.lang.String name, int permissions, java.lang.String owner, java.lang.String group, long size, com.trolltech.qt.core.QDateTime lastModified, com.trolltech.qt.core.QDateTime lastRead, boolean isDir, boolean isFile, boolean isSymLink, boolean isWritable, boolean isReadable, boolean isExecutable)" doc="/** <p>Constructs a <a href="QUrlInfo.html#QUrlInfo(java.lang.String, int, java.lang.String, java.lang.String, long, com.trolltech.qt.core.QDateTime, com.trolltech.qt.core.QDateTime, boolean, boolean, boolean, boolean, boolean, boolean)"><tt>QUrlInfo</tt></a> object by specifying all the URL's information.</p> <p>The information that is passed is the <tt>name</tt>, file <tt>permissions</tt>, <tt>owner</tt> and <tt>group</tt> and the file's <tt>size</tt>. Also passed is the <tt>lastModified</tt> date/time and the <tt>lastRead</tt> date/time. Flags are also passed, specifically, <tt>isDir</tt>, <tt>isFile</tt>, <tt>isSymLink</tt>, <tt>isWritable</tt>, <tt>isReadable</tt> and <tt>isExecutable</tt>.</p> */"/> <method name="public final java.lang.String group()" doc="/** <p>Returns the group of the URL.</p> @see <a href="QUrlInfo.html#setGroup(java.lang.String)"><tt>setGroup</tt></a> @see <a href="QUrlInfo.html#isValid()"><tt>isValid</tt></a> */"/> <method name="public final boolean isDir()" doc="/** <p>Returns true if the URL is a directory; otherwise returns false.</p> @see <a href="QUrlInfo.html#isValid()"><tt>isValid</tt></a> */"/> <method name="public final boolean isExecutable()" doc="/** <p>Returns true if the URL is executable; otherwise returns false.</p> @see <a href="QUrlInfo.html#isValid()"><tt>isValid</tt></a> */"/> <method name="public final boolean isFile()" doc="/** <p>Returns true if the URL is a file; otherwise returns false.</p> @see <a href="QUrlInfo.html#isValid()"><tt>isValid</tt></a> */"/> <method name="public final boolean isReadable()" doc="/** <p>Returns true if the URL is readable; otherwise returns false.</p> @see <a href="QUrlInfo.html#isValid()"><tt>isValid</tt></a> */"/> <method name="public final boolean isSymLink()" doc="/** <p>Returns true if the URL is a symbolic link; otherwise returns false.</p> @see <a href="QUrlInfo.html#isValid()"><tt>isValid</tt></a> */"/> <method name="public final boolean isValid()" doc="/** <p>Returns true if the URL info is valid; otherwise returns false. Valid means that the <a href="QUrlInfo.html#QUrlInfo(java.lang.String, int, java.lang.String, java.lang.String, long, com.trolltech.qt.core.QDateTime, com.trolltech.qt.core.QDateTime, boolean, boolean, boolean, boolean, boolean, boolean)"><tt>QUrlInfo</tt></a> contains real information.</p> <p>You should always check if the URL info is valid before relying on the values.</p> */"/> <method name="public final boolean isWritable()" doc="/** <p>Returns true if the URL is writable; otherwise returns false.</p> @see <a href="QUrlInfo.html#isValid()"><tt>isValid</tt></a> */"/> <method name="public final com.trolltech.qt.core.QDateTime lastModified()" doc="/** <p>Returns the last modification date of the URL.</p> @see <a href="QUrlInfo.html#setLastModified(com.trolltech.qt.core.QDateTime)"><tt>setLastModified</tt></a> @see <a href="QUrlInfo.html#isValid()"><tt>isValid</tt></a> */"/> <method name="public final com.trolltech.qt.core.QDateTime lastRead()" doc="/** <p>Returns the date when the URL was last read.</p> @see <a href="QUrlInfo.html#isValid()"><tt>isValid</tt></a> */"/> <method name="public final java.lang.String name()" doc="/** <p>Returns the file name of the URL.</p> @see <a href="QUrlInfo.html#setName(java.lang.String)"><tt>setName</tt></a> @see <a href="QUrlInfo.html#isValid()"><tt>isValid</tt></a> */"/> <method name="public final java.lang.String owner()" doc="/** <p>Returns the owner of the URL.</p> @see <a href="QUrlInfo.html#setOwner(java.lang.String)"><tt>setOwner</tt></a> @see <a href="QUrlInfo.html#isValid()"><tt>isValid</tt></a> */"/> <method name="public final int permissions()" doc="/** <p>Returns the permissions of the URL. You can use the <tt>PermissionSpec</tt> flags to test for certain permissions.</p> @see <a href="QUrlInfo.html#setPermissions(int)"><tt>setPermissions</tt></a> @see <a href="QUrlInfo.html#isValid()"><tt>isValid</tt></a> */"/> <method name="public final long size()" doc="/** <p>Returns the size of the URL.</p> @see <a href="QUrlInfo.html#setSize(long)"><tt>setSize</tt></a> @see <a href="QUrlInfo.html#isValid()"><tt>isValid</tt></a> */"/> <method name="public void setDir(boolean b)" doc="/** <p>If <tt>b</tt> is true then the URL is set to be a directory; if <tt>b</tt> 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.)</p> <p>If you call this function for an invalid URL info, this function turns it into a valid one.</p> @see <a href="QUrlInfo.html#isDir()"><tt>isDir</tt></a> @see <a href="QUrlInfo.html#isValid()"><tt>isValid</tt></a> */"/> <method name="public void setFile(boolean b)" doc="/** <p>If <tt>b</tt> 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.)</p> <p>If you call this function for an invalid URL info, this function turns it into a valid one.</p> @see <a href="QUrlInfo.html#isFile()"><tt>isFile</tt></a> @see <a href="QUrlInfo.html#isValid()"><tt>isValid</tt></a> */"/> <method name="public void setGroup(java.lang.String s)" doc="/** <p>Specifies that the owning group of the URL is called <tt>s</tt>.</p> <p>If you call this function for an invalid URL info, this function turns it into a valid one.</p> @see <a href="QUrlInfo.html#group()"><tt>group</tt></a> @see <a href="QUrlInfo.html#isValid()"><tt>isValid</tt></a> */"/> <method name="public void setLastModified(com.trolltech.qt.core.QDateTime dt)" doc="/** <p>Specifies that the object the URL refers to was last modified at <tt>dt</tt>.</p> <p>If you call this function for an invalid URL info, this function turns it into a valid one.</p> @see <a href="QUrlInfo.html#lastModified()"><tt>lastModified</tt></a> @see <a href="QUrlInfo.html#isValid()"><tt>isValid</tt></a> */"/> <method name="public void setName(java.lang.String name)" doc="/** <p>Sets the name of the URL to <tt>name</tt>. The name is the full text, for example, &quot;http://doc.trolltech.com/qurlinfo.html&quot;.</p> <p>If you call this function for an invalid URL info, this function turns it into a valid one.</p> @see <a href="QUrlInfo.html#name()"><tt>name</tt></a> @see <a href="QUrlInfo.html#isValid()"><tt>isValid</tt></a> */"/> <method name="public void setOwner(java.lang.String s)" doc="/** <p>Specifies that the owner of the URL is called <tt>s</tt>.</p> <p>If you call this function for an invalid URL info, this function turns it into a valid one.</p> @see <a href="QUrlInfo.html#owner()"><tt>owner</tt></a> @see <a href="QUrlInfo.html#isValid()"><tt>isValid</tt></a> */"/> <method name="public void setPermissions(int p)" doc="/** <p>Specifies that the URL has access permissions <tt>p</tt>.</p> <p>If you call this function for an invalid URL info, this function turns it into a valid one.</p> @see <a href="QUrlInfo.html#permissions()"><tt>permissions</tt></a> @see <a href="QUrlInfo.html#isValid()"><tt>isValid</tt></a> */"/> <method name="public void setReadable(boolean b)" doc="/** <p>Specifies that the URL is readable if <tt>b</tt> is true and not readable if <tt>b</tt> is false.</p> <p>If you call this function for an invalid URL info, this function turns it into a valid one.</p> @see <a href="QUrlInfo.html#isReadable()"><tt>isReadable</tt></a> @see <a href="QUrlInfo.html#isValid()"><tt>isValid</tt></a> */"/> <method name="public void setSize(long size)" doc="/** <p>Specifies the <tt>size</tt> of the URL.</p> <p>If you call this function for an invalid URL info, this function turns it into a valid one.</p> @see <a href="QUrlInfo.html#size()"><tt>size</tt></a> @see <a href="QUrlInfo.html#isValid()"><tt>isValid</tt></a> */"/> <method name="public void setSymLink(boolean b)" doc="/** <p>Specifies that the URL refers to a symbolic link if <tt>b</tt> is true and that it does not if <tt>b</tt> is false.</p> <p>If you call this function for an invalid URL info, this function turns it into a valid one.</p> @see <a href="QUrlInfo.html#isSymLink()"><tt>isSymLink</tt></a> @see <a href="QUrlInfo.html#isValid()"><tt>isValid</tt></a> */"/> <method name="public void setWritable(boolean b)" doc="/** <p>Specifies that the URL is writable if <tt>b</tt> is true and not writable if <tt>b</tt> is false.</p> <p>If you call this function for an invalid URL info, this function turns it into a valid one.</p> @see <a href="QUrlInfo.html#isWritable()"><tt>isWritable</tt></a> @see <a href="QUrlInfo.html#isValid()"><tt>isValid</tt></a> */"/> <method name="public static boolean equal(com.trolltech.qt.network.QUrlInfo i1, com.trolltech.qt.network.QUrlInfo i2, int sortBy)" doc="/** <p>Returns true if <tt>i1</tt> equals to <tt>i2</tt>; otherwise returns false. The objects are compared by the value, which is specified by <tt>sortBy</tt>. This must be one of QDir::Name, QDir::Time or QDir::Size.</p> */"/> <method name="public static boolean greaterThan(com.trolltech.qt.network.QUrlInfo i1, com.trolltech.qt.network.QUrlInfo i2, int sortBy)" doc="/** <p>Returns true if <tt>i1</tt> is greater than <tt>i2</tt>; otherwise returns false. The objects are compared by the value, which is specified by <tt>sortBy</tt>. This must be one of QDir::Name, QDir::Time or QDir::Size.</p> */"/> <method name="public static boolean lessThan(com.trolltech.qt.network.QUrlInfo i1, com.trolltech.qt.network.QUrlInfo i2, int sortBy)" doc="/** <p>Returns true if <tt>i1</tt> is less than <tt>i2</tt>; otherwise returns false. The objects are compared by the value, which is specified by <tt>sortBy</tt>. This must be one of QDir::Name, QDir::Time or QDir::Size.</p> */"/> <enum name="PermissionSpec" doc="/** <p>This enum is used by the <a href="QUrlInfo.html#permissions()"><tt>permissions</tt></a> function to report the permissions of a file.</p> */"> <enum-value name="ReadOwner" doc="/** <p>The file is readable by the owner of the file.</p> */"/> <enum-value name="WriteOwner" doc="/** <p>The file is writable by the owner of the file.</p> */"/> <enum-value name="ExeOwner" doc="/** <p>The file is executable by the owner of the file.</p> */"/> <enum-value name="ReadGroup" doc="/** <p>The file is readable by the group.</p> */"/> <enum-value name="WriteGroup" doc="/** <p>The file is writable by the group.</p> */"/> <enum-value name="ExeGroup" doc="/** <p>The file is executable by the group.</p> */"/> <enum-value name="ReadOther" doc="/** <p>The file is readable by anyone.</p> */"/> <enum-value name="WriteOther" doc="/** <p>The file is writable by anyone.</p> */"/> <enum-value name="ExeOther" doc="/** <p>The file is executable by anyone.</p> */"/> </enum> </class>