LCOV - code coverage report
Current view: directory - objdir/dist/include - nsISmsService.h (source / functions) Found Hit Coverage
Test: app.info Lines: 1 1 100.0 %
Date: 2012-06-02 Functions: 1 1 100.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/sms/interfaces/nsISmsService.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsISmsService_h__
       6                 : #define __gen_nsISmsService_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                 : class nsIDOMMozSmsMessage; /* forward declaration */
      20                 : 
      21                 : #define SMS_SERVICE_CID { 0xbada3cb8, 0xa568, 0x4dff, { 0xb5, 0x43, 0x52, 0xbb, 0xb3, 0x14, 0x31, 0x21 } }
      22                 : #define SMS_SERVICE_CONTRACTID "@mozilla.org/sms/smsservice;1"
      23                 : 
      24                 : /* starting interface:    nsISmsService */
      25                 : #define NS_ISMSSERVICE_IID_STR "a0fbbe74-5d61-4b7e-b7ab-9b5224f9e5e9"
      26                 : 
      27                 : #define NS_ISMSSERVICE_IID \
      28                 :   {0xa0fbbe74, 0x5d61, 0x4b7e, \
      29                 :     { 0xb7, 0xab, 0x9b, 0x52, 0x24, 0xf9, 0xe5, 0xe9 }}
      30                 : 
      31               1 : class NS_NO_VTABLE NS_SCRIPTABLE nsISmsService : public nsISupports {
      32                 :  public: 
      33                 : 
      34                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISMSSERVICE_IID)
      35                 : 
      36                 :   /* boolean hasSupport (); */
      37                 :   NS_SCRIPTABLE NS_IMETHOD HasSupport(bool *_retval NS_OUTPARAM) = 0;
      38                 : 
      39                 :   /* unsigned short getNumberOfMessagesForText (in DOMString text); */
      40                 :   NS_SCRIPTABLE NS_IMETHOD GetNumberOfMessagesForText(const nsAString & text, PRUint16 *_retval NS_OUTPARAM) = 0;
      41                 : 
      42                 :   /* void send (in DOMString number, in DOMString message, in long requestId, [optional] in unsigned long long processId); */
      43                 :   NS_SCRIPTABLE NS_IMETHOD Send(const nsAString & number, const nsAString & message, PRInt32 requestId, PRUint64 processId) = 0;
      44                 : 
      45                 :   /* [implicit_jscontext] nsIDOMMozSmsMessage createSmsMessage (in long id, in DOMString delivery, in DOMString sender, in DOMString receiver, in DOMString body, in jsval timestamp); */
      46                 :   NS_SCRIPTABLE NS_IMETHOD CreateSmsMessage(PRInt32 id, const nsAString & delivery, const nsAString & sender, const nsAString & receiver, const nsAString & body, const JS::Value & timestamp, JSContext* cx, nsIDOMMozSmsMessage * *_retval NS_OUTPARAM) = 0;
      47                 : 
      48                 : };
      49                 : 
      50                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsISmsService, NS_ISMSSERVICE_IID)
      51                 : 
      52                 : /* Use this macro when declaring classes that implement this interface. */
      53                 : #define NS_DECL_NSISMSSERVICE \
      54                 :   NS_SCRIPTABLE NS_IMETHOD HasSupport(bool *_retval NS_OUTPARAM); \
      55                 :   NS_SCRIPTABLE NS_IMETHOD GetNumberOfMessagesForText(const nsAString & text, PRUint16 *_retval NS_OUTPARAM); \
      56                 :   NS_SCRIPTABLE NS_IMETHOD Send(const nsAString & number, const nsAString & message, PRInt32 requestId, PRUint64 processId); \
      57                 :   NS_SCRIPTABLE NS_IMETHOD CreateSmsMessage(PRInt32 id, const nsAString & delivery, const nsAString & sender, const nsAString & receiver, const nsAString & body, const JS::Value & timestamp, JSContext* cx, nsIDOMMozSmsMessage * *_retval NS_OUTPARAM); 
      58                 : 
      59                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      60                 : #define NS_FORWARD_NSISMSSERVICE(_to) \
      61                 :   NS_SCRIPTABLE NS_IMETHOD HasSupport(bool *_retval NS_OUTPARAM) { return _to HasSupport(_retval); } \
      62                 :   NS_SCRIPTABLE NS_IMETHOD GetNumberOfMessagesForText(const nsAString & text, PRUint16 *_retval NS_OUTPARAM) { return _to GetNumberOfMessagesForText(text, _retval); } \
      63                 :   NS_SCRIPTABLE NS_IMETHOD Send(const nsAString & number, const nsAString & message, PRInt32 requestId, PRUint64 processId) { return _to Send(number, message, requestId, processId); } \
      64                 :   NS_SCRIPTABLE NS_IMETHOD CreateSmsMessage(PRInt32 id, const nsAString & delivery, const nsAString & sender, const nsAString & receiver, const nsAString & body, const JS::Value & timestamp, JSContext* cx, nsIDOMMozSmsMessage * *_retval NS_OUTPARAM) { return _to CreateSmsMessage(id, delivery, sender, receiver, body, timestamp, cx, _retval); } 
      65                 : 
      66                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      67                 : #define NS_FORWARD_SAFE_NSISMSSERVICE(_to) \
      68                 :   NS_SCRIPTABLE NS_IMETHOD HasSupport(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->HasSupport(_retval); } \
      69                 :   NS_SCRIPTABLE NS_IMETHOD GetNumberOfMessagesForText(const nsAString & text, PRUint16 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumberOfMessagesForText(text, _retval); } \
      70                 :   NS_SCRIPTABLE NS_IMETHOD Send(const nsAString & number, const nsAString & message, PRInt32 requestId, PRUint64 processId) { return !_to ? NS_ERROR_NULL_POINTER : _to->Send(number, message, requestId, processId); } \
      71                 :   NS_SCRIPTABLE NS_IMETHOD CreateSmsMessage(PRInt32 id, const nsAString & delivery, const nsAString & sender, const nsAString & receiver, const nsAString & body, const JS::Value & timestamp, JSContext* cx, nsIDOMMozSmsMessage * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateSmsMessage(id, delivery, sender, receiver, body, timestamp, cx, _retval); } 
      72                 : 
      73                 : #if 0
      74                 : /* Use the code below as a template for the implementation class for this interface. */
      75                 : 
      76                 : /* Header file */
      77                 : class nsSmsService : public nsISmsService
      78                 : {
      79                 : public:
      80                 :   NS_DECL_ISUPPORTS
      81                 :   NS_DECL_NSISMSSERVICE
      82                 : 
      83                 :   nsSmsService();
      84                 : 
      85                 : private:
      86                 :   ~nsSmsService();
      87                 : 
      88                 : protected:
      89                 :   /* additional members */
      90                 : };
      91                 : 
      92                 : /* Implementation file */
      93                 : NS_IMPL_ISUPPORTS1(nsSmsService, nsISmsService)
      94                 : 
      95                 : nsSmsService::nsSmsService()
      96                 : {
      97                 :   /* member initializers and constructor code */
      98                 : }
      99                 : 
     100                 : nsSmsService::~nsSmsService()
     101                 : {
     102                 :   /* destructor code */
     103                 : }
     104                 : 
     105                 : /* boolean hasSupport (); */
     106                 : NS_IMETHODIMP nsSmsService::HasSupport(bool *_retval NS_OUTPARAM)
     107                 : {
     108                 :     return NS_ERROR_NOT_IMPLEMENTED;
     109                 : }
     110                 : 
     111                 : /* unsigned short getNumberOfMessagesForText (in DOMString text); */
     112                 : NS_IMETHODIMP nsSmsService::GetNumberOfMessagesForText(const nsAString & text, PRUint16 *_retval NS_OUTPARAM)
     113                 : {
     114                 :     return NS_ERROR_NOT_IMPLEMENTED;
     115                 : }
     116                 : 
     117                 : /* void send (in DOMString number, in DOMString message, in long requestId, [optional] in unsigned long long processId); */
     118                 : NS_IMETHODIMP nsSmsService::Send(const nsAString & number, const nsAString & message, PRInt32 requestId, PRUint64 processId)
     119                 : {
     120                 :     return NS_ERROR_NOT_IMPLEMENTED;
     121                 : }
     122                 : 
     123                 : /* [implicit_jscontext] nsIDOMMozSmsMessage createSmsMessage (in long id, in DOMString delivery, in DOMString sender, in DOMString receiver, in DOMString body, in jsval timestamp); */
     124                 : NS_IMETHODIMP nsSmsService::CreateSmsMessage(PRInt32 id, const nsAString & delivery, const nsAString & sender, const nsAString & receiver, const nsAString & body, const JS::Value & timestamp, JSContext* cx, nsIDOMMozSmsMessage * *_retval NS_OUTPARAM)
     125                 : {
     126                 :     return NS_ERROR_NOT_IMPLEMENTED;
     127                 : }
     128                 : 
     129                 : /* End of implementation class template. */
     130                 : #endif
     131                 : 
     132                 : 
     133                 : #endif /* __gen_nsISmsService_h__ */

Generated by: LCOV version 1.7