diff --git a/kio/kfile/kfilemetadataprovider_p.h b/kio/kfile/kfilemetadataprovider_p.h index 32b4c873..fed99e0c 100644 --- a/kio/kfile/kfilemetadataprovider_p.h +++ b/kio/kfile/kfilemetadataprovider_p.h @@ -21,6 +21,7 @@ #define KFILEMETADATAMODEL_H #include +#include #include #include diff --git a/kio/kio/kfileitem.cpp b/kio/kio/kfileitem.cpp index 5f512682..97cbbabf 100644 --- a/kio/kio/kfileitem.cpp +++ b/kio/kio/kfileitem.cpp @@ -37,7 +37,6 @@ #include #include -#include #include #include #include @@ -204,7 +203,6 @@ public: // For special case like link to dirs over FTP QString m_guessedMimeType; mutable QString m_access; - mutable KFileMetaInfo m_metaInfo; enum { NumFlags = KFileItem::CreationTime + 1 }; mutable KDateTime m_time[3]; @@ -213,7 +211,6 @@ public: void KFileItemPrivate::init() { m_access.clear(); - // metaInfo = KFileMetaInfo(); // determine mode and/or permissions if unknown // TODO: delay this until requested @@ -522,7 +519,6 @@ void KFileItem::refresh() d->m_fileMode = KFileItem::Unknown; d->m_permissions = KFileItem::Unknown; - d->m_metaInfo = KFileMetaInfo(); d->m_hidden = KFileItemPrivate::Auto; refreshMimeType(); @@ -1222,29 +1218,6 @@ QString KFileItem::timeString( FileTimes which ) const return KGlobal::locale()->formatDateTime( d->time(which) ); } - -void KFileItem::setMetaInfo( const KFileMetaInfo & info ) const -{ - if (!d) - return; - - d->m_metaInfo = info; -} - -KFileMetaInfo KFileItem::metaInfo(bool autoget) const -{ - if (!d) - return KFileMetaInfo(); - - if (isFile() && autoget && !d->m_metaInfo.isValid()) - { - KUrl url(mostLocalUrl()); - d->m_metaInfo = KFileMetaInfo(url.toLocalFile()); - } - return d->m_metaInfo; -} - - KUrl KFileItem::mostLocalUrl(bool &local) const { if (!d) diff --git a/kio/kio/kfileitem.h b/kio/kio/kfileitem.h index 8f2317a2..cb93eb32 100644 --- a/kio/kio/kfileitem.h +++ b/kio/kio/kfileitem.h @@ -27,7 +27,6 @@ #include #include #include -#include #include class KFileItemPrivate; @@ -475,21 +474,6 @@ public: */ operator QVariant() const; - /** - * Sets the metainfo of this item to @p info. - * - * Made const to avoid deep copy. - * @param info the new meta info - */ - void setMetaInfo( const KFileMetaInfo & info ) const; - - /** - * Returns the metainfo of this item. - * - * @param autoget if true, the metainfo will automatically be created - */ - KFileMetaInfo metaInfo(bool autoget = true) const; - /** * Tries to give a local URL for this file item if possible. * The given boolean indicates if the returned url is local or not.