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

Public Types | |
| enum | { kDefaultIID = IID_IASSETSTATEMACHINE } |
Public Member Functions | |
| virtual void | InitializeState (IManagedStatus *managedStatus, UID objectUID=kInvalidUID)=0 |
| virtual void | HandleStateChange (IManagedStatus *managedStatus, UID objectUID=kInvalidUID, bool useCachedData=false)=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 IAssetStateMachine encapsulates the rules for handling asset status changes. This interface represents a convenient abstraction for consolidating the rules for status processing into a single class. Using and providing an implementation for this interface is optional.
| pure virtual |
This method processes state changes for an IManagedStatus instance. Suggested usage: called by the IAssetMonitor HandleChangesCmd.
| managedStatus | is a valid pointer to an IManagedStatus instance. |
| objectUID | is the UID of the document model object associated with the IManagedStatus. |
| useCachedData | is a control flag; when true, cached status data can be used to handle the state change. |
| pure virtual |
This method initializes the state of an IManagedStatus instance. Suggested usage: called during the IAMServiceProvider::enInitialize service.
| managedStatus | is a valid pointer to an IManagedStatus instance. |
| objectUID | is the UID of the document model object associated with the IManagedStatus. |