1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/sms/interfaces/nsIDOMSmsMessage.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMSmsMessage_h__
6 : #define __gen_nsIDOMSmsMessage_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #include "jspubtd.h"
14 :
15 : /* For IDL files that don't want to include root IDL files. */
16 : #ifndef NS_NO_VTABLE
17 : #define NS_NO_VTABLE
18 : #endif
19 :
20 : /* starting interface: nsIDOMMozSmsMessage */
21 : #define NS_IDOMMOZSMSMESSAGE_IID_STR "20da0c51-2224-49ae-afe9-4b309c6d8f84"
22 :
23 : #define NS_IDOMMOZSMSMESSAGE_IID \
24 : {0x20da0c51, 0x2224, 0x49ae, \
25 : { 0xaf, 0xe9, 0x4b, 0x30, 0x9c, 0x6d, 0x8f, 0x84 }}
26 :
27 4 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMMozSmsMessage : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMMOZSMSMESSAGE_IID)
31 :
32 : /* readonly attribute long id; */
33 : NS_SCRIPTABLE NS_IMETHOD GetId(PRInt32 *aId) = 0;
34 :
35 : /* readonly attribute DOMString delivery; */
36 : NS_SCRIPTABLE NS_IMETHOD GetDelivery(nsAString & aDelivery) = 0;
37 :
38 : /* readonly attribute DOMString sender; */
39 : NS_SCRIPTABLE NS_IMETHOD GetSender(nsAString & aSender) = 0;
40 :
41 : /* readonly attribute DOMString receiver; */
42 : NS_SCRIPTABLE NS_IMETHOD GetReceiver(nsAString & aReceiver) = 0;
43 :
44 : /* readonly attribute DOMString body; */
45 : NS_SCRIPTABLE NS_IMETHOD GetBody(nsAString & aBody) = 0;
46 :
47 : /* [implicit_jscontext] readonly attribute jsval timestamp; */
48 : NS_SCRIPTABLE NS_IMETHOD GetTimestamp(JSContext* cx, JS::Value *aTimestamp) = 0;
49 :
50 : };
51 :
52 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMMozSmsMessage, NS_IDOMMOZSMSMESSAGE_IID)
53 :
54 : /* Use this macro when declaring classes that implement this interface. */
55 : #define NS_DECL_NSIDOMMOZSMSMESSAGE \
56 : NS_SCRIPTABLE NS_IMETHOD GetId(PRInt32 *aId); \
57 : NS_SCRIPTABLE NS_IMETHOD GetDelivery(nsAString & aDelivery); \
58 : NS_SCRIPTABLE NS_IMETHOD GetSender(nsAString & aSender); \
59 : NS_SCRIPTABLE NS_IMETHOD GetReceiver(nsAString & aReceiver); \
60 : NS_SCRIPTABLE NS_IMETHOD GetBody(nsAString & aBody); \
61 : NS_SCRIPTABLE NS_IMETHOD GetTimestamp(JSContext* cx, JS::Value *aTimestamp);
62 :
63 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
64 : #define NS_FORWARD_NSIDOMMOZSMSMESSAGE(_to) \
65 : NS_SCRIPTABLE NS_IMETHOD GetId(PRInt32 *aId) { return _to GetId(aId); } \
66 : NS_SCRIPTABLE NS_IMETHOD GetDelivery(nsAString & aDelivery) { return _to GetDelivery(aDelivery); } \
67 : NS_SCRIPTABLE NS_IMETHOD GetSender(nsAString & aSender) { return _to GetSender(aSender); } \
68 : NS_SCRIPTABLE NS_IMETHOD GetReceiver(nsAString & aReceiver) { return _to GetReceiver(aReceiver); } \
69 : NS_SCRIPTABLE NS_IMETHOD GetBody(nsAString & aBody) { return _to GetBody(aBody); } \
70 : NS_SCRIPTABLE NS_IMETHOD GetTimestamp(JSContext* cx, JS::Value *aTimestamp) { return _to GetTimestamp(cx, aTimestamp); }
71 :
72 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
73 : #define NS_FORWARD_SAFE_NSIDOMMOZSMSMESSAGE(_to) \
74 : NS_SCRIPTABLE NS_IMETHOD GetId(PRInt32 *aId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \
75 : NS_SCRIPTABLE NS_IMETHOD GetDelivery(nsAString & aDelivery) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDelivery(aDelivery); } \
76 : NS_SCRIPTABLE NS_IMETHOD GetSender(nsAString & aSender) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSender(aSender); } \
77 : NS_SCRIPTABLE NS_IMETHOD GetReceiver(nsAString & aReceiver) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReceiver(aReceiver); } \
78 : NS_SCRIPTABLE NS_IMETHOD GetBody(nsAString & aBody) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBody(aBody); } \
79 : NS_SCRIPTABLE NS_IMETHOD GetTimestamp(JSContext* cx, JS::Value *aTimestamp) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTimestamp(cx, aTimestamp); }
80 :
81 : #if 0
82 : /* Use the code below as a template for the implementation class for this interface. */
83 :
84 : /* Header file */
85 : class nsDOMMozSmsMessage : public nsIDOMMozSmsMessage
86 : {
87 : public:
88 : NS_DECL_ISUPPORTS
89 : NS_DECL_NSIDOMMOZSMSMESSAGE
90 :
91 : nsDOMMozSmsMessage();
92 :
93 : private:
94 : ~nsDOMMozSmsMessage();
95 :
96 : protected:
97 : /* additional members */
98 : };
99 :
100 : /* Implementation file */
101 : NS_IMPL_ISUPPORTS1(nsDOMMozSmsMessage, nsIDOMMozSmsMessage)
102 :
103 : nsDOMMozSmsMessage::nsDOMMozSmsMessage()
104 : {
105 : /* member initializers and constructor code */
106 : }
107 :
108 : nsDOMMozSmsMessage::~nsDOMMozSmsMessage()
109 : {
110 : /* destructor code */
111 : }
112 :
113 : /* readonly attribute long id; */
114 : NS_IMETHODIMP nsDOMMozSmsMessage::GetId(PRInt32 *aId)
115 : {
116 : return NS_ERROR_NOT_IMPLEMENTED;
117 : }
118 :
119 : /* readonly attribute DOMString delivery; */
120 : NS_IMETHODIMP nsDOMMozSmsMessage::GetDelivery(nsAString & aDelivery)
121 : {
122 : return NS_ERROR_NOT_IMPLEMENTED;
123 : }
124 :
125 : /* readonly attribute DOMString sender; */
126 : NS_IMETHODIMP nsDOMMozSmsMessage::GetSender(nsAString & aSender)
127 : {
128 : return NS_ERROR_NOT_IMPLEMENTED;
129 : }
130 :
131 : /* readonly attribute DOMString receiver; */
132 : NS_IMETHODIMP nsDOMMozSmsMessage::GetReceiver(nsAString & aReceiver)
133 : {
134 : return NS_ERROR_NOT_IMPLEMENTED;
135 : }
136 :
137 : /* readonly attribute DOMString body; */
138 : NS_IMETHODIMP nsDOMMozSmsMessage::GetBody(nsAString & aBody)
139 : {
140 : return NS_ERROR_NOT_IMPLEMENTED;
141 : }
142 :
143 : /* [implicit_jscontext] readonly attribute jsval timestamp; */
144 : NS_IMETHODIMP nsDOMMozSmsMessage::GetTimestamp(JSContext* cx, JS::Value *aTimestamp)
145 : {
146 : return NS_ERROR_NOT_IMPLEMENTED;
147 : }
148 :
149 : /* End of implementation class template. */
150 : #endif
151 :
152 :
153 : #endif /* __gen_nsIDOMSmsMessage_h__ */
|