• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KDECore

Defines | Functions | Variables

kurl.cpp File Reference

#include "kurl.h"
#include <kdebug.h>
#include <kglobal.h>
#include <kshell.h>
#include <kstringhandler.h>
#include <stdio.h>
#include <assert.h>
#include <ctype.h>
#include <stdlib.h>
#include <unistd.h>
#include <QtCore/QDir>
#include <QtCore/QMutableStringListIterator>
#include <QtCore/QRegExp>
#include <QtCore/QMimeData>
#include <QtCore/QTextCodec>
Include dependency graph for kurl.cpp:

Go to the source code of this file.

Defines

#define IS_DRIVE_OR_DOUBLESLASH(isletter, char1, char2, colon, slash)   ((isletter && char2 == colon) || (char1 == slash && char2 == slash))
#define IS_DRIVE_OR_DOUBLESLASH_0   ( IS_DRIVE_OR_DOUBLESLASH(IS_LETTER(QLatin1Char(str[0])), QLatin1Char(str[0]), QLatin1Char(str[1]), QLatin1Char(':'), QLatin1Char('/')) )
#define IS_LETTER(c)   ((c >= QLatin1Char('A') && c <= QLatin1Char('Z')) || (c >= QLatin1Char('a') && c <= QLatin1Char('z')))
#define IS_SLASH_AND_DRIVE_OR_DOUBLESLASH_0   ( QLatin1Char(str[0]) == QLatin1Char('/') && IS_DRIVE_OR_DOUBLESLASH(IS_LETTER(QLatin1Char(str[1])), QLatin1Char(str[1]), QLatin1Char(str[2]), QLatin1Char(':'), QLatin1Char('/')) )

Functions

static QString _relativePath (const QString &base_dir, const QString &path, bool &isParent)
static QString cleanpath (const QString &_path, bool cleanDirSeparator, bool decodeDots)
static bool hasSubUrl (const QUrl &url)
static bool isLocalFile (const QUrl &url)
uint qHash (const KUrl &kurl)
static QString removeSlashOrFilePrefix (const QString &str)
static QString toPrettyPercentEncoding (const QString &input, bool forFragment)
static QString trailingSlash (KUrl::AdjustPathOption trailing, const QString &path)
static QByteArray uriListData (const KUrl::List &urls)
bool urlcmp (const QString &_url1, const QString &_url2, const KUrl::EqualsOptions &_options)
bool urlcmp (const QString &_url1, const QString &_url2)

Variables

static const char s_kdeUriListMime [] = "application/x-kde4-urilist"

Define Documentation

#define IS_DRIVE_OR_DOUBLESLASH (   isletter,
  char1,
  char2,
  colon,
  slash 
)    ((isletter && char2 == colon) || (char1 == slash && char2 == slash))

Definition at line 127 of file kurl.cpp.

#define IS_DRIVE_OR_DOUBLESLASH_0   ( IS_DRIVE_OR_DOUBLESLASH(IS_LETTER(QLatin1Char(str[0])), QLatin1Char(str[0]), QLatin1Char(str[1]), QLatin1Char(':'), QLatin1Char('/')) )
#define IS_LETTER (   c)    ((c >= QLatin1Char('A') && c <= QLatin1Char('Z')) || (c >= QLatin1Char('a') && c <= QLatin1Char('z')))
#define IS_SLASH_AND_DRIVE_OR_DOUBLESLASH_0   ( QLatin1Char(str[0]) == QLatin1Char('/') && IS_DRIVE_OR_DOUBLESLASH(IS_LETTER(QLatin1Char(str[1])), QLatin1Char(str[1]), QLatin1Char(str[2]), QLatin1Char(':'), QLatin1Char('/')) )

Function Documentation

static QString _relativePath ( const QString &  base_dir,
const QString &  path,
bool &  isParent 
) [static]

Definition at line 1663 of file kurl.cpp.

static QString cleanpath ( const QString &  _path,
bool  cleanDirSeparator,
bool  decodeDots 
) [static]

KDE4 TODO: maybe we should use QUrl::resolved()

Definition at line 51 of file kurl.cpp.

static bool hasSubUrl ( const QUrl &  url) [inline, static]

Definition at line 959 of file kurl.cpp.

static bool isLocalFile ( const QUrl &  url) [inline, static]

Definition at line 881 of file kurl.cpp.

uint qHash ( const KUrl &  kurl)

Definition at line 1888 of file kurl.cpp.

static QString removeSlashOrFilePrefix ( const QString &  str) [static]

Definition at line 133 of file kurl.cpp.

static QString toPrettyPercentEncoding ( const QString &  input,
bool  forFragment 
) [static]

Definition at line 1039 of file kurl.cpp.

static QString trailingSlash ( KUrl::AdjustPathOption  trailing,
const QString &  path 
) [static]

Definition at line 753 of file kurl.cpp.

static QByteArray uriListData ( const KUrl::List &  urls) [static]

Definition at line 220 of file kurl.cpp.

bool urlcmp ( const QString &  _url1,
const QString &  _url2,
const KUrl::EqualsOptions &  _options 
) [related]

Definition at line 1604 of file kurl.cpp.

bool urlcmp ( const QString &  _url1,
const QString &  _url2 
) [related]

Definition at line 1580 of file kurl.cpp.


Variable Documentation

const char s_kdeUriListMime[] = "application/x-kde4-urilist" [static]

Definition at line 240 of file kurl.cpp.

KDECore

Skip menu "KDECore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal