lib/compat/kdevkurl.h
Go to the documentation of this file.00001
#ifndef _KDEV_KURL_H_
00002
#define _KDEV_KURL_H_
00003
00004
#include <kdeversion.h>
00005
#if (KDE_VERSION_MINOR==0) && (KDE_VERSION_MAJOR==3)
00006
#include <kurl.h>
00007
class KdevKURL :
public KURL {
00008
public:
00009 KdevKURL();
00010 KdevKURL(
const KURL& u );
00011 KdevKURL(
const QString& url );
00012 KdevKURL(
const QString& url,
int encoding_hint = 0 );
00013
static KdevKURL fromPathOrURL(
const QString& text );
00014 };
00015
00016 KdevKURL::KdevKURL() :
KURL() {};
00017 KdevKURL::KdevKURL(
const KURL& u ) :
KURL(u) {};
00018 KdevKURL::KdevKURL(
const QString& url ) :
KURL(url) {};
00019 KdevKURL::KdevKURL(
const QString& url,
int encoding_hint ) :
KURL(url, encoding_hint) {};
00020
00021 KdevKURL KdevKURL::fromPathOrURL(
const QString& text )
00022 {
00023
if (
text.isEmpty() )
00024
return KdevKURL();
00025 KdevKURL url;
00026
if (
text[0] ==
'/' )
00027 url.setPath( text );
00028
else
00029 (
KURL)url =
text;
00030
return url;
00031 };
00032
#endif
00033
00034
#endif // _KDEV_KURL_H_
This file is part of the documentation for KDevelop Version 3.0.4.