![]() | InDesign SDK 20.5 |
#include <IAMServiceData.h>

Public Types | |
| enum | { kDefaultIID = IID_IAMSERVICEDATA } |
| typedef std::vector< IDFile > | IDFileList |
| typedef std::vector< UIDRef > | UIDRefList |
Public Member Functions | |
| virtual bool16 | Get (int32 dataID, IDFile &outFile) const =0 |
| virtual bool16 | Get (int32 dataID, int32 &outInt32) const =0 |
| virtual void * | Get (int32 dataID) const =0 |
| virtual bool16 | Get (int32 dataID, PMString &outPMString) const =0 |
| virtual bool16 | Get (int32 dataID, UIDRef &outUIDRef) const =0 |
| virtual bool16 | Get (int32 dataID, UIFlags &outUiFlags) const =0 |
| virtual bool16 | Get (int32 dataID, IAMUIService::FollowupAction &outAction) const =0 |
| virtual bool16 | Get (IAMServiceData::UIDRefList &outUIDRefList)=0 |
| virtual bool16 | Get (IAMServiceData::IDFileList &outIDFileList)=0 |
| virtual bool16 | GetFlag (int32 dataID) const =0 |
| virtual void | Set (int32 dataID, const IDFile &inFile)=0 |
| virtual void | Set (int32 dataID, int32 inInt32)=0 |
| virtual void | Set (int32 dataID, void *inInterface)=0 |
| virtual void | Set (int32 dataID, const PMString &inPMString)=0 |
| virtual void | Set (int32 dataID, const UIDRef &inUIDRef)=0 |
| virtual void | Set (int32 dataID, UIFlags inUIFlags)=0 |
| virtual void | Set (int32 dataID, IAMUIService::FollowupAction inAction)=0 |
| virtual void | Set (const IAMServiceData::UIDRefList &inUIDRefList)=0 |
| virtual void | Set (const IAMServiceData::IDFileList &inIDFileList)=0 |
| virtual void | SetFlag (int32 dataID, bool16 b=kTrue)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
The IAMServiceData interface exchanges parameters with IAMService or IAMUIService implementations. The accessors ("Get" methods) and mutators ("Set" methods) of the interface handle the most the commonly used data types. Parameters are identified by specifying a predefined data identifier (dataID) which serves as the key. Predefined data identifiers used by InDesign/InCopy/InDesignServer are defined in IAMService.h and IAMUIService.h. The data type that a particular data identifier is mapped to is determined by the IAMService implementation. For example, "IAMService::enTargetAsset" could refer to a UIDRef, IDFile, or vector of IDFiles. See IAMServiceProvider.h for the currently used mappings.
With the exception of the GetFlag() and Get void * accessors, all of the accessors return kTrue if the parameter could be found, and kFalse otherwise.
| pure virtual |
| pure virtual |
Retrieves a service data parameter of type int32.
| dataID | is a unique key to identify the data. |
| outInt32 | will be populated with the int32. |
| pure virtual |
Retrieves a service data parameter of type void *.
| dataID | is a unique key to identify the pointer data. |
| pure virtual |
| pure virtual |
| pure virtual |
Retrieves a service data parameter of type UIFlags.
| dataID | is a unique key to identify the data. |
| outUiFlags | will be populated with the UIFlags. |
| pure virtual |
Retrieves a service data parameter of type IAMUIService::FollowupAction.
| dataID | is a unique key to identify the data. |
| outAction | will be populated with the IAMUIService::FollowupAction. |
| pure virtual |
Retrieves an IAMService::enTargetAsset service data parameter of type IAMServiceData::UIDRefList.
| outUIDRefList | will be populated with one or more UIDRefs. |
| pure virtual |
Retrieves an IAMService::enTargetAsset service data parameter of type IAMServiceData::IDFileList.
| outIDFileList | will be populated with one or more IDFiles. |
| pure virtual |
Retrieves a binary flag value (kTrue or kFalse).
| dataID | is a unique key to identify the flag. |
| pure virtual |
Sets the value of a service data parameter of type IDFile.
| dataID | is a unique key to identify the data. |
| inFile | the contents of this are copied and saved. |
| pure virtual |
Sets the value of a service data parameter of type int32.
| dataID | is a unique key to identify the data. |
| inInt32 | the contents of this are copied and saved. |
| pure virtual |
Sets the value of a service data parameter of type void *.
| dataID | is a unique key to identify the pointer. |
| inInterface | the contents of this are copied and saved. |
| pure virtual |
Sets the value of a service data parameter of type PMString.
| dataID | is a unique key to identify the data. |
| inPMString | the contents of this are copied and saved. |
| pure virtual |
Sets the value of a service data parameter of type UIDRef.
| dataID | is a unique key to identify the data. |
| inUIDRef | the contents of this are copied and saved. |
| pure virtual |
Sets the value of a service data parameter of type UIFlags.
| dataID | is a unique key to identify the data. |
| inUiFlags | the contents of this are copied and saved. |
| pure virtual |
Sets the value of a service data parameter of type IAMUIService::FollowupAction.
| dataID | is a unique key to identify the data. |
| inAction | the contents of this are copied and saved. |
| pure virtual |
Sets the value of a service data parameter of type IAMServiceData::UIDRefList. The dataID is implicitly IAMService::enTargetAsset.
| inUIDRefList | the contents of this list are copied and saved. |
| pure virtual |
Sets the value of a service data parameter of type IAMServiceData::IDFileList. The dataID is implicitly IAMService::enTargetAsset.
| inIDFileList | the contents of this list are copied and saved. |
| pure virtual |
Sets or clears a flag service data parameter.
| dataID | is a unique key to identify the flag. |
| b | flag value; specify kTrue to set the flag, or kFalse to clear it. |