InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IAssetMonitor.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Bill Tislar
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 
24 #ifndef __IAssetMonitor_h__
25 #define __IAssetMonitor_h__
26 
27 #include "IPMUnknown.h"
28 #include "workgroupid.h"
29 
30 
31 class IManageableAsset;
32 class IManagedStatus;
33 class ICommand;
34 
35 
54 class IAssetMonitor : public IPMUnknown
55 {
56 public:
57  enum { kDefaultIID = IID_IASSETMONITOR };
58 
63  virtual bool16 AssetHasMoved( IManageableAsset * asset ) = 0;
64 
69  virtual bool16 StartUp() = 0;
70 
75  virtual bool16 ShutDown() = 0;
76 
81  virtual bool16 CanMonitor( const IDFile & file ) = 0;
82 
87  virtual bool16 CanMonitor( IManageableAsset * asset ) = 0;
88 
94  virtual ICommand * GetHandleChangesCommand() = 0;
95 
100  virtual IManagedStatus * GetNextPendingStatus() = 0;
101 
107  virtual bool16 IsStatusPending( IManageableAsset * asset ) = 0;
108 
114  virtual uint32 DoBackgroundTasks() = 0;
115 
121  virtual ErrorCode StartMonitoring( UIDRef assetRef ) = 0;
122 
127  virtual ErrorCode StopMonitoring( UIDRef assetRef ) = 0;
128 
133  virtual bool16 IsMonitoring( UIDRef assetRef ) = 0;
134 
135 }; // end IAssetMonitor interface
136 
137 #endif // __IAssetMonitor_h__