1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/security/manager/ssl/public/nsICMSSecureMessage.idl
3 : */
4 :
5 : #ifndef __gen_nsICMSSecureMessage_h__
6 : #define __gen_nsICMSSecureMessage_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 nsIX509Cert; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsICMSSecureMessage */
21 : #define NS_ICMSSECUREMESSAGE_IID_STR "14b4394a-1dd2-11b2-b4fd-ba4a194fe97e"
22 :
23 : #define NS_ICMSSECUREMESSAGE_IID \
24 : {0x14b4394a, 0x1dd2, 0x11b2, \
25 : { 0xb4, 0xfd, 0xba, 0x4a, 0x19, 0x4f, 0xe9, 0x7e }}
26 :
27 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsICMSSecureMessage : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICMSSECUREMESSAGE_IID)
31 :
32 : /* string getCertByPrefID (in string certID); */
33 : NS_SCRIPTABLE NS_IMETHOD GetCertByPrefID(const char * certID, char * *_retval NS_OUTPARAM) = 0;
34 :
35 : /* nsIX509Cert decodeCert (in string value); */
36 : NS_SCRIPTABLE NS_IMETHOD DecodeCert(const char * value, nsIX509Cert * *_retval NS_OUTPARAM) = 0;
37 :
38 : /* string sendMessage (in string msg, in string cert); */
39 : NS_SCRIPTABLE NS_IMETHOD SendMessage(const char * msg, const char * cert, char * *_retval NS_OUTPARAM) = 0;
40 :
41 : /* string receiveMessage (in string msg); */
42 : NS_SCRIPTABLE NS_IMETHOD ReceiveMessage(const char * msg, char * *_retval NS_OUTPARAM) = 0;
43 :
44 : };
45 :
46 : NS_DEFINE_STATIC_IID_ACCESSOR(nsICMSSecureMessage, NS_ICMSSECUREMESSAGE_IID)
47 :
48 : /* Use this macro when declaring classes that implement this interface. */
49 : #define NS_DECL_NSICMSSECUREMESSAGE \
50 : NS_SCRIPTABLE NS_IMETHOD GetCertByPrefID(const char * certID, char * *_retval NS_OUTPARAM); \
51 : NS_SCRIPTABLE NS_IMETHOD DecodeCert(const char * value, nsIX509Cert * *_retval NS_OUTPARAM); \
52 : NS_SCRIPTABLE NS_IMETHOD SendMessage(const char * msg, const char * cert, char * *_retval NS_OUTPARAM); \
53 : NS_SCRIPTABLE NS_IMETHOD ReceiveMessage(const char * msg, char * *_retval NS_OUTPARAM);
54 :
55 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
56 : #define NS_FORWARD_NSICMSSECUREMESSAGE(_to) \
57 : NS_SCRIPTABLE NS_IMETHOD GetCertByPrefID(const char * certID, char * *_retval NS_OUTPARAM) { return _to GetCertByPrefID(certID, _retval); } \
58 : NS_SCRIPTABLE NS_IMETHOD DecodeCert(const char * value, nsIX509Cert * *_retval NS_OUTPARAM) { return _to DecodeCert(value, _retval); } \
59 : NS_SCRIPTABLE NS_IMETHOD SendMessage(const char * msg, const char * cert, char * *_retval NS_OUTPARAM) { return _to SendMessage(msg, cert, _retval); } \
60 : NS_SCRIPTABLE NS_IMETHOD ReceiveMessage(const char * msg, char * *_retval NS_OUTPARAM) { return _to ReceiveMessage(msg, _retval); }
61 :
62 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
63 : #define NS_FORWARD_SAFE_NSICMSSECUREMESSAGE(_to) \
64 : NS_SCRIPTABLE NS_IMETHOD GetCertByPrefID(const char * certID, char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCertByPrefID(certID, _retval); } \
65 : NS_SCRIPTABLE NS_IMETHOD DecodeCert(const char * value, nsIX509Cert * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->DecodeCert(value, _retval); } \
66 : NS_SCRIPTABLE NS_IMETHOD SendMessage(const char * msg, const char * cert, char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->SendMessage(msg, cert, _retval); } \
67 : NS_SCRIPTABLE NS_IMETHOD ReceiveMessage(const char * msg, char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReceiveMessage(msg, _retval); }
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 nsCMSSecureMessage : public nsICMSSecureMessage
74 : {
75 : public:
76 : NS_DECL_ISUPPORTS
77 : NS_DECL_NSICMSSECUREMESSAGE
78 :
79 : nsCMSSecureMessage();
80 :
81 : private:
82 : ~nsCMSSecureMessage();
83 :
84 : protected:
85 : /* additional members */
86 : };
87 :
88 : /* Implementation file */
89 : NS_IMPL_ISUPPORTS1(nsCMSSecureMessage, nsICMSSecureMessage)
90 :
91 : nsCMSSecureMessage::nsCMSSecureMessage()
92 : {
93 : /* member initializers and constructor code */
94 : }
95 :
96 : nsCMSSecureMessage::~nsCMSSecureMessage()
97 : {
98 : /* destructor code */
99 : }
100 :
101 : /* string getCertByPrefID (in string certID); */
102 : NS_IMETHODIMP nsCMSSecureMessage::GetCertByPrefID(const char * certID, char * *_retval NS_OUTPARAM)
103 : {
104 : return NS_ERROR_NOT_IMPLEMENTED;
105 : }
106 :
107 : /* nsIX509Cert decodeCert (in string value); */
108 : NS_IMETHODIMP nsCMSSecureMessage::DecodeCert(const char * value, nsIX509Cert * *_retval NS_OUTPARAM)
109 : {
110 : return NS_ERROR_NOT_IMPLEMENTED;
111 : }
112 :
113 : /* string sendMessage (in string msg, in string cert); */
114 : NS_IMETHODIMP nsCMSSecureMessage::SendMessage(const char * msg, const char * cert, char * *_retval NS_OUTPARAM)
115 : {
116 : return NS_ERROR_NOT_IMPLEMENTED;
117 : }
118 :
119 : /* string receiveMessage (in string msg); */
120 : NS_IMETHODIMP nsCMSSecureMessage::ReceiveMessage(const char * msg, char * *_retval NS_OUTPARAM)
121 : {
122 : return NS_ERROR_NOT_IMPLEMENTED;
123 : }
124 :
125 : /* End of implementation class template. */
126 : #endif
127 :
128 : #define NS_CMSSECUREMESSAGE_CONTRACTID "@mozilla.org/nsCMSSecureMessage;1"
129 :
130 : #endif /* __gen_nsICMSSecureMessage_h__ */
|