This is the base class of the objects component like featured by the QTPlugin and derived from it. Not all of these objects could be properly defined as a component, but any of them is characterized by a common set of properties and methods such as , and .
Since version 6.7 of the plugin this class can be used in Console Applications
The class has not constructor at all (you can always use the Realbasic common constructor syntax, of course, but you will obtain an usless object). Its destructor, will be implicitly invoked every time one of its derived classes will be destroyed.
identifies the name of the component
a four–character code that identifies the type of the component
a four–character code that identifies the subtype of the component. Different subtypes of a
component type may support additional features or provide interfaces that extend beyond the standard routines
for a given component type. For example, the subtype of an image compressor component
indicates the compression algorithm employed by the compressor.
a four–character code that identifies the manufacturer of the component.
This property allows for further differentiation between individual components.
For example, components made by a specific manufacturer may support an extended feature set
A 32–bit value that contains flags describing your component’s capabilities.
These flags can be used to indicate the
presence of features or capabilities in a given component. You can query the component about a
given characteristic by using the
class method
specifies if the component provides a custom icon
the icon provided by the component, if any; otherwise this property is set to nil
(flag as integer) as boolean
use this function to check if the component provides a given feature or capability. The flag
will be used as a mask value for the bit of the
property
corresponding to the component’s capability.
illustrates how to use this function to check if the component can validate the movie passed to it for export
illustrates how to use this function to check if the component can validate the movie passed to it for export
Function checkComponentFlag(comp
as QTPlgObjectComponent, mask as integer) as Boolean
if comp=nil or not comp.isValid then
return false else return comp.checkFlag(mask) end if
End Function
Function checkExportMovieFlag(comp as QTPlgObjectComponent) as Boolean
dim canMovieExportValidateMovieMask as integer
canMovieExportValidateMovieMask=Bitwise.shiftLeft(1,16)
return checkComponentFlag(comp,canMovieExportValidateMovieMask)
End Function
if comp=nil or not comp.isValid then
return false else return comp.checkFlag(mask) end if
End Function
Function checkExportMovieFlag(comp as QTPlgObjectComponent) as Boolean
dim canMovieExportValidateMovieMask as integer
canMovieExportValidateMovieMask=Bitwise.shiftLeft(1,16)
return checkComponentFlag(comp,canMovieExportValidateMovieMask)
End Function