1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/sms/interfaces/nsISmsDatabaseService.idl
3 : */
4 :
5 : #ifndef __gen_nsISmsDatabaseService_h__
6 : #define __gen_nsISmsDatabaseService_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 : #define SMS_DATABASE_SERVICE_CID \
18 : { 0x2454c2a1, 0xefdd, 0x4d96, \
19 : { 0x83, 0xbd, 0x51, 0xa2, 0x9a, 0x21, 0xf5, 0xab } }
20 : #define SMS_DATABASE_SERVICE_CONTRACTID "@mozilla.org/sms/smsdatabaseservice;1"
21 : class nsIDOMMozSmsFilter; /* forward declaration */
22 :
23 :
24 : /* starting interface: nsISmsDatabaseService */
25 : #define NS_ISMSDATABASESERVICE_IID_STR "74d6ff05-818a-4179-a745-6258e1c3cd08"
26 :
27 : #define NS_ISMSDATABASESERVICE_IID \
28 : {0x74d6ff05, 0x818a, 0x4179, \
29 : { 0xa7, 0x45, 0x62, 0x58, 0xe1, 0xc3, 0xcd, 0x08 }}
30 :
31 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsISmsDatabaseService : public nsISupports {
32 : public:
33 :
34 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISMSDATABASESERVICE_IID)
35 :
36 : /* long saveReceivedMessage (in DOMString aSender, in DOMString aBody, in unsigned long long aDate); */
37 : NS_SCRIPTABLE NS_IMETHOD SaveReceivedMessage(const nsAString & aSender, const nsAString & aBody, PRUint64 aDate, PRInt32 *_retval NS_OUTPARAM) = 0;
38 :
39 : /* long saveSentMessage (in DOMString aReceiver, in DOMString aBody, in unsigned long long aDate); */
40 : NS_SCRIPTABLE NS_IMETHOD SaveSentMessage(const nsAString & aReceiver, const nsAString & aBody, PRUint64 aDate, PRInt32 *_retval NS_OUTPARAM) = 0;
41 :
42 : /* [binaryname(GetMessageMoz)] void getMessage (in long messageId, in long requestId, [optional] in unsigned long long processId); */
43 : NS_SCRIPTABLE NS_IMETHOD GetMessageMoz(PRInt32 messageId, PRInt32 requestId, PRUint64 processId) = 0;
44 :
45 : /* void deleteMessage (in long messageId, in long requestId, [optional] in unsigned long long processId); */
46 : NS_SCRIPTABLE NS_IMETHOD DeleteMessage(PRInt32 messageId, PRInt32 requestId, PRUint64 processId) = 0;
47 :
48 : /* void createMessageList (in nsIDOMMozSmsFilter filter, in boolean reverse, in long requestId, [optional] in unsigned long long processId); */
49 : NS_SCRIPTABLE NS_IMETHOD CreateMessageList(nsIDOMMozSmsFilter *filter, bool reverse, PRInt32 requestId, PRUint64 processId) = 0;
50 :
51 : /* void getNextMessageInList (in long listId, in long requestId, [optional] in unsigned long long processId); */
52 : NS_SCRIPTABLE NS_IMETHOD GetNextMessageInList(PRInt32 listId, PRInt32 requestId, PRUint64 processId) = 0;
53 :
54 : /* void clearMessageList (in long listId); */
55 : NS_SCRIPTABLE NS_IMETHOD ClearMessageList(PRInt32 listId) = 0;
56 :
57 : };
58 :
59 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISmsDatabaseService, NS_ISMSDATABASESERVICE_IID)
60 :
61 : /* Use this macro when declaring classes that implement this interface. */
62 : #define NS_DECL_NSISMSDATABASESERVICE \
63 : NS_SCRIPTABLE NS_IMETHOD SaveReceivedMessage(const nsAString & aSender, const nsAString & aBody, PRUint64 aDate, PRInt32 *_retval NS_OUTPARAM); \
64 : NS_SCRIPTABLE NS_IMETHOD SaveSentMessage(const nsAString & aReceiver, const nsAString & aBody, PRUint64 aDate, PRInt32 *_retval NS_OUTPARAM); \
65 : NS_SCRIPTABLE NS_IMETHOD GetMessageMoz(PRInt32 messageId, PRInt32 requestId, PRUint64 processId); \
66 : NS_SCRIPTABLE NS_IMETHOD DeleteMessage(PRInt32 messageId, PRInt32 requestId, PRUint64 processId); \
67 : NS_SCRIPTABLE NS_IMETHOD CreateMessageList(nsIDOMMozSmsFilter *filter, bool reverse, PRInt32 requestId, PRUint64 processId); \
68 : NS_SCRIPTABLE NS_IMETHOD GetNextMessageInList(PRInt32 listId, PRInt32 requestId, PRUint64 processId); \
69 : NS_SCRIPTABLE NS_IMETHOD ClearMessageList(PRInt32 listId);
70 :
71 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
72 : #define NS_FORWARD_NSISMSDATABASESERVICE(_to) \
73 : NS_SCRIPTABLE NS_IMETHOD SaveReceivedMessage(const nsAString & aSender, const nsAString & aBody, PRUint64 aDate, PRInt32 *_retval NS_OUTPARAM) { return _to SaveReceivedMessage(aSender, aBody, aDate, _retval); } \
74 : NS_SCRIPTABLE NS_IMETHOD SaveSentMessage(const nsAString & aReceiver, const nsAString & aBody, PRUint64 aDate, PRInt32 *_retval NS_OUTPARAM) { return _to SaveSentMessage(aReceiver, aBody, aDate, _retval); } \
75 : NS_SCRIPTABLE NS_IMETHOD GetMessageMoz(PRInt32 messageId, PRInt32 requestId, PRUint64 processId) { return _to GetMessageMoz(messageId, requestId, processId); } \
76 : NS_SCRIPTABLE NS_IMETHOD DeleteMessage(PRInt32 messageId, PRInt32 requestId, PRUint64 processId) { return _to DeleteMessage(messageId, requestId, processId); } \
77 : NS_SCRIPTABLE NS_IMETHOD CreateMessageList(nsIDOMMozSmsFilter *filter, bool reverse, PRInt32 requestId, PRUint64 processId) { return _to CreateMessageList(filter, reverse, requestId, processId); } \
78 : NS_SCRIPTABLE NS_IMETHOD GetNextMessageInList(PRInt32 listId, PRInt32 requestId, PRUint64 processId) { return _to GetNextMessageInList(listId, requestId, processId); } \
79 : NS_SCRIPTABLE NS_IMETHOD ClearMessageList(PRInt32 listId) { return _to ClearMessageList(listId); }
80 :
81 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
82 : #define NS_FORWARD_SAFE_NSISMSDATABASESERVICE(_to) \
83 : NS_SCRIPTABLE NS_IMETHOD SaveReceivedMessage(const nsAString & aSender, const nsAString & aBody, PRUint64 aDate, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->SaveReceivedMessage(aSender, aBody, aDate, _retval); } \
84 : NS_SCRIPTABLE NS_IMETHOD SaveSentMessage(const nsAString & aReceiver, const nsAString & aBody, PRUint64 aDate, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->SaveSentMessage(aReceiver, aBody, aDate, _retval); } \
85 : NS_SCRIPTABLE NS_IMETHOD GetMessageMoz(PRInt32 messageId, PRInt32 requestId, PRUint64 processId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessageMoz(messageId, requestId, processId); } \
86 : NS_SCRIPTABLE NS_IMETHOD DeleteMessage(PRInt32 messageId, PRInt32 requestId, PRUint64 processId) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteMessage(messageId, requestId, processId); } \
87 : NS_SCRIPTABLE NS_IMETHOD CreateMessageList(nsIDOMMozSmsFilter *filter, bool reverse, PRInt32 requestId, PRUint64 processId) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateMessageList(filter, reverse, requestId, processId); } \
88 : NS_SCRIPTABLE NS_IMETHOD GetNextMessageInList(PRInt32 listId, PRInt32 requestId, PRUint64 processId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNextMessageInList(listId, requestId, processId); } \
89 : NS_SCRIPTABLE NS_IMETHOD ClearMessageList(PRInt32 listId) { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearMessageList(listId); }
90 :
91 : #if 0
92 : /* Use the code below as a template for the implementation class for this interface. */
93 :
94 : /* Header file */
95 : class nsSmsDatabaseService : public nsISmsDatabaseService
96 : {
97 : public:
98 : NS_DECL_ISUPPORTS
99 : NS_DECL_NSISMSDATABASESERVICE
100 :
101 : nsSmsDatabaseService();
102 :
103 : private:
104 : ~nsSmsDatabaseService();
105 :
106 : protected:
107 : /* additional members */
108 : };
109 :
110 : /* Implementation file */
111 : NS_IMPL_ISUPPORTS1(nsSmsDatabaseService, nsISmsDatabaseService)
112 :
113 : nsSmsDatabaseService::nsSmsDatabaseService()
114 : {
115 : /* member initializers and constructor code */
116 : }
117 :
118 : nsSmsDatabaseService::~nsSmsDatabaseService()
119 : {
120 : /* destructor code */
121 : }
122 :
123 : /* long saveReceivedMessage (in DOMString aSender, in DOMString aBody, in unsigned long long aDate); */
124 : NS_IMETHODIMP nsSmsDatabaseService::SaveReceivedMessage(const nsAString & aSender, const nsAString & aBody, PRUint64 aDate, PRInt32 *_retval NS_OUTPARAM)
125 : {
126 : return NS_ERROR_NOT_IMPLEMENTED;
127 : }
128 :
129 : /* long saveSentMessage (in DOMString aReceiver, in DOMString aBody, in unsigned long long aDate); */
130 : NS_IMETHODIMP nsSmsDatabaseService::SaveSentMessage(const nsAString & aReceiver, const nsAString & aBody, PRUint64 aDate, PRInt32 *_retval NS_OUTPARAM)
131 : {
132 : return NS_ERROR_NOT_IMPLEMENTED;
133 : }
134 :
135 : /* [binaryname(GetMessageMoz)] void getMessage (in long messageId, in long requestId, [optional] in unsigned long long processId); */
136 : NS_IMETHODIMP nsSmsDatabaseService::GetMessageMoz(PRInt32 messageId, PRInt32 requestId, PRUint64 processId)
137 : {
138 : return NS_ERROR_NOT_IMPLEMENTED;
139 : }
140 :
141 : /* void deleteMessage (in long messageId, in long requestId, [optional] in unsigned long long processId); */
142 : NS_IMETHODIMP nsSmsDatabaseService::DeleteMessage(PRInt32 messageId, PRInt32 requestId, PRUint64 processId)
143 : {
144 : return NS_ERROR_NOT_IMPLEMENTED;
145 : }
146 :
147 : /* void createMessageList (in nsIDOMMozSmsFilter filter, in boolean reverse, in long requestId, [optional] in unsigned long long processId); */
148 : NS_IMETHODIMP nsSmsDatabaseService::CreateMessageList(nsIDOMMozSmsFilter *filter, bool reverse, PRInt32 requestId, PRUint64 processId)
149 : {
150 : return NS_ERROR_NOT_IMPLEMENTED;
151 : }
152 :
153 : /* void getNextMessageInList (in long listId, in long requestId, [optional] in unsigned long long processId); */
154 : NS_IMETHODIMP nsSmsDatabaseService::GetNextMessageInList(PRInt32 listId, PRInt32 requestId, PRUint64 processId)
155 : {
156 : return NS_ERROR_NOT_IMPLEMENTED;
157 : }
158 :
159 : /* void clearMessageList (in long listId); */
160 : NS_IMETHODIMP nsSmsDatabaseService::ClearMessageList(PRInt32 listId)
161 : {
162 : return NS_ERROR_NOT_IMPLEMENTED;
163 : }
164 :
165 : /* End of implementation class template. */
166 : #endif
167 :
168 :
169 : #endif /* __gen_nsISmsDatabaseService_h__ */
|