/usr/include/thunderbird/nsIMobileMessageCallback.h is in thunderbird-dev 1:38.6.0+build1-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIMobileMessageCallback.idl
*/
#ifndef __gen_nsIMobileMessageCallback_h__
#define __gen_nsIMobileMessageCallback_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
/* starting interface: nsIMobileMessageCallback */
#define NS_IMOBILEMESSAGECALLBACK_IID_STR "35279dbc-9f1d-419f-b17a-230fcf49f0c7"
#define NS_IMOBILEMESSAGECALLBACK_IID \
{0x35279dbc, 0x9f1d, 0x419f, \
{ 0xb1, 0x7a, 0x23, 0x0f, 0xcf, 0x49, 0xf0, 0xc7 }}
class NS_NO_VTABLE nsIMobileMessageCallback : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMOBILEMESSAGECALLBACK_IID)
enum {
SUCCESS_NO_ERROR = 0U,
NO_SIGNAL_ERROR = 1U,
NOT_FOUND_ERROR = 2U,
UNKNOWN_ERROR = 3U,
INTERNAL_ERROR = 4U,
NO_SIM_CARD_ERROR = 5U,
RADIO_DISABLED_ERROR = 6U,
INVALID_ADDRESS_ERROR = 7U,
FDN_CHECK_ERROR = 8U,
NON_ACTIVE_SIM_CARD_ERROR = 9U,
STORAGE_FULL_ERROR = 10U,
SIM_NOT_MATCHED_ERROR = 11U
};
/* void notifyMessageSent (in nsISupports message); */
NS_IMETHOD NotifyMessageSent(nsISupports *message) = 0;
/* void notifySendMessageFailed (in long error, in nsISupports message); */
NS_IMETHOD NotifySendMessageFailed(int32_t error, nsISupports *message) = 0;
/* void notifyMessageGot (in nsISupports message); */
NS_IMETHOD NotifyMessageGot(nsISupports *message) = 0;
/* void notifyGetMessageFailed (in long error); */
NS_IMETHOD NotifyGetMessageFailed(int32_t error) = 0;
/* void notifyMessageDeleted ([array, size_is (count)] in boolean deleted, in uint32_t count); */
NS_IMETHOD NotifyMessageDeleted(bool *deleted, uint32_t count) = 0;
/* void notifyDeleteMessageFailed (in long error); */
NS_IMETHOD NotifyDeleteMessageFailed(int32_t error) = 0;
/* void notifyMessageMarkedRead (in boolean read); */
NS_IMETHOD NotifyMessageMarkedRead(bool read) = 0;
/* void notifyMarkMessageReadFailed (in long error); */
NS_IMETHOD NotifyMarkMessageReadFailed(int32_t error) = 0;
/* void notifySegmentInfoForTextGot (in long segments, in long charsPerSegment, in long charsAvailableInLastSegment); */
NS_IMETHOD NotifySegmentInfoForTextGot(int32_t segments, int32_t charsPerSegment, int32_t charsAvailableInLastSegment) = 0;
/* void notifyGetSegmentInfoForTextFailed (in long error); */
NS_IMETHOD NotifyGetSegmentInfoForTextFailed(int32_t error) = 0;
/* void notifyGetSmscAddress (in DOMString aSmscAddress); */
NS_IMETHOD NotifyGetSmscAddress(const nsAString & aSmscAddress) = 0;
/* void notifyGetSmscAddressFailed (in long error); */
NS_IMETHOD NotifyGetSmscAddressFailed(int32_t error) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIMobileMessageCallback, NS_IMOBILEMESSAGECALLBACK_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMOBILEMESSAGECALLBACK \
NS_IMETHOD NotifyMessageSent(nsISupports *message) override; \
NS_IMETHOD NotifySendMessageFailed(int32_t error, nsISupports *message) override; \
NS_IMETHOD NotifyMessageGot(nsISupports *message) override; \
NS_IMETHOD NotifyGetMessageFailed(int32_t error) override; \
NS_IMETHOD NotifyMessageDeleted(bool *deleted, uint32_t count) override; \
NS_IMETHOD NotifyDeleteMessageFailed(int32_t error) override; \
NS_IMETHOD NotifyMessageMarkedRead(bool read) override; \
NS_IMETHOD NotifyMarkMessageReadFailed(int32_t error) override; \
NS_IMETHOD NotifySegmentInfoForTextGot(int32_t segments, int32_t charsPerSegment, int32_t charsAvailableInLastSegment) override; \
NS_IMETHOD NotifyGetSegmentInfoForTextFailed(int32_t error) override; \
NS_IMETHOD NotifyGetSmscAddress(const nsAString & aSmscAddress) override; \
NS_IMETHOD NotifyGetSmscAddressFailed(int32_t error) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMOBILEMESSAGECALLBACK(_to) \
NS_IMETHOD NotifyMessageSent(nsISupports *message) override { return _to NotifyMessageSent(message); } \
NS_IMETHOD NotifySendMessageFailed(int32_t error, nsISupports *message) override { return _to NotifySendMessageFailed(error, message); } \
NS_IMETHOD NotifyMessageGot(nsISupports *message) override { return _to NotifyMessageGot(message); } \
NS_IMETHOD NotifyGetMessageFailed(int32_t error) override { return _to NotifyGetMessageFailed(error); } \
NS_IMETHOD NotifyMessageDeleted(bool *deleted, uint32_t count) override { return _to NotifyMessageDeleted(deleted, count); } \
NS_IMETHOD NotifyDeleteMessageFailed(int32_t error) override { return _to NotifyDeleteMessageFailed(error); } \
NS_IMETHOD NotifyMessageMarkedRead(bool read) override { return _to NotifyMessageMarkedRead(read); } \
NS_IMETHOD NotifyMarkMessageReadFailed(int32_t error) override { return _to NotifyMarkMessageReadFailed(error); } \
NS_IMETHOD NotifySegmentInfoForTextGot(int32_t segments, int32_t charsPerSegment, int32_t charsAvailableInLastSegment) override { return _to NotifySegmentInfoForTextGot(segments, charsPerSegment, charsAvailableInLastSegment); } \
NS_IMETHOD NotifyGetSegmentInfoForTextFailed(int32_t error) override { return _to NotifyGetSegmentInfoForTextFailed(error); } \
NS_IMETHOD NotifyGetSmscAddress(const nsAString & aSmscAddress) override { return _to NotifyGetSmscAddress(aSmscAddress); } \
NS_IMETHOD NotifyGetSmscAddressFailed(int32_t error) override { return _to NotifyGetSmscAddressFailed(error); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMOBILEMESSAGECALLBACK(_to) \
NS_IMETHOD NotifyMessageSent(nsISupports *message) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyMessageSent(message); } \
NS_IMETHOD NotifySendMessageFailed(int32_t error, nsISupports *message) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifySendMessageFailed(error, message); } \
NS_IMETHOD NotifyMessageGot(nsISupports *message) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyMessageGot(message); } \
NS_IMETHOD NotifyGetMessageFailed(int32_t error) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyGetMessageFailed(error); } \
NS_IMETHOD NotifyMessageDeleted(bool *deleted, uint32_t count) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyMessageDeleted(deleted, count); } \
NS_IMETHOD NotifyDeleteMessageFailed(int32_t error) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyDeleteMessageFailed(error); } \
NS_IMETHOD NotifyMessageMarkedRead(bool read) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyMessageMarkedRead(read); } \
NS_IMETHOD NotifyMarkMessageReadFailed(int32_t error) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyMarkMessageReadFailed(error); } \
NS_IMETHOD NotifySegmentInfoForTextGot(int32_t segments, int32_t charsPerSegment, int32_t charsAvailableInLastSegment) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifySegmentInfoForTextGot(segments, charsPerSegment, charsAvailableInLastSegment); } \
NS_IMETHOD NotifyGetSegmentInfoForTextFailed(int32_t error) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyGetSegmentInfoForTextFailed(error); } \
NS_IMETHOD NotifyGetSmscAddress(const nsAString & aSmscAddress) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyGetSmscAddress(aSmscAddress); } \
NS_IMETHOD NotifyGetSmscAddressFailed(int32_t error) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyGetSmscAddressFailed(error); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsMobileMessageCallback : public nsIMobileMessageCallback
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIMOBILEMESSAGECALLBACK
nsMobileMessageCallback();
private:
~nsMobileMessageCallback();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsMobileMessageCallback, nsIMobileMessageCallback)
nsMobileMessageCallback::nsMobileMessageCallback()
{
/* member initializers and constructor code */
}
nsMobileMessageCallback::~nsMobileMessageCallback()
{
/* destructor code */
}
/* void notifyMessageSent (in nsISupports message); */
NS_IMETHODIMP nsMobileMessageCallback::NotifyMessageSent(nsISupports *message)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifySendMessageFailed (in long error, in nsISupports message); */
NS_IMETHODIMP nsMobileMessageCallback::NotifySendMessageFailed(int32_t error, nsISupports *message)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyMessageGot (in nsISupports message); */
NS_IMETHODIMP nsMobileMessageCallback::NotifyMessageGot(nsISupports *message)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyGetMessageFailed (in long error); */
NS_IMETHODIMP nsMobileMessageCallback::NotifyGetMessageFailed(int32_t error)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyMessageDeleted ([array, size_is (count)] in boolean deleted, in uint32_t count); */
NS_IMETHODIMP nsMobileMessageCallback::NotifyMessageDeleted(bool *deleted, uint32_t count)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyDeleteMessageFailed (in long error); */
NS_IMETHODIMP nsMobileMessageCallback::NotifyDeleteMessageFailed(int32_t error)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyMessageMarkedRead (in boolean read); */
NS_IMETHODIMP nsMobileMessageCallback::NotifyMessageMarkedRead(bool read)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyMarkMessageReadFailed (in long error); */
NS_IMETHODIMP nsMobileMessageCallback::NotifyMarkMessageReadFailed(int32_t error)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifySegmentInfoForTextGot (in long segments, in long charsPerSegment, in long charsAvailableInLastSegment); */
NS_IMETHODIMP nsMobileMessageCallback::NotifySegmentInfoForTextGot(int32_t segments, int32_t charsPerSegment, int32_t charsAvailableInLastSegment)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyGetSegmentInfoForTextFailed (in long error); */
NS_IMETHODIMP nsMobileMessageCallback::NotifyGetSegmentInfoForTextFailed(int32_t error)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyGetSmscAddress (in DOMString aSmscAddress); */
NS_IMETHODIMP nsMobileMessageCallback::NotifyGetSmscAddress(const nsAString & aSmscAddress)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyGetSmscAddressFailed (in long error); */
NS_IMETHODIMP nsMobileMessageCallback::NotifyGetSmscAddressFailed(int32_t error)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIMobileMessageCallback_h__ */
|