Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsISecurityConsoleMessage.idl
3 : */
4 :
5 : #ifndef __gen_nsISecurityConsoleMessage_h__
6 : #define __gen_nsISecurityConsoleMessage_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 :
18 : /* starting interface: nsISecurityConsoleMessage */
19 : #define NS_ISECURITYCONSOLEMESSAGE_IID_STR "fe9fc9b6-dde2-11e2-a8f1-0a326188709b"
20 :
21 : #define NS_ISECURITYCONSOLEMESSAGE_IID \
22 : {0xfe9fc9b6, 0xdde2, 0x11e2, \
23 : { 0xa8, 0xf1, 0x0a, 0x32, 0x61, 0x88, 0x70, 0x9b }}
24 :
25 0 : class NS_NO_VTABLE nsISecurityConsoleMessage : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISECURITYCONSOLEMESSAGE_IID)
29 :
30 : /* attribute AString tag; */
31 : NS_IMETHOD GetTag(nsAString & aTag) = 0;
32 : NS_IMETHOD SetTag(const nsAString & aTag) = 0;
33 :
34 : /* attribute AString category; */
35 : NS_IMETHOD GetCategory(nsAString & aCategory) = 0;
36 : NS_IMETHOD SetCategory(const nsAString & aCategory) = 0;
37 :
38 : };
39 :
40 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISecurityConsoleMessage, NS_ISECURITYCONSOLEMESSAGE_IID)
41 :
42 : /* Use this macro when declaring classes that implement this interface. */
43 : #define NS_DECL_NSISECURITYCONSOLEMESSAGE \
44 : NS_IMETHOD GetTag(nsAString & aTag) override; \
45 : NS_IMETHOD SetTag(const nsAString & aTag) override; \
46 : NS_IMETHOD GetCategory(nsAString & aCategory) override; \
47 : NS_IMETHOD SetCategory(const nsAString & aCategory) override;
48 :
49 : /* Use this macro when declaring the members of this interface when the
50 : class doesn't implement the interface. This is useful for forwarding. */
51 : #define NS_DECL_NON_VIRTUAL_NSISECURITYCONSOLEMESSAGE \
52 : nsresult GetTag(nsAString & aTag); \
53 : nsresult SetTag(const nsAString & aTag); \
54 : nsresult GetCategory(nsAString & aCategory); \
55 : nsresult SetCategory(const nsAString & aCategory);
56 :
57 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
58 : #define NS_FORWARD_NSISECURITYCONSOLEMESSAGE(_to) \
59 : NS_IMETHOD GetTag(nsAString & aTag) override { return _to GetTag(aTag); } \
60 : NS_IMETHOD SetTag(const nsAString & aTag) override { return _to SetTag(aTag); } \
61 : NS_IMETHOD GetCategory(nsAString & aCategory) override { return _to GetCategory(aCategory); } \
62 : NS_IMETHOD SetCategory(const nsAString & aCategory) override { return _to SetCategory(aCategory); }
63 :
64 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
65 : #define NS_FORWARD_SAFE_NSISECURITYCONSOLEMESSAGE(_to) \
66 : NS_IMETHOD GetTag(nsAString & aTag) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTag(aTag); } \
67 : NS_IMETHOD SetTag(const nsAString & aTag) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTag(aTag); } \
68 : NS_IMETHOD GetCategory(nsAString & aCategory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCategory(aCategory); } \
69 : NS_IMETHOD SetCategory(const nsAString & aCategory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCategory(aCategory); }
70 :
71 : #if 0
72 : /* Use the code below as a template for the implementation class for this interface. */
73 :
74 : /* Header file */
75 : class nsSecurityConsoleMessage : public nsISecurityConsoleMessage
76 : {
77 : public:
78 : NS_DECL_ISUPPORTS
79 : NS_DECL_NSISECURITYCONSOLEMESSAGE
80 :
81 : nsSecurityConsoleMessage();
82 :
83 : private:
84 : ~nsSecurityConsoleMessage();
85 :
86 : protected:
87 : /* additional members */
88 : };
89 :
90 : /* Implementation file */
91 : NS_IMPL_ISUPPORTS(nsSecurityConsoleMessage, nsISecurityConsoleMessage)
92 :
93 : nsSecurityConsoleMessage::nsSecurityConsoleMessage()
94 : {
95 : /* member initializers and constructor code */
96 : }
97 :
98 : nsSecurityConsoleMessage::~nsSecurityConsoleMessage()
99 : {
100 : /* destructor code */
101 : }
102 :
103 : /* attribute AString tag; */
104 : NS_IMETHODIMP nsSecurityConsoleMessage::GetTag(nsAString & aTag)
105 : {
106 : return NS_ERROR_NOT_IMPLEMENTED;
107 : }
108 : NS_IMETHODIMP nsSecurityConsoleMessage::SetTag(const nsAString & aTag)
109 : {
110 : return NS_ERROR_NOT_IMPLEMENTED;
111 : }
112 :
113 : /* attribute AString category; */
114 : NS_IMETHODIMP nsSecurityConsoleMessage::GetCategory(nsAString & aCategory)
115 : {
116 : return NS_ERROR_NOT_IMPLEMENTED;
117 : }
118 : NS_IMETHODIMP nsSecurityConsoleMessage::SetCategory(const nsAString & aCategory)
119 : {
120 : return NS_ERROR_NOT_IMPLEMENTED;
121 : }
122 :
123 : /* End of implementation class template. */
124 : #endif
125 :
126 : #define NS_SECURITY_CONSOLE_MESSAGE_CONTRACTID "@mozilla.org/securityconsole/message;1"
127 :
128 : #endif /* __gen_nsISecurityConsoleMessage_h__ */
|