• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDECore

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>

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(str[0]), str[0], str[1], ':', '/') )
#define IS_LETTER(c)   ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z'))
#define IS_SLASH_AND_DRIVE_OR_DOUBLESLASH_0   ( str[0] == '/' && IS_DRIVE_OR_DOUBLESLASH(IS_LETTER(str[1]), str[1], str[2], ':', '/') )

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 123 of file kurl.cpp.

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

Function Documentation

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

Definition at line 1629 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 47 of file kurl.cpp.

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

Definition at line 935 of file kurl.cpp.

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

Definition at line 857 of file kurl.cpp.

uint qHash ( const KUrl &  kurl  ) 

Definition at line 1851 of file kurl.cpp.

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

Definition at line 129 of file kurl.cpp.

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

Definition at line 1006 of file kurl.cpp.

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

Definition at line 736 of file kurl.cpp.

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

Definition at line 213 of file kurl.cpp.

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

Definition at line 1565 of file kurl.cpp.

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

Definition at line 1543 of file kurl.cpp.


Variable Documentation

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

Definition at line 233 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
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
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