tdefilemetainfo.h
66 Addable = 1,
67 Removable = 2,
68 Modifiable = 4,
72 Cummulative = Cumulative,
83 };
90 NoHint = 0,
91 Name = 1,
92 Author = 2,
93 Description = 3,
94 Width = 4,
95 Height = 5,
96 Size = 6,
97 Bitrate = 7,
98 Length = 8,
99 Hidden = 9,
102 };
112 NoUnit = 0,
113 Seconds = 1,
114 MilliSeconds = 2,
115 BitsPerSecond = 3,
116 Pixels = 4,
117 Inches = 5,
118 Centimeters = 6,
119 Bytes = 7,
120 FramesPerSecond = 8,
121 DotsPerInch = 9,
122 BitsPerPixel = 10,
123 Hertz = 11,
124 KiloBytes = 12,
126 };
943 DontCare = 0x2,
954 Preferred = 0x40,
957 };
const TQVariant value(const TQString &key) const
Convenience function.
Definition: tdefilemetainfo.h:784
KFileMetaInfoItem operator[](const TQString &key) const
Operator for convenience.
Definition: tdefilemetainfo.h:758
const TQVariant value(const TQString &key) const
Returns the value with the given key.
Definition: tdefilemetainfo.h:1183
What
This is used to specify what a KFileMetaInfo object should read, so you can specify if you want to re...
Definition: tdefilemetainfo.h:939
@ Fastest
do the fastest possible read and omit all items that might need a significantly longer time than the ...
Definition: tdefilemetainfo.h:940
Information about a meta information group.
Definition: tdefilemetainfo.h:139
bool supportsVariableKeys() const
Definition: tdefilemetainfo.h:205
const TQString & translatedName() const
Use this method to get the string to display to the user as group name.
Definition: tdefilemetainfo.h:177
const TQString & name() const
Use this method to get the name of the group.
Definition: tdefilemetainfo.h:165
TQStringList supportedKeys() const
Use this method to get a list of keys in the specified group that the plugin knows about.
Definition: tdefilemetainfo.h:154
const ItemInfo * variableItemInfo() const
If the group supports variable keys, you can query their item info with this method.
Definition: tdefilemetainfo.h:217
uint attributes() const
Get the attributes of this group (see Attributes)
Definition: tdefilemetainfo.h:196
This is the class for one item of a KFileMimeTypeInfo.
Definition: tdefilemetainfo.h:251
const TQString & translatedKey() const
Returns a translation of the key for displaying to the user.
Definition: tdefilemetainfo.h:331
const TQString & prefix() const
This method returns a translated prefix to be displayed before the value.
Definition: tdefilemetainfo.h:265
const TQString & suffix() const
This method returns a translated suffix to be displayed after the value.
Definition: tdefilemetainfo.h:276
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:287
Represents the capabilities of a KFilePlugin for a given mimetype.
Definition: tdefilemetainfo.h:51
TQStringList preferredGroups() const
This returns the list of groups in the preferred order that's specified in the .desktop file.
Definition: tdefilemetainfo.h:425
Attributes
This enum is used to specify some attributes that an item can have, which fit neither in the Hint nor...
Definition: tdefilemetainfo.h:65
Unit
This enum exists so that you can specify units for items, which you can usually use for integer items...
Definition: tdefilemetainfo.h:111
TQString mimeType() const
Returns the mimetype to which this info belongs.
Definition: tdefilemetainfo.h:435
Hint
This enum is mainly for items that have a special meaning for some applications.
Definition: tdefilemetainfo.h:89
TQStringList preferredKeys() const
Return a list of all supported keys in preference order.
Definition: tdefilemetainfo.h:463
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:1462
virtual bool writeInfo(const KFileMetaInfo &info) const
Similar to the readInfo() but for writing the info back to the file.
Definition: tdefilemetainfo.h:1442
KFileMetaInfoGroup appendGroup(KFileMetaInfo &info, const TQString &key)
Call this method from within readInfo() to indicate that you wish to fill meta information items of t...
Definition: tdefilemetainfo.cpp:894
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.