rurl.h
Go to the documentation of this file.
void setRURL(TQString rurl)
Works as URL::setRURL(TQString), only implies Name::Directory mode.
Definition rurl.cpp:335
void setRURL(TQString rurl)
Works as URL::setRURL(TQString), only implies Name::File mode.
Definition rurl.cpp:364
static TQString correctName(const TQString &rurl, const Type type=Auto)
Corrects rurl according to the given type and returns corrected url.
Definition rurl.cpp:46
static Name relativeName(const TQString &base, const TQString &url)
Creates and returns relative name between base and url.
Definition rurl.cpp:184
TQString fileName() const
Returns the name of the file without the path or TQString() for directories.
Definition rurl.cpp:123
static TQString cleanName(const TQString &rurl)
Cleans rurl by removing extra slashes.
Definition rurl.cpp:91
TQString extension(bool complete=true) const
Returns the extension of a file or TQString() for directories.
Definition rurl.cpp:110
TQString rurl() const
Gets the relative name in form dir/dir/ -> directory or dir/dir/file -> file.
Definition rurl.cpp:75
void setType(const Type type)
Sets a type of the relative name - file or directory.
Definition rurl.cpp:179
void correct()
Corrects m_rurl and m_type according to the relative name storing policy, i.e.
Definition rurl.cpp:22
TQString directory() const
Returns the name of the directory or TQString() if there are no dirs in path.
Definition rurl.cpp:130
static URL relativeURL(KURL base, KURL url)
Returns a new relative URL constructed from base and given url.
Definition rurl.cpp:301
TQString urlDirectory() const
Returns a directory of a complete url to the location.
Definition rurl.cpp:288
Trinity API Reference