blob: 202c46d54ee531b8911d8e8fed0c9b84f5ca2867 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#ifndef _KURL_H_
#define _KURL_H_
#include <qfile.h>
#include "common/global/global.h"
class KURL : public Q3Url
{
public:
KURL() {}
KURL(const QString &s) : Q3Url(s) {}
void cleanPath() {}
bool isEmpty() const { return toString(false, false).isEmpty(); }
QString fileName(bool b) const { Q_UNUSED(b); Q_ASSERT(!b); return Q3Url::fileName(); }
static KURL fromPathOrURL(const QString &s) { return KURL(s); }
#if QT_VERSION>=0x040000
bool operator <(const KURL &url) const { return path()<url.path(); }
bool operator ==(const KURL &url) const { return path()==url.path(); }
bool operator !=(const KURL &url) const { return path()!=url.path(); }
#endif
};
// ### DUMMY
class KTempFile
{
public:
const QFile *file() const { return 0; }
QFile *file() { return 0; }
};
#endif
|