InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IHTTPLinkResourceConnection.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Arvinder Singh
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // ADOBE CONFIDENTIAL
16 //
17 // Copyright 2016 Adobe
18 // All Rights Reserved.
19 //
20 // NOTICE: Adobe permits you to use, modify, and distribute this file in
21 // accordance with the terms of the Adobe license agreement accompanying
22 // it. If you have received this file from a source other than Adobe,
23 // then your use, modification, or distribution of it requires the prior
24 // written permission of Adobe.
25 //
26 //========================================================================================
27 #ifndef __IHTTPLinkResourceConnection__
28 #define __IHTTPLinkResourceConnection__
29 
30 #include "IPMUnknown.h"
31 #include "IPMStream.h"
32 
33 #include "LinksID.h"
34 #include "PMString.h"
35 
36 /*
37  AdobePatentID="P7137-US"
38  AdobePatentID="P7225-US"
39  AdobePatentID="P7609-US"
40 */
41 
53 {
54 public:
55 
56  //[TODO] decide on type
57  typedef PMString ConnectionId;
58 
59  enum { kDefaultIID = IID_IHTTPLINKRESOURCECONNECTION };
60 
65  virtual bool16 Shutdown() = 0;
66 
71  virtual bool16 IsConnected() const = 0;
72 
77  virtual bool16 IsAuthorized() const = 0;
78 
83  virtual bool16 Connect() = 0;
84 
89  virtual bool16 Reconnect() = 0;
90 
95  virtual bool16 Disconnect() = 0;
96 
101  virtual ConnectionId GetConnectionId() = 0;
102 
110  virtual bool16 GetLoginCredentials(std::stringstream& loginInformation) const = 0;
111 
119  virtual bool16 SetLoginCredentials(const std::stringstream& loginInformation) = 0;
120 
128  virtual void ReadWriteSnapshotForBackgroundThread(IPMStream* s) = 0;
129 };
130 
131 #endif // __IHTTPLinkResourceConnection__