Custom Platform Support Development Kit
1.3
|
The definitions contained in this namespace define a framework called Flash Component Model (FCM), which is responsible for plug-in management. The FCM framework manages loading, unloading and registration of the plug-in. It also manages service instantiation, object instantiation and object lifetime management. More...
Classes | |
class | AutoPtr |
This defines smart pointer to manage AddRef and Release calls to FCM objects. In AutoPtr<T> , T has to be an interface derived from IFCMUnknown. AutoPtr<T> can be used to control the lifetime of objects without explicitly calling AddRef and Release . More... | |
struct | FCMGUID |
Represents a 128 bit or 16-byte GUID (Globally Unique IDentifier) value. More... | |
class | FCMListPtr |
A class implementing the AutoPtr<IFCMList>. More... | |
class | FCMObjectBase |
Every class that implements an interface should be derived from this class. More... | |
class | IFCMCallback |
Defines the interface that represents the callback. More... | |
class | IFCMCalloc |
Defines the interface that represents the calloc. More... | |
class | IFCMClassFactory |
Defines the interface that represents the ClassFactory. More... | |
class | IFCMDictionary |
Defines the interface that represents the dictionary. More... | |
class | IFCMList |
Defines the interface that represents the List of pointer to IFCMUnknown objects. More... | |
class | IFCMNoAggregationUnknown |
Defines the interface that represents the NoAggregationUnknown. More... | |
class | IFCMNotificationClient |
Defines the interface that represents the notification client. More... | |
class | IFCMNotificationService |
Defines the interface that represents a notification service. More... | |
class | IFCMPluginDictionary |
Defines the interface that represents the Plugin Dictionary. More... | |
class | IFCMStringUtils |
Defines the interface for string conversions between StringRep8 and StringRep16. More... | |
class | IFCMUnknown |
Defines the interface that represents the IUnknown object. More... | |
struct | VARIANT |
Defines a data-type called 'variant' that can be used to store different types of data. More... | |
Typedefs | |
typedef FCM::Result(* | PluginBootProc )(PIFCMCallback pCallback) |
Defines the type of a function that will be called immediately after the DLL/framework load. Perform any global initialization inside this. | |
typedef FCM::Result(* | PluginGetClassInfoProc )(PIFCMCalloc pCalloc, PFCMClassInterfaceInfo *ppClassInfo) |
Defines the type of a function used by FCM framework to know various classes implemented by the plug-in. Do no have any app-specific logic in this function. More... | |
typedef FCM::Result(* | PluginGetClassObjectProc )(PIFCMUnknown pUnkOuter, ConstRefFCMCLSID clsid, ConstRefFCMIID iid, FCM::PPVoid pAny) |
Defines the function called by FCM framework to get the factory objects for the classes implemented by the plug-in. Do no perform any app-specific logic inside this function. More... | |
typedef FCM::Result(* | PluginRegisterProc )(PIFCMPluginDictionary pPluginDict) |
Defines the function called by FCM framework to register the plug-in. The plug-in has to add the details of the the services and the various components it contains to this dictionary. More... | |
typedef FCM::U_Int32(* | PluginCanUnloadNowProc )(void) |
Defines the function called by FCM framework to check if the plug-in can be unloaded. This function returns the number of live object instances from by this plug-in. Just before the shutdown, all the instances should be deleted and zero should be returned. More... | |
typedef FCM::Result(* | PluginShutdownProc )() |
Defines the function called by FCM framework to notify the plug-in that the plug-in will be unloaded soon. This function allows the plug-in to perform proper clean-up before unloading. | |
typedef unsigned _int8 | U_Int8 |
Type to define an unsigned 8-bit value. | |
typedef signed _int8 | S_Int8 |
Type to define a signed 8-bit value. | |
typedef unsigned _int16 | U_Int16 |
Type to define an unsigned 16-bit value. | |
typedef signed _int16 | S_Int16 |
Type to define a signed 16-bit value. | |
typedef unsigned _int32 | U_Int32 |
Type to define an unsigned 32-bit value. | |
typedef signed _int32 | S_Int32 |
Type to define a signed 32-bit value. | |
typedef unsigned _int64 | U_Int64 |
Type to define a unsigned size 64-bit value. | |
typedef signed _int64 | S_Int64 |
Type to define a signed 64-bit value. | |
typedef float | Float |
Type to define a IEEE single precision floating point number. | |
typedef double | Double |
Type to define a IEEE double-precision floating point number. | |
typedef U_Int32 | Result |
Type to define a result. This is usually the return type for most APIs. | |
typedef U_Int8 | Byte |
Type to define a byte. | |
typedef U_Int8 | Boolean |
Type to define a boolean. | |
typedef void * | PVoid |
Type to define a void pointer. | |
typedef void ** | PPVoid |
Type to define a pointer to pointer to void. | |
typedef U_Int16 * | StringRep16 |
Used to define a UTF16 (unicode) encoded string. | |
typedef const U_Int16 * | CStringRep16 |
Used to define a constant UTF16 (unicode) encoded string. | |
typedef char * | StringRep8 |
Used to define a unicode (UTF8) encoded string. | |
typedef const char * | CStringRep8 |
Used to define a constant unicode (UTF8) encoded string. | |
typedef FCMGUID | FCMIID |
Represents the interface ID type. | |
typedef FCMGUID | FCMCLSID |
Represents the class ID type. | |
typedef FCMGUID | SRVCID |
Represents the service ID type. | |
typedef const FCMIID | ConstFCMIID |
Represents the constant interface ID type. | |
typedef const FCMIID | ConstFCMCLSID |
Represents the constant class ID type. | |
typedef ConstFCMCLSID & | ConstRefFCMIID |
Represents the constant reference to interface ID. | |
typedef ConstFCMCLSID & | ConstRefFCMCLSID |
Represents the constant reference to class ID. | |
typedef FCMGUID | FCMNotifyID |
The FCM notification ID type. | |
typedef FCMGUID * | PFCMNotifyID |
The pointer to FCM notification ID. | |
typedef const FCMNotifyID | ConstFCMNotifyID |
The constant FCM notification ID. | |
typedef const FCMNotifyID & | ConstRefFCMNotifyID |
The reference to constant FCM notification ID. | |
Enumerations | |
enum | VarType { kFCMVarype_Invalid = 0, kFCMVarype_UInt32, kFCMVarype_Float, kFCMVarype_Bool, kFCMVarype_CString, kFCMVarype_Double, _kFCMVarype_Last_ } |
Type for the values of a variant (VARIANT) More... | |
enum | FCMDictRecTypeID { kFCMDictType_Invalid = 0, kFCMDictType_Dict = 1, kFCMDictType_PIFCMUnknown, kFCMDictType_Long, kFCMDictType_Float, kFCMDictType_Bool, kFCMDictType_FCMGUID, kFCMDictType_Bytes, kFCMDictType_StringRep8, kFCMDictType_Double, _kFCMDictType_Last_ } |
This defines different types of dictionary IDs. More... | |
Functions | |
__inline bool | operator== (const FCMGUID &guidOne, const FCMGUID &guidOther) |
This function compares for GUID equality. More... | |
__inline bool | operator!= (const FCMGUID &guidOne, const FCMGUID &guidOther) |
This function compares for GUID in-equality. More... | |
Variables | |
const FCM::SRVCID | SRVCID_Core_Memory |
Defines the universally-unique ID for the memory service. More... | |
const FCM::SRVCID | SRVCID_Core_Notification |
Defines the universally-unique ID for the Notification service. More... | |
const FCM::SRVCID | SRVCID_Core_StringUtils |
Defines the universally-unique ID for a service to convert strings between StringRep8 and StringRep16. More... | |
const FCMCLSID | CLSID_IFCMDictionary |
Defines the universally-unique class ID to create object that implements IFCMDictionary dictionary interface. More... | |
const FCMNotifyID | NOTIFYID_FCM_SHUTDOWN |
Defines the universally-unique ID for the shutdown notification. More... | |
const FCMIID | FCMIID_NULL = { 0, 0, 0, { 0, 0, 0, 0, 0, 0, 0, 0 } } |
Represents an invalid Interface Identifier (IID). | |
const FCMCLSID | FCMCLSID_NULL = { 0, 0, 0, { 0, 0, 0, 0, 0, 0, 0, 0 } } |
Represents an invalid class Identifier (CLSID). | |
FCM::ConstFCMIID | FCMIID_IFCMCallback |
Defines the universally-unique interface ID for IFCMCallback. More... | |
FCM::ConstFCMIID | FCMIID_IFCMCalloc |
Defines the universally unique ID for the interface IFCMCalloc. More... | |
FCM::ConstFCMIID | FCMIID_IFCMClassFactory |
Defines the universally-unique interface ID for IFCMClassFactory. More... | |
FCM::ConstFCMIID | FCMIID_IFCMDictionary |
Defines the universally-unique interface ID for IFCMDictionary. More... | |
FCM::ConstFCMIID | FCMIID_IFCMList |
Defines the universally-unique interface ID for IFCMList. More... | |
FCM::ConstFCMIID | FCMIID_IFCMNoAggregationUnknown |
Defines the universally-unique interface ID for IFCMNoAggregationUnknown. More... | |
FCM::ConstFCMIID | FCMIID_IFCMNotificationClient |
Defines the universally-unique interface ID for IFCMNotificationClient. More... | |
FCM::ConstFCMIID | FCMIID_IFCMNotificationService |
Defines the universally-unique interface ID for IFCMNotificationService. More... | |
FCM::ConstFCMIID | FCMIID_IFCMPluginDictionary |
Defines the universally-unique interface ID for IFCMPluginDictionary. More... | |
FCM::ConstFCMIID | FCMIID_IFCMStringUtils |
Defines the universally-unique interface ID for IFCMStringUtils. More... | |
The definitions contained in this namespace define a framework called Flash Component Model (FCM), which is responsible for plug-in management. The FCM framework manages loading, unloading and registration of the plug-in. It also manages service instantiation, object instantiation and object lifetime management.
FCM::PluginCanUnloadNowProc |
Defines the function called by FCM framework to check if the plug-in can be unloaded. This function returns the number of live object instances from by this plug-in. Just before the shutdown, all the instances should be deleted and zero should be returned.
FCM::PluginGetClassInfoProc |
Defines the type of a function used by FCM framework to know various classes implemented by the plug-in. Do no have any app-specific logic in this function.
pCalloc | (IN) The pointer to the memory allocator service object. |
ppClassInfo | (OUT) The pointer to an array of the FCMClassInterfaceInfo objects. The plug-in has to allocate the array using pCalloc |
FCM::PluginGetClassObjectProc |
Defines the function called by FCM framework to get the factory objects for the classes implemented by the plug-in. Do no perform any app-specific logic inside this function.
pUnkOuter | (IN) If NULL, indicates that the object is not being created as part of an aggregate. If non-NULL, pointer to the aggregate object's IFCMUnknown interface. |
clsid | (IN) The class ID associated with the data and code that will be used to create the object. |
iid | (IN) A reference to the identifier of the interface to be used to communicate with the object. |
pAny | (OUT) Address of pointer variable that receives the interface pointer requested in interfaceID. Upon successful return, *ppvObj contains the requested interface pointer pointing to the class factory object for the class with ID clsid. Upon failure, *ppvObj contains NULL. FCM framework will call Release on ppvObj to release the class factory object. |
FCM::PluginRegisterProc |
Defines the function called by FCM framework to register the plug-in. The plug-in has to add the details of the the services and the various components it contains to this dictionary.
pPluginDict | (IN) pointer to the registration dictionary that has to be filled by the plug-in. |
This defines different types of dictionary IDs.
Enumerator | |
---|---|
kFCMDictType_Invalid |
illegal |
kFCMDictType_Dict |
FCMDict. Put does AddRef; Remove does Release. |
kFCMDictType_PIFCMUnknown |
Returns a PIFCMUnknown. Put does AddRef; Remove does Release. |
kFCMDictType_Long |
Returns a FCM::S_Int32. |
kFCMDictType_Float |
Returns a 32 bit IEEE single precision floating point number. |
kFCMDictType_Bool | |
kFCMDictType_FCMGUID | |
kFCMDictType_Bytes |
Arbitrary bytes |
kFCMDictType_StringRep8 |
Null-terminated StringRep8 string |
kFCMDictType_Double |
enum FCM::VarType |
Type for the values of a variant (VARIANT)
Enumerator | |
---|---|
kFCMVarype_Invalid |
Represents a invalid type |
kFCMVarype_UInt32 |
Represents a FCM::U_Int32. |
kFCMVarype_Float |
Represents a FCM::Float |
kFCMVarype_Bool |
Represents a FCM::Boolean |
kFCMVarype_CString |
Represents a FCM::StringRep8 |
kFCMVarype_Double |
Represents a FCM::Double |
_kFCMVarype_Last_ |
Marks the final Entry in the list |
__inline bool FCM::operator!= | ( | const FCMGUID & | guidOne, |
const FCMGUID & | guidOther | ||
) |
This function compares for GUID in-equality.
guidOne | (IN) One of the GUID that needs to be compared. |
guidOther | (IN) Other GUID that needs to be compared. |
__inline bool FCM::operator== | ( | const FCMGUID & | guidOne, |
const FCMGUID & | guidOther | ||
) |
This function compares for GUID equality.
guidOne | (IN) One of the GUID that needs to be compared. |
guidOther | (IN) Other GUID that needs to be compared. |
const FCMCLSID FCM::CLSID_IFCMDictionary |
Defines the universally-unique class ID to create object that implements IFCMDictionary dictionary interface.
FCM::ConstFCMIID FCM::FCMIID_IFCMCallback |
Defines the universally-unique interface ID for IFCMCallback.
FCM::ConstFCMIID FCM::FCMIID_IFCMCalloc |
Defines the universally unique ID for the interface IFCMCalloc.
FCM::ConstFCMIID FCM::FCMIID_IFCMClassFactory |
Defines the universally-unique interface ID for IFCMClassFactory.
FCM::ConstFCMIID FCM::FCMIID_IFCMDictionary |
Defines the universally-unique interface ID for IFCMDictionary.
FCM::ConstFCMIID FCM::FCMIID_IFCMList |
Defines the universally-unique interface ID for IFCMList.
FCM::ConstFCMIID FCM::FCMIID_IFCMNoAggregationUnknown |
Defines the universally-unique interface ID for IFCMNoAggregationUnknown.
FCM::ConstFCMIID FCM::FCMIID_IFCMNotificationClient |
Defines the universally-unique interface ID for IFCMNotificationClient.
FCM::ConstFCMIID FCM::FCMIID_IFCMNotificationService |
Defines the universally-unique interface ID for IFCMNotificationService.
FCM::ConstFCMIID FCM::FCMIID_IFCMPluginDictionary |
Defines the universally-unique interface ID for IFCMPluginDictionary.
FCM::ConstFCMIID FCM::FCMIID_IFCMStringUtils |
Defines the universally-unique interface ID for IFCMStringUtils.
const FCMNotifyID FCM::NOTIFYID_FCM_SHUTDOWN |
Defines the universally-unique ID for the shutdown notification.
const FCM::SRVCID FCM::SRVCID_Core_Memory |
Defines the universally-unique ID for the memory service.
const FCM::SRVCID FCM::SRVCID_Core_Notification |
Defines the universally-unique ID for the Notification service.
const FCM::SRVCID FCM::SRVCID_Core_StringUtils |
Defines the universally-unique ID for a service to convert strings between StringRep8 and StringRep16.