Go to the documentation of this file.
27 #ifndef __SB_REMOTEFORWARDINGMACROS_H__
28 #define __SB_REMOTEFORWARDINGMACROS_H__
30 #define NS_FORWARD_SAFE_SBILIBRARYRESOURCE_NO_SETPROPERTY(_to) \
31 NS_FORWARD_SAFE_SBILIBRARYRESOURCE_NO_SETPROPERTY_SETPROPERTIES(_to) \
32 NS_IMETHOD SetProperties(sbIPropertyArray *aProperties) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetProperties(aProperties); }
34 #define NS_FORWARD_SAFE_SBILIBRARYRESOURCE_NO_SETPROPERTY_SETPROPERTIES(_to) \
35 NS_FORWARD_SAFE_SBILIBRARYRESOURCE_NO_SETGETPROPERTY_SETPROPERTIES(_to) \
36 NS_IMETHOD GetProperty(const nsAString & aName, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProperty(aName, _retval); } \
38 #define NS_FORWARD_SAFE_SBILIBRARYRESOURCE_NO_SETGETPROPERTY_SETPROPERTIES(_to) \
39 NS_IMETHOD GetGuid(nsAString & aGuid) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGuid(aGuid); } \
40 NS_IMETHOD GetCreated(PRInt64 *aCreated) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCreated(aCreated); } \
41 NS_IMETHOD GetUpdated(PRInt64 *aUpdated) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUpdated(aUpdated); } \
42 NS_IMETHOD GetUserEditable(PRBool *aUserEditable) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUserEditable(aUserEditable); } \
43 NS_IMETHOD GetPropertyIDs(nsIStringEnumerator * *aPropertyIDs) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyIDs(aPropertyIDs); } \
44 NS_IMETHOD GetProperties(sbIPropertyArray *aPropertyIDs, sbIPropertyArray **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProperties(aPropertyIDs, _retval); } \
45 NS_IMETHOD Equals(sbILibraryResource *aOtherLibraryResource, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Equals(aOtherLibraryResource, _retval); }
47 #endif // __SB_REMOTEFORWARDINGMACROS_H__