InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CusDtLnkLinkResourceStatePacket Class Reference

#include <CusDtLnkLinkResourceStatePacket.h>

Inheritance diagram for CusDtLnkLinkResourceStatePacket:
AsyncWorkPacket

Public Member Functions

 CusDtLnkLinkResourceStatePacket (ILinkManager::OperationType opType, bool bNotify, IDataBase *db, const UID &uid, const URI &uri, ILinkResource::ResourceState state, const WideString &stamp, const IDTime &modTime, uint64 size)
 
virtual ~CusDtLnkLinkResourceStatePacket ()
 
bool operator== (const CusDtLnkLinkResourceStatePacket &rhs) const
 
ILinkManager::OperationType GetOperationType () const
 
bool GetNotify () const
 
IDataBaseGetDatabase () const
 
UID GetResource () const
 
URI GetURI () const
 
void SetURI (const URI &uri)
 
bool URIChanged ()
 
ILinkResource::ResourceState GetState () const
 
void SetState (ILinkResource::ResourceState state)
 
bool StateChanged ()
 
WideString GetStamp () const
 
void SetStamp (const WideString &stamp)
 
bool StampChanged ()
 
IDTime GetModTime () const
 
void SetModTime (const IDTime &modTime)
 
bool ModTimeChanged ()
 
uint64 GetSize () const
 
void SetSize (uint64 size)
 
bool SizeChanged ()
 
bool LinkResourceChanged ()
 
- Public Member Functions inherited from AsyncWorkPacket
virtual ~AsyncWorkPacket ()
 

Additional Inherited Members

- Public Types inherited from AsyncWorkPacket
enum  Priority {
  kLowestPriority = 0, kLowPriority = 0, kNormalPriority = 1, kHighPriority = 2,
  kHighestPriority = 2, kReservedForceCompletionPriority = 3
}
 

Detailed Description

Class used to contain information about a link resource that is used while updating the state of the resource and/or automatically resolveing a missing resource's new location.

See Also
ILinkResource
URI

Constructor & Destructor Documentation

CusDtLnkLinkResourceStatePacket::CusDtLnkLinkResourceStatePacket (ILinkManager::OperationType opType,
bool bNotify,
IDataBasedb,
const UIDuid,
const URIuri,
ILinkResource::ResourceState state,
const WideStringstamp,
const IDTimemodTime,
uint64 size 
)

Default constructor. Constructs a CusDtLnkLinkResourceStatePacket object.

Parameters
opType[IN] Type of state update operation performed.
bNotify[IN] Denotes whether the state update should notify if the model is changed in the callback.
db[IN] Database that contains the link resource.
uid[IN] UID of a link resource.
uri[IN] URI of a link resource.
state[IN] State of a link resource.
stamp[IN] Stamp of the link resource.
modTime[IN] Modification time of the link resource.
size[IN] Size of the link resource in bytes.
CusDtLnkLinkResourceStatePacket::~CusDtLnkLinkResourceStatePacket ()
virtual

Destructor. Destroys the CusDtLnkLinkResourceStatePacket object.

Member Function Documentation

IDataBase* CusDtLnkLinkResourceStatePacket::GetDatabase () const
inline

Returns the database that contains the link resource this packet pertains to. \ NOTE: Never access the database from a link resource state processor that is executing on a thread. Access is OK if the processor is executing in the idle task.

Returns
Database that contains the link resource this packet pertains to.
IDTime CusDtLnkLinkResourceStatePacket::GetModTime () const
inline

Returns the modification time of the link resource.

Returns
Stamp of the link resource.
bool CusDtLnkLinkResourceStatePacket::GetNotify () const
inline

Returns whether the state update should notify if the model is changed in the callback.

Returns
True if the state update should notify, else false.
ILinkManager::OperationType CusDtLnkLinkResourceStatePacket::GetOperationType () const
inline

Returns the type type of state update operation performed; asynchronous or synchronous.

Returns
Type of state update operation performed.
UID CusDtLnkLinkResourceStatePacket::GetResource () const
inline

Returns the UID of the link resource.

Returns
UID of the link resource.
uint64 CusDtLnkLinkResourceStatePacket::GetSize () const
inline

Returns the byte size of the link resource.

Returns
Byte size of the link resource.
WideString CusDtLnkLinkResourceStatePacket::GetStamp () const
inline

Returns the stamp of the link resource.

Returns
Stamp of the link resource.
ILinkResource::ResourceState CusDtLnkLinkResourceStatePacket::GetState () const
inline

Returns the state of the link resource.

Returns
State of the link resource.
URI CusDtLnkLinkResourceStatePacket::GetURI () const
inline

Returns the URI of the link resource.

Returns
URI of the link resource.
bool CusDtLnkLinkResourceStatePacket::LinkResourceChanged ()
inline

Determines whether the link resource has changed.

Returns
True if link resource has changed, else false.
bool CusDtLnkLinkResourceStatePacket::ModTimeChanged ()
inline

Determines whether the link resource's modification time has changed.

Returns
True if link resource's modification time has changed, else false.
bool CusDtLnkLinkResourceStatePacket::operator== (const CusDtLnkLinkResourceStatePacketrhs) const

Equality operator. Test whether this CusDtLnkLinkResourceStatePacket is equal to the given CusDtLnkLinkResourceStatePacket.

Parameters
rhs[IN] CusDtLnkLinkResourceStatePacket to test for equality against this CusDtLnkLinkResourceStatePacket.
Returns
True if this CusDtLnkLinkResourceStatePacket is equal to the given CusDtLnkLinkResourceStatePacket, else false.
void CusDtLnkLinkResourceStatePacket::SetModTime (const IDTimemodTime)

Sets the new modification time of the link resource.

Parameters
stamp[IN] New stamp of the link resource.
void CusDtLnkLinkResourceStatePacket::SetSize (uint64 size)

Sets the new byte size of the link resource.

Parameters
stamp[IN] New byte size of the link resource.
void CusDtLnkLinkResourceStatePacket::SetStamp (const WideStringstamp)

Sets the new stamp of the link resource.

Parameters
stamp[IN] New stamp of the link resource.
void CusDtLnkLinkResourceStatePacket::SetState (ILinkResource::ResourceState state)

Sets the new state of a link resource.

Parameters
state[IN] New state of a link resource.
void CusDtLnkLinkResourceStatePacket::SetURI (const URIuri)

Sets the new URI of the link resource.

Parameters
uri[IN] New URI of a link resource.
bool CusDtLnkLinkResourceStatePacket::SizeChanged ()
inline

Determines whether the link resource's byte size has changed.

Returns
True if link resource's byte size has changed, else false.
bool CusDtLnkLinkResourceStatePacket::StampChanged ()
inline

Determines whether the link resource's stamp has changed.

Returns
True if link resource's stamp has changed, else false.
bool CusDtLnkLinkResourceStatePacket::StateChanged ()
inline

Determines whether the link resource's state has changed.

Returns
True if link resource's state has changed, else false.
bool CusDtLnkLinkResourceStatePacket::URIChanged ()
inline

Determines whether the link resource's URI has changed.

Returns
True if link resource's URI has changed, else false.