tdefilemetainfo.h
84 NoHint = 0,
85 Name = 1,
86 Author = 2,
87 Description = 3,
88 Width = 4,
89 Height = 5,
90 Size = 6,
91 Bitrate = 7,
92 Length = 8,
93 Hidden = 9,
96 };
106 NoUnit = 0,
107 Seconds = 1,
108 MilliSeconds = 2,
109 BitsPerSecond = 3,
110 Pixels = 4,
111 Inches = 5,
112 Centimeters = 6,
113 Bytes = 7,
114 FramesPerSecond = 8,
115 DotsPerInch = 9,
116 BitsPerPixel = 10,
117 Hertz = 11,
118 KiloBytes = 12,
120 };
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
const TQVariant value(const TQString &key) const
Returns the value with the given key.
Definition tdefilemetainfo.h:1177
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
@ 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
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
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