29
* This enum is used to determe the url type.
31
enum UrlType { invalid = 0, message = 1, directory = 2 };
36
* @param url The url: this url is used to split the location data off.
37
* @param type The possible types of the url
39
explicit UrlInfo( const KUrl &url, const UrlType type = (UrlType)( message | directory ) );
47
* Returns the type of the url
48
* @return the type of the url
50
UrlType type() const { return m_type; }
53
* @return the mimetype of the url
55
QString mimetype() const;
58
* @return The location of the mbox-file
60
QString filename() const;
62
* @return The id given in the url.
67
* @return the while url as QString
71
void calculateInfo( const KUrl& url, const UrlType type );
73
bool isDirectory( const KUrl& url );
74
bool isMessage( const KUrl& url );
29
* This enum is used to determe the url type.
31
enum UrlType { invalid = 0, message = 1, directory = 2 };
36
* @param url The url: this url is used to split the location data off.
37
* @param type The possible types of the url
39
explicit UrlInfo( const KUrl &url, const UrlType type = (UrlType)( message | directory ) );
47
* Returns the type of the url
48
* @return the type of the url
50
UrlType type() const { return m_type; }
53
* @return the mimetype of the url
55
QString mimetype() const;
58
* @return The location of the mbox-file
60
QString filename() const;
62
* @return The id given in the url.
67
* @return the while url as QString
72
void calculateInfo( const KUrl& url, const UrlType type );
74
bool isDirectory( const KUrl& url );
75
bool isMessage( const KUrl& url );