tdefilemetainfo.h
bool isEmpty() const
Returns false if the object contains data, true if it's empty.
Definition tdefilemetainfo.cpp:1220
KFileMetaInfoItem item(const TQString &key) const
This method searches for the specified item.
Definition tdefilemetainfo.cpp:1294
const TQVariant value(const TQString &key) const
Convenience function.
Definition tdefilemetainfo.h:778
KFileMetaInfoItem operator[](const TQString &key) const
Operator for convenience.
Definition tdefilemetainfo.h:752
bool isModified() const
Returns true if an item as added or removed from the group.
Definition tdefilemetainfo.cpp:1330
TQString translatedKey() const
Returns a translation of the key for displaying to the user.
Definition tdefilemetainfo.cpp:170
bool isEditable() const
You can query if the application can edit the item and write it back to the file with this method.
Definition tdefilemetainfo.cpp:227
TQString prefix() const
This method returns a translated prefix to be displayed before the value.
Definition tdefilemetainfo.cpp:207
bool isRemoved() const
If you remove an item, it is only marked for removal for the file.
Definition tdefilemetainfo.cpp:160
bool isModified() const
If you change an item, it is marked as "dirty".
Definition tdefilemetainfo.cpp:202
TQString suffix() const
This method returns a translated suffix to be displayed after the value.
Definition tdefilemetainfo.cpp:212
bool setValue(const TQVariant &value)
Changes the value of the item.
Definition tdefilemetainfo.cpp:134
TQString string(bool mangle=true) const
Returns a string containing the value, if possible.
Definition tdefilemetainfo.cpp:187
const TQVariant value(const TQString &key) const
Returns the value with the given key.
Definition tdefilemetainfo.h:1177
KFileMetaInfoItem item(const TQString &key) const
Returns the KFileMetaInfoItem with the given key.
Definition tdefilemetainfo.cpp:614
KFileMetaInfo(const TQString &path, const TQString &mimeType=TQString::null, uint what=Fastest)
The constructor.
Definition tdefilemetainfo.cpp:297
KFileMetaInfoGroup group(const TQString &key) const
Returns the KFileMetaInfoGroup with the given key.
Definition tdefilemetainfo.cpp:441
What
This is used to specify what a KFileMetaInfo object should read, so you can specify if you want to re...
Definition tdefilemetainfo.h:933
@ ExtenedAttr
read filesystem based extended attributes if they are supported for the filesystem
Definition tdefilemetainfo.h:944
@ ContentInfo
read information about the content of the file, like comments or id3 tags
Definition tdefilemetainfo.h:942
@ Fastest
do the fastest possible read and omit all items that might need a significantly longer time than the ...
Definition tdefilemetainfo.h:934
Information about a meta information group.
Definition tdefilemetainfo.h:133
bool supportsVariableKeys() const
Definition tdefilemetainfo.h:199
const ItemInfo * variableItemInfo() const
If the group supports variable keys, you can query their item info with this method.
Definition tdefilemetainfo.h:211
const TQString & translatedName() const
Use this method to get the string to display to the user as group name.
Definition tdefilemetainfo.h:171
TQStringList supportedKeys() const
Use this method to get a list of keys in the specified group that the plugin knows about.
Definition tdefilemetainfo.h:148
const TQString & name() const
Use this method to get the name of the group.
Definition tdefilemetainfo.h:159
uint attributes() const
Get the attributes of this group (see Attributes).
Definition tdefilemetainfo.h:190
This is the class for one item of a KFileMimeTypeInfo.
Definition tdefilemetainfo.h:245
const TQString & prefix() const
This method returns a translated prefix to be displayed before the value.
Definition tdefilemetainfo.h:259
const TQString & suffix() const
This method returns a translated suffix to be displayed after the value.
Definition tdefilemetainfo.h:270
const TQString & translatedKey() const
Returns a translation of the key for displaying to the user.
Definition tdefilemetainfo.h:325
TQVariant::Type type() const
The items for a file are stored as a TQVariant and this method can be used to get the data type of th...
Definition tdefilemetainfo.h:281
Represents the capabilities of a KFilePlugin for a given mimetype.
Definition tdefilemetainfo.h:45
TQStringList preferredGroups() const
This returns the list of groups in the preferred order that's specified in the .desktop file.
Definition tdefilemetainfo.h:419
Attributes
This enum is used to specify some attributes that an item can have, which fit neither in the Hint nor...
Definition tdefilemetainfo.h:59
@ MultiLine
This attribute says that a string item is likely to be more than one line long, so for editing,...
Definition tdefilemetainfo.h:69
@ SqueezeText
If the text for this item is very long, it should be squeezed to the size of the widget where it's di...
Definition tdefilemetainfo.h:73
@ Averaged
Similar to Cumulative, but the average should be calculated instead of the sum.
Definition tdefilemetainfo.h:67
@ Cumulative
If an application wants to display information for more than one file, it may add up the values for t...
Definition tdefilemetainfo.h:63
Unit
This enum exists so that you can specify units for items, which you can usually use for integer items...
Definition tdefilemetainfo.h:105
TQString mimeType() const
Returns the mimetype to which this info belongs.
Definition tdefilemetainfo.h:429
Hint
This enum is mainly for items that have a special meaning for some applications.
Definition tdefilemetainfo.h:83
TQStringList preferredKeys() const
Return a list of all supported keys in preference order.
Definition tdefilemetainfo.h:457
virtual bool writeInfo(const KFileMetaInfo &info) const
Similar to the readInfo() but for writing the info back to the file.
Definition tdefilemetainfo.h:1436
KFilePlugin(TQObject *parent, const char *name, const TQStringList &args)
Creates a new KFilePlugin instance.
Definition tdefilemetainfo.cpp:781
virtual bool readInfo(KFileMetaInfo &info, uint what=KFileMetaInfo::Fastest)=0
Read the info from the file in this method and insert it into the provided KFileMetaInfo object.
virtual TQValidator * createValidator(const TQString &mimeType, const TQString &group, const TQString &key, TQObject *parent, const char *name) const
This method should create an appropriate validator for the specified item if it's editable or return ...
Definition tdefilemetainfo.h:1456
Trinity API Reference