1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/base/public/nsISocketTransportService.idl
3 : */
4 :
5 : #ifndef __gen_nsISocketTransportService_h__
6 : #define __gen_nsISocketTransportService_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : /* For IDL files that don't want to include root IDL files. */
14 : #ifndef NS_NO_VTABLE
15 : #define NS_NO_VTABLE
16 : #endif
17 : class nsISocketTransport; /* forward declaration */
18 :
19 : class nsIProxyInfo; /* forward declaration */
20 :
21 : class nsIRunnable; /* forward declaration */
22 :
23 : class nsASocketHandler;
24 : struct PRFileDesc;
25 :
26 : /* starting interface: nsISocketTransportService */
27 : #define NS_ISOCKETTRANSPORTSERVICE_IID_STR "185b3a5d-8729-436d-9693-7bdccb9c2216"
28 :
29 : #define NS_ISOCKETTRANSPORTSERVICE_IID \
30 : {0x185b3a5d, 0x8729, 0x436d, \
31 : { 0x96, 0x93, 0x7b, 0xdc, 0xcb, 0x9c, 0x22, 0x16 }}
32 :
33 1419 : class NS_NO_VTABLE NS_SCRIPTABLE nsISocketTransportService : public nsISupports {
34 : public:
35 :
36 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISOCKETTRANSPORTSERVICE_IID)
37 :
38 : /* nsISocketTransport createTransport ([array, size_is (aTypeCount)] in string aSocketTypes, in unsigned long aTypeCount, in AUTF8String aHost, in long aPort, in nsIProxyInfo aProxyInfo); */
39 : NS_SCRIPTABLE NS_IMETHOD CreateTransport(const char * *aSocketTypes, PRUint32 aTypeCount, const nsACString & aHost, PRInt32 aPort, nsIProxyInfo *aProxyInfo, nsISocketTransport * *_retval NS_OUTPARAM) = 0;
40 :
41 : /* [noscript] void attachSocket (in PRFileDescPtr aFd, in nsASocketHandlerPtr aHandler); */
42 : NS_IMETHOD AttachSocket(PRFileDesc *aFd, nsASocketHandler *aHandler) = 0;
43 :
44 : /* [noscript] void notifyWhenCanAttachSocket (in nsIRunnable aEvent); */
45 : NS_IMETHOD NotifyWhenCanAttachSocket(nsIRunnable *aEvent) = 0;
46 :
47 : };
48 :
49 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISocketTransportService, NS_ISOCKETTRANSPORTSERVICE_IID)
50 :
51 : /* Use this macro when declaring classes that implement this interface. */
52 : #define NS_DECL_NSISOCKETTRANSPORTSERVICE \
53 : NS_SCRIPTABLE NS_IMETHOD CreateTransport(const char * *aSocketTypes, PRUint32 aTypeCount, const nsACString & aHost, PRInt32 aPort, nsIProxyInfo *aProxyInfo, nsISocketTransport * *_retval NS_OUTPARAM); \
54 : NS_IMETHOD AttachSocket(PRFileDesc *aFd, nsASocketHandler *aHandler); \
55 : NS_IMETHOD NotifyWhenCanAttachSocket(nsIRunnable *aEvent);
56 :
57 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
58 : #define NS_FORWARD_NSISOCKETTRANSPORTSERVICE(_to) \
59 : NS_SCRIPTABLE NS_IMETHOD CreateTransport(const char * *aSocketTypes, PRUint32 aTypeCount, const nsACString & aHost, PRInt32 aPort, nsIProxyInfo *aProxyInfo, nsISocketTransport * *_retval NS_OUTPARAM) { return _to CreateTransport(aSocketTypes, aTypeCount, aHost, aPort, aProxyInfo, _retval); } \
60 : NS_IMETHOD AttachSocket(PRFileDesc *aFd, nsASocketHandler *aHandler) { return _to AttachSocket(aFd, aHandler); } \
61 : NS_IMETHOD NotifyWhenCanAttachSocket(nsIRunnable *aEvent) { return _to NotifyWhenCanAttachSocket(aEvent); }
62 :
63 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
64 : #define NS_FORWARD_SAFE_NSISOCKETTRANSPORTSERVICE(_to) \
65 : NS_SCRIPTABLE NS_IMETHOD CreateTransport(const char * *aSocketTypes, PRUint32 aTypeCount, const nsACString & aHost, PRInt32 aPort, nsIProxyInfo *aProxyInfo, nsISocketTransport * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateTransport(aSocketTypes, aTypeCount, aHost, aPort, aProxyInfo, _retval); } \
66 : NS_IMETHOD AttachSocket(PRFileDesc *aFd, nsASocketHandler *aHandler) { return !_to ? NS_ERROR_NULL_POINTER : _to->AttachSocket(aFd, aHandler); } \
67 : NS_IMETHOD NotifyWhenCanAttachSocket(nsIRunnable *aEvent) { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyWhenCanAttachSocket(aEvent); }
68 :
69 : #if 0
70 : /* Use the code below as a template for the implementation class for this interface. */
71 :
72 : /* Header file */
73 : class nsSocketTransportService : public nsISocketTransportService
74 : {
75 : public:
76 : NS_DECL_ISUPPORTS
77 : NS_DECL_NSISOCKETTRANSPORTSERVICE
78 :
79 : nsSocketTransportService();
80 :
81 : private:
82 : ~nsSocketTransportService();
83 :
84 : protected:
85 : /* additional members */
86 : };
87 :
88 : /* Implementation file */
89 : NS_IMPL_ISUPPORTS1(nsSocketTransportService, nsISocketTransportService)
90 :
91 : nsSocketTransportService::nsSocketTransportService()
92 : {
93 : /* member initializers and constructor code */
94 : }
95 :
96 : nsSocketTransportService::~nsSocketTransportService()
97 : {
98 : /* destructor code */
99 : }
100 :
101 : /* nsISocketTransport createTransport ([array, size_is (aTypeCount)] in string aSocketTypes, in unsigned long aTypeCount, in AUTF8String aHost, in long aPort, in nsIProxyInfo aProxyInfo); */
102 : NS_IMETHODIMP nsSocketTransportService::CreateTransport(const char * *aSocketTypes, PRUint32 aTypeCount, const nsACString & aHost, PRInt32 aPort, nsIProxyInfo *aProxyInfo, nsISocketTransport * *_retval NS_OUTPARAM)
103 : {
104 : return NS_ERROR_NOT_IMPLEMENTED;
105 : }
106 :
107 : /* [noscript] void attachSocket (in PRFileDescPtr aFd, in nsASocketHandlerPtr aHandler); */
108 : NS_IMETHODIMP nsSocketTransportService::AttachSocket(PRFileDesc *aFd, nsASocketHandler *aHandler)
109 : {
110 : return NS_ERROR_NOT_IMPLEMENTED;
111 : }
112 :
113 : /* [noscript] void notifyWhenCanAttachSocket (in nsIRunnable aEvent); */
114 : NS_IMETHODIMP nsSocketTransportService::NotifyWhenCanAttachSocket(nsIRunnable *aEvent)
115 : {
116 : return NS_ERROR_NOT_IMPLEMENTED;
117 : }
118 :
119 : /* End of implementation class template. */
120 : #endif
121 :
122 :
123 : #endif /* __gen_nsISocketTransportService_h__ */
|