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

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/base/public/nsIServerSocket.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIServerSocket_h__
       6                 : #define __gen_nsIServerSocket_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                 : class nsIServerSocketListener; /* forward declaration */
      18                 : 
      19                 : class nsISocketTransport; /* forward declaration */
      20                 : 
      21                 : 
      22                 : /* starting interface:    nsIServerSocket */
      23                 : #define NS_ISERVERSOCKET_IID_STR "a5b64be0-d563-46bb-ae95-132e46fcd42f"
      24                 : 
      25                 : #define NS_ISERVERSOCKET_IID \
      26                 :   {0xa5b64be0, 0xd563, 0x46bb, \
      27                 :     { 0xae, 0x95, 0x13, 0x2e, 0x46, 0xfc, 0xd4, 0x2f }}
      28                 : 
      29             421 : class NS_NO_VTABLE NS_SCRIPTABLE nsIServerSocket : public nsISupports {
      30                 :  public: 
      31                 : 
      32                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISERVERSOCKET_IID)
      33                 : 
      34                 :   /* void init (in long aPort, in boolean aLoopbackOnly, in long aBackLog); */
      35                 :   NS_SCRIPTABLE NS_IMETHOD Init(PRInt32 aPort, bool aLoopbackOnly, PRInt32 aBackLog) = 0;
      36                 : 
      37                 :   /* [noscript] void initWithAddress ([const] in PRNetAddrPtr aAddr, in long aBackLog); */
      38                 :   NS_IMETHOD InitWithAddress(const union PRNetAddr *aAddr, PRInt32 aBackLog) = 0;
      39                 : 
      40                 :   /* void close (); */
      41                 :   NS_SCRIPTABLE NS_IMETHOD Close(void) = 0;
      42                 : 
      43                 :   /* void asyncListen (in nsIServerSocketListener aListener); */
      44                 :   NS_SCRIPTABLE NS_IMETHOD AsyncListen(nsIServerSocketListener *aListener) = 0;
      45                 : 
      46                 :   /* readonly attribute long port; */
      47                 :   NS_SCRIPTABLE NS_IMETHOD GetPort(PRInt32 *aPort) = 0;
      48                 : 
      49                 :   /* [noscript] PRNetAddr getAddress (); */
      50                 :   NS_IMETHOD GetAddress(union PRNetAddr *_retval NS_OUTPARAM) = 0;
      51                 : 
      52                 : };
      53                 : 
      54                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIServerSocket, NS_ISERVERSOCKET_IID)
      55                 : 
      56                 : /* Use this macro when declaring classes that implement this interface. */
      57                 : #define NS_DECL_NSISERVERSOCKET \
      58                 :   NS_SCRIPTABLE NS_IMETHOD Init(PRInt32 aPort, bool aLoopbackOnly, PRInt32 aBackLog); \
      59                 :   NS_IMETHOD InitWithAddress(const union PRNetAddr *aAddr, PRInt32 aBackLog); \
      60                 :   NS_SCRIPTABLE NS_IMETHOD Close(void); \
      61                 :   NS_SCRIPTABLE NS_IMETHOD AsyncListen(nsIServerSocketListener *aListener); \
      62                 :   NS_SCRIPTABLE NS_IMETHOD GetPort(PRInt32 *aPort); \
      63                 :   NS_IMETHOD GetAddress(union PRNetAddr *_retval NS_OUTPARAM); 
      64                 : 
      65                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      66                 : #define NS_FORWARD_NSISERVERSOCKET(_to) \
      67                 :   NS_SCRIPTABLE NS_IMETHOD Init(PRInt32 aPort, bool aLoopbackOnly, PRInt32 aBackLog) { return _to Init(aPort, aLoopbackOnly, aBackLog); } \
      68                 :   NS_IMETHOD InitWithAddress(const union PRNetAddr *aAddr, PRInt32 aBackLog) { return _to InitWithAddress(aAddr, aBackLog); } \
      69                 :   NS_SCRIPTABLE NS_IMETHOD Close(void) { return _to Close(); } \
      70                 :   NS_SCRIPTABLE NS_IMETHOD AsyncListen(nsIServerSocketListener *aListener) { return _to AsyncListen(aListener); } \
      71                 :   NS_SCRIPTABLE NS_IMETHOD GetPort(PRInt32 *aPort) { return _to GetPort(aPort); } \
      72                 :   NS_IMETHOD GetAddress(union PRNetAddr *_retval NS_OUTPARAM) { return _to GetAddress(_retval); } 
      73                 : 
      74                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      75                 : #define NS_FORWARD_SAFE_NSISERVERSOCKET(_to) \
      76                 :   NS_SCRIPTABLE NS_IMETHOD Init(PRInt32 aPort, bool aLoopbackOnly, PRInt32 aBackLog) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aPort, aLoopbackOnly, aBackLog); } \
      77                 :   NS_IMETHOD InitWithAddress(const union PRNetAddr *aAddr, PRInt32 aBackLog) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitWithAddress(aAddr, aBackLog); } \
      78                 :   NS_SCRIPTABLE NS_IMETHOD Close(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Close(); } \
      79                 :   NS_SCRIPTABLE NS_IMETHOD AsyncListen(nsIServerSocketListener *aListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncListen(aListener); } \
      80                 :   NS_SCRIPTABLE NS_IMETHOD GetPort(PRInt32 *aPort) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPort(aPort); } \
      81                 :   NS_IMETHOD GetAddress(union PRNetAddr *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAddress(_retval); } 
      82                 : 
      83                 : #if 0
      84                 : /* Use the code below as a template for the implementation class for this interface. */
      85                 : 
      86                 : /* Header file */
      87                 : class nsServerSocket : public nsIServerSocket
      88                 : {
      89                 : public:
      90                 :   NS_DECL_ISUPPORTS
      91                 :   NS_DECL_NSISERVERSOCKET
      92                 : 
      93                 :   nsServerSocket();
      94                 : 
      95                 : private:
      96                 :   ~nsServerSocket();
      97                 : 
      98                 : protected:
      99                 :   /* additional members */
     100                 : };
     101                 : 
     102                 : /* Implementation file */
     103                 : NS_IMPL_ISUPPORTS1(nsServerSocket, nsIServerSocket)
     104                 : 
     105                 : nsServerSocket::nsServerSocket()
     106                 : {
     107                 :   /* member initializers and constructor code */
     108                 : }
     109                 : 
     110                 : nsServerSocket::~nsServerSocket()
     111                 : {
     112                 :   /* destructor code */
     113                 : }
     114                 : 
     115                 : /* void init (in long aPort, in boolean aLoopbackOnly, in long aBackLog); */
     116                 : NS_IMETHODIMP nsServerSocket::Init(PRInt32 aPort, bool aLoopbackOnly, PRInt32 aBackLog)
     117                 : {
     118                 :     return NS_ERROR_NOT_IMPLEMENTED;
     119                 : }
     120                 : 
     121                 : /* [noscript] void initWithAddress ([const] in PRNetAddrPtr aAddr, in long aBackLog); */
     122                 : NS_IMETHODIMP nsServerSocket::InitWithAddress(const union PRNetAddr *aAddr, PRInt32 aBackLog)
     123                 : {
     124                 :     return NS_ERROR_NOT_IMPLEMENTED;
     125                 : }
     126                 : 
     127                 : /* void close (); */
     128                 : NS_IMETHODIMP nsServerSocket::Close()
     129                 : {
     130                 :     return NS_ERROR_NOT_IMPLEMENTED;
     131                 : }
     132                 : 
     133                 : /* void asyncListen (in nsIServerSocketListener aListener); */
     134                 : NS_IMETHODIMP nsServerSocket::AsyncListen(nsIServerSocketListener *aListener)
     135                 : {
     136                 :     return NS_ERROR_NOT_IMPLEMENTED;
     137                 : }
     138                 : 
     139                 : /* readonly attribute long port; */
     140                 : NS_IMETHODIMP nsServerSocket::GetPort(PRInt32 *aPort)
     141                 : {
     142                 :     return NS_ERROR_NOT_IMPLEMENTED;
     143                 : }
     144                 : 
     145                 : /* [noscript] PRNetAddr getAddress (); */
     146                 : NS_IMETHODIMP nsServerSocket::GetAddress(union PRNetAddr *_retval NS_OUTPARAM)
     147                 : {
     148                 :     return NS_ERROR_NOT_IMPLEMENTED;
     149                 : }
     150                 : 
     151                 : /* End of implementation class template. */
     152                 : #endif
     153                 : 
     154                 : 
     155                 : /* starting interface:    nsIServerSocketListener */
     156                 : #define NS_ISERVERSOCKETLISTENER_IID_STR "836d98ec-fee2-4bde-b609-abd5e966eabd"
     157                 : 
     158                 : #define NS_ISERVERSOCKETLISTENER_IID \
     159                 :   {0x836d98ec, 0xfee2, 0x4bde, \
     160                 :     { 0xb6, 0x09, 0xab, 0xd5, 0xe9, 0x66, 0xea, 0xbd }}
     161                 : 
     162             420 : class NS_NO_VTABLE NS_SCRIPTABLE nsIServerSocketListener : public nsISupports {
     163                 :  public: 
     164                 : 
     165                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISERVERSOCKETLISTENER_IID)
     166                 : 
     167                 :   /* void onSocketAccepted (in nsIServerSocket aServ, in nsISocketTransport aTransport); */
     168                 :   NS_SCRIPTABLE NS_IMETHOD OnSocketAccepted(nsIServerSocket *aServ, nsISocketTransport *aTransport) = 0;
     169                 : 
     170                 :   /* void onStopListening (in nsIServerSocket aServ, in nsresult aStatus); */
     171                 :   NS_SCRIPTABLE NS_IMETHOD OnStopListening(nsIServerSocket *aServ, nsresult aStatus) = 0;
     172                 : 
     173                 : };
     174                 : 
     175                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIServerSocketListener, NS_ISERVERSOCKETLISTENER_IID)
     176                 : 
     177                 : /* Use this macro when declaring classes that implement this interface. */
     178                 : #define NS_DECL_NSISERVERSOCKETLISTENER \
     179                 :   NS_SCRIPTABLE NS_IMETHOD OnSocketAccepted(nsIServerSocket *aServ, nsISocketTransport *aTransport); \
     180                 :   NS_SCRIPTABLE NS_IMETHOD OnStopListening(nsIServerSocket *aServ, nsresult aStatus); 
     181                 : 
     182                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     183                 : #define NS_FORWARD_NSISERVERSOCKETLISTENER(_to) \
     184                 :   NS_SCRIPTABLE NS_IMETHOD OnSocketAccepted(nsIServerSocket *aServ, nsISocketTransport *aTransport) { return _to OnSocketAccepted(aServ, aTransport); } \
     185                 :   NS_SCRIPTABLE NS_IMETHOD OnStopListening(nsIServerSocket *aServ, nsresult aStatus) { return _to OnStopListening(aServ, aStatus); } 
     186                 : 
     187                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     188                 : #define NS_FORWARD_SAFE_NSISERVERSOCKETLISTENER(_to) \
     189                 :   NS_SCRIPTABLE NS_IMETHOD OnSocketAccepted(nsIServerSocket *aServ, nsISocketTransport *aTransport) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnSocketAccepted(aServ, aTransport); } \
     190                 :   NS_SCRIPTABLE NS_IMETHOD OnStopListening(nsIServerSocket *aServ, nsresult aStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStopListening(aServ, aStatus); } 
     191                 : 
     192                 : #if 0
     193                 : /* Use the code below as a template for the implementation class for this interface. */
     194                 : 
     195                 : /* Header file */
     196                 : class nsServerSocketListener : public nsIServerSocketListener
     197                 : {
     198                 : public:
     199                 :   NS_DECL_ISUPPORTS
     200                 :   NS_DECL_NSISERVERSOCKETLISTENER
     201                 : 
     202                 :   nsServerSocketListener();
     203                 : 
     204                 : private:
     205                 :   ~nsServerSocketListener();
     206                 : 
     207                 : protected:
     208                 :   /* additional members */
     209                 : };
     210                 : 
     211                 : /* Implementation file */
     212                 : NS_IMPL_ISUPPORTS1(nsServerSocketListener, nsIServerSocketListener)
     213                 : 
     214                 : nsServerSocketListener::nsServerSocketListener()
     215                 : {
     216                 :   /* member initializers and constructor code */
     217                 : }
     218                 : 
     219                 : nsServerSocketListener::~nsServerSocketListener()
     220                 : {
     221                 :   /* destructor code */
     222                 : }
     223                 : 
     224                 : /* void onSocketAccepted (in nsIServerSocket aServ, in nsISocketTransport aTransport); */
     225                 : NS_IMETHODIMP nsServerSocketListener::OnSocketAccepted(nsIServerSocket *aServ, nsISocketTransport *aTransport)
     226                 : {
     227                 :     return NS_ERROR_NOT_IMPLEMENTED;
     228                 : }
     229                 : 
     230                 : /* void onStopListening (in nsIServerSocket aServ, in nsresult aStatus); */
     231                 : NS_IMETHODIMP nsServerSocketListener::OnStopListening(nsIServerSocket *aServ, nsresult aStatus)
     232                 : {
     233                 :     return NS_ERROR_NOT_IMPLEMENTED;
     234                 : }
     235                 : 
     236                 : /* End of implementation class template. */
     237                 : #endif
     238                 : 
     239                 : 
     240                 : #endif /* __gen_nsIServerSocket_h__ */

Generated by: LCOV version 1.7