lib/util/urlutil.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
#ifndef _URLUTIL_H_
00022
#define _URLUTIL_H_
00023
00024
#include <qstring.h>
00025
#include <qvaluelist.h>
00026
#include <kurl.h>
00027
00028 namespace URLUtil
00029 {
00030 enum SlashesPosition {
SLASH_PREFIX = 1,
SLASH_SUFFIX = 2 };
00031
00035
QString filename(
const QString & pathName);
00039
QString directory(
const QString & pathName);
00043
QString relativePath(
const KURL & parent,
const KURL & child, uint slashPolicy = SLASH_PREFIX);
00047
QString relativePath(
const QString & parent,
const QString & child, uint slashPolicy = SLASH_PREFIX);
00055
QString relativePathToFile(
const QString & dirUrl,
const QString & fileUrl );
00059
QString upDir(
const QString & path,
bool slashSuffix =
false);
00068
KURL mergeURL(
const KURL & source,
const KURL & dest,
const KURL & child);
00072
QString getExtension(
const QString & path);
00073
00088
QString extractPathNameRelative(
const KURL &baseDirUrl,
const KURL &url );
00089
QString extractPathNameRelative(
const QString &basePath,
const KURL &url );
00090
QString extractPathNameRelative(
const QString &basePath,
const QString &absFilePath );
00091
00096
QString extractPathNameAbsolute(
const KURL &url );
00097
00101
QStringList toRelativePaths(
const QString &baseDir,
const KURL::List &urls);
00102
00106
bool isDirectory(
const KURL &url );
00107
bool isDirectory(
const QString &absFilePath );
00108
00113
void dump(
const KURL::List &urls,
const QString &aMessage = QString::null );
00114
00119
QString canonicalPath(
const QString & path );
00120
00128
QString envExpand (
const QString &variable );
00129
00130 }
00131
00132
#endif
This file is part of the documentation for KDevelop Version 3.0.4.