KIO
kfilemetadataprovider.cpp
Go to the documentation of this file.
230 m_data.insert(KUrl("kfileitem#modified"), KGlobal::locale()->formatDateTime(item.time(KFileItem::ModificationTime), KLocale::FancyLongDate));
275 Nepomuk::MassUpdateJob* job = Nepomuk::MassUpdateJob::commentResources(resourceList(), comment);
334 QWidget* KFileMetaDataProvider::Private::createTagWidget(const QList<Nepomuk::Tag>& tags, QWidget* parent)
352 QWidget* KFileMetaDataProvider::Private::createCommentWidget(const QString& comment, QWidget* parent)
367 QWidget* KFileMetaDataProvider::Private::createValueWidget(const QString& value, QWidget* parent)
461 } else if (uri == QLatin1String("http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#width")) {
463 } else if (uri == QLatin1String("http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#height")) {
void setRating(int rating)
void setAlignment(Qt::Alignment align)
Provides the data for the KMetaDataWidget.
Definition: kfilemetadataprovider_p.h:50
KUrl nepomukUri() const
Returns the resource URI to be used for Nepomuk annotations.
Definition: kfileitem.cpp:1622
void setReadOnly(bool readOnly)
If set to true, the comment cannot be changed by the user.
Definition: kcommentwidget.cpp:85
Allows to edit and show a comment as part of KMetaDataWidget.
Definition: kcommentwidget_p.h:32
void setPixmapSize(int size)
QString i18nc(const char *ctxt, const char *text)
virtual ~KFileMetaDataProvider()
Definition: kfilemetadataprovider.cpp:383
#define I18N_NOOP2_NOSTRIP(ctxt, text)
virtual QHash< KUrl, Nepomuk::Variant > data() const
Definition: kfilemetadataprovider.cpp:486
Definition: kfileitem.h:58
QString i18ncp(const char *ctxt, const char *sing, const char *plur, const A1 &a1)
void setReadOnly(bool readOnly)
If set to true, data such as the comment, tag or rating cannot be changed by the user.
Definition: kfilemetadataprovider.cpp:475
QString pathOrUrl() const
List of KFileItems, which adds a few helper methods to QList.
Definition: kfileitem.h:674
QString mimeComment() const
Returns the user-readable string representing the type of this file, like "OpenDocument Text File"...
Definition: kfileitem.cpp:823
CopyJob * link(const KUrl &src, const KUrl &destDir, JobFlags flags=DefaultFlags)
Create a link.
Definition: copyjob.cpp:2212
QHash< KUrl, Nepomuk::Variant > metaData() const
Definition: kfilemetadatareader.cpp:141
Qt::LayoutDirection layoutDirection() const
QString permissionsString() const
Returns the access permissions for the file as a string.
Definition: kfileitem.cpp:1409
QString translation(const KUrl &uri) const
Definition: knfotranslator.cpp:126
virtual QWidget * createValueWidget(const KUrl &metaDataUri, const Nepomuk::Variant &value, QWidget *parent) const
Definition: kfilemetadataprovider.cpp:491
bool isLink() const
Returns true if this item represents a link in the UNIX sense of a link.
Definition: kfileitem.cpp:1573
KLocale * locale()
KDateTime time(FileTimes which) const
Requests the modification, access or creation time, depending on which.
Definition: kfileitem.cpp:655
QString dir(const QString &fileClass)
Returns the most recently used directory accociated with this file-class.
Definition: krecentdirs.cpp:68
virtual QString label(const KUrl &metaDataUri) const
Definition: kfilemetadataprovider.cpp:414
void setItems(const KFileItemList &items)
Sets the items, where the meta data should be requested.
Definition: kfilemetadataprovider.cpp:388
virtual QString group(const KUrl &metaDataUri) const
Meta data items are sorted alphabetically by their translated label per default.
Definition: kfilemetadataprovider.cpp:452
KFileMetaDataProvider(QObject *parent=0)
Definition: kfilemetadataprovider.cpp:377
QString url(AdjustPathOption trailing=LeaveTrailingSlash) const
QString convertSize(KIO::filesize_t size)
Converts size from bytes to the string representation.
Definition: global.cpp:53
A KFileItem is a generic class to handle a file, local or remote.
Definition: kfileitem.h:45
QStringList list(const QString &fileClass)
Returns a list of directories associated with this file-class.
Definition: krecentdirs.cpp:60
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.