InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ILinkResourceStateUpdater.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Michael Easter
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //
23 // Description:
24 // This class defines an interface that implements state update and location resolution
25 // for an ILinkResource that is specific to the type of the resource as identified by
26 // the scheme of the link resource's URI.
27 //
28 //========================================================================================
29 
30 #ifndef __ILinkResourceStateUpdater__
31 #define __ILinkResourceStateUpdater__
32 
33 // ----- Includes -----
34 #include "IPMUnknown.h"
35 #include "LinksID.h"
36 
37 #include "AsyncWork.h"
38 
39 class URI;
40 
41 
64 {
65 public:
66  enum { kDefaultIID = IID_ILINKRESOURCESTATEUPDATER };
67 
74  virtual ErrorCode UpdateResourceStateSync(const UIDRef& resourceRef, bool bNotify) = 0;
75 
81  virtual ErrorCode UpdateResourceStateAsync(const UIDRef& resourceRef) = 0;
82 
87  virtual void CancelUpdateResourceState(const UIDRef& resourceRef) = 0;
88 
93  virtual void WaitForUpdateResourceStateCompletion(const UIDRef& resourceRef) = 0;
94 
106  virtual ErrorCode ResolveResource(const UIDRef& resourceRef, const URI& relativeURI, bool bIgnoreStamp) = 0;
107 
108 #ifdef UPDATELINKS_ASYNC
109 
114  virtual bool16 DoesSupportUpdateResourceStateThroughAsyncWorkManager(const UIDRef& resourceRef) = 0;
115 
123  virtual ErrorCode UpdateResourceStateAsyncWithPacketID(const UIDRef& resourceRef, bool16 bCheckOutstandingPackets, AsyncWorkPacketID& packetID) = 0;
124 
137  virtual ErrorCode ResolveResourceAsync(const UIDRef& resourceRef, const URI& relativeURI, bool bIgnoreStamp, bool16* statusBoolPtr, bool16 bCheckOutstandingPackets, AsyncWorkPacketID& packetID) = 0;
138 #endif
139 
140 };
141 
142 #endif // __ILinkResourceStateUpdater__