InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IAMSPManager.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 __IAMSPMANAGER__
25 #define __IAMSPMANAGER__
26 
27 #include "IPMUnknown.h"
28 #include "IAMServiceProvider.h"
29 #include "IAMSystemProvider.h"
30 #include "IManageableAsset.h"
31 
32 #include "IDFile.h"
33 
34 #include <vector>
35 
36 class IAssetMonitor;
38 class IDFile;
40 
41 
71 class IAMSPManager : public IPMUnknown
72 {
73 public:
74  enum { kDefaultIID = IID_IAMSPMANAGER };
75 
76  typedef std::vector<IAssetMonitor*> AssetMonitorPtrList;
77  typedef std::vector<UIDRef> UIDRefList;
78 
100  virtual ErrorCode BindAsset( IManageableAsset * pAsset, IManageableAsset::AssetType assetType, const IDFile & file = IDFile() ) = 0;
101 
111  virtual ErrorCode UnbindAsset( IManageableAsset * pAsset ) = 0;
112 
117  virtual int32 GetNumberOfAMSystemProviders() = 0;
118 
129  virtual IAMSystemProvider* GetNthSystemProvider( int32 n ) = 0;
130 
137  virtual IAMSystemProvider* GetSystemProvider( ClassID amspClassID ) = 0;
138 
146  virtual ClassID GetSystemProviderClassID( ClassID amServiceProviderClassID ) = 0;
147 
155  virtual IAMServiceProvider* GetServiceProvider( ClassID amServiceProviderClassID ) = 0;
156 
163  virtual int32 GetAllAssetMonitors( IAMSPManager::AssetMonitorPtrList & outList ) = 0;
164 
171  virtual IAMUIServiceProvider* GetUIServiceProvider( IManageableAsset * asset = nil ) = 0;
172 
179  virtual IAMUIServiceProvider* GetUIServiceProvider( IManageableAsset * asset, int32 serviceID ) = 0;
180 
188  virtual IAMUIServiceProvider* GetUIServiceProvider( const IDFile & file, int32 serviceID ) = 0;
189 
198  virtual IAMUIServiceProvider* GetUIServiceProvider( const IAMSPManager::UIDRefList & assetList, int32 serviceID ) = 0;
199 
204  virtual IAMServiceProvider* QueryServiceProvider( const IDFile & file ) = 0;
205 
208  virtual void ShowAllWarningDialogs() = 0;
209 
217 
221  virtual bool16 IsAuthenticationUIEnabled() const = 0;
222 
227  virtual bool16 EnableAuthenticationUI( bool16 enable = kTrue ) const = 0;
228 };
229 
230 #endif // __IAMSPMANAGER__