LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIPresentationControlService.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 2 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIPresentationControlService.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIPresentationControlService_h__
       6             : #define __gen_nsIPresentationControlService_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 nsIPresentationControlChannel; /* forward declaration */
      18             : 
      19             : #define PRESENTATION_CONTROL_SERVICE_CONTACT_ID \
      20             :   "@mozilla.org/presentation/control-service;1"
      21             : 
      22             : /* starting interface:    nsITCPDeviceInfo */
      23             : #define NS_ITCPDEVICEINFO_IID_STR "296fd171-e4d0-4de0-99ff-ad8ed52ddef3"
      24             : 
      25             : #define NS_ITCPDEVICEINFO_IID \
      26             :   {0x296fd171, 0xe4d0, 0x4de0, \
      27             :     { 0x99, 0xff, 0xad, 0x8e, 0xd5, 0x2d, 0xde, 0xf3 }}
      28             : 
      29           0 : class NS_NO_VTABLE nsITCPDeviceInfo : public nsISupports {
      30             :  public:
      31             : 
      32             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITCPDEVICEINFO_IID)
      33             : 
      34             :   /* readonly attribute AUTF8String id; */
      35             :   NS_IMETHOD GetId(nsACString & aId) = 0;
      36             : 
      37             :   /* readonly attribute AUTF8String address; */
      38             :   NS_IMETHOD GetAddress(nsACString & aAddress) = 0;
      39             : 
      40             :   /* readonly attribute uint16_t port; */
      41             :   NS_IMETHOD GetPort(uint16_t *aPort) = 0;
      42             : 
      43             :   /* readonly attribute AUTF8String certFingerprint; */
      44             :   NS_IMETHOD GetCertFingerprint(nsACString & aCertFingerprint) = 0;
      45             : 
      46             : };
      47             : 
      48             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsITCPDeviceInfo, NS_ITCPDEVICEINFO_IID)
      49             : 
      50             : /* Use this macro when declaring classes that implement this interface. */
      51             : #define NS_DECL_NSITCPDEVICEINFO \
      52             :   NS_IMETHOD GetId(nsACString & aId) override; \
      53             :   NS_IMETHOD GetAddress(nsACString & aAddress) override; \
      54             :   NS_IMETHOD GetPort(uint16_t *aPort) override; \
      55             :   NS_IMETHOD GetCertFingerprint(nsACString & aCertFingerprint) override; 
      56             : 
      57             : /* Use this macro when declaring the members of this interface when the
      58             :    class doesn't implement the interface. This is useful for forwarding. */
      59             : #define NS_DECL_NON_VIRTUAL_NSITCPDEVICEINFO \
      60             :   nsresult GetId(nsACString & aId); \
      61             :   nsresult GetAddress(nsACString & aAddress); \
      62             :   nsresult GetPort(uint16_t *aPort); \
      63             :   nsresult GetCertFingerprint(nsACString & aCertFingerprint); 
      64             : 
      65             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      66             : #define NS_FORWARD_NSITCPDEVICEINFO(_to) \
      67             :   NS_IMETHOD GetId(nsACString & aId) override { return _to GetId(aId); } \
      68             :   NS_IMETHOD GetAddress(nsACString & aAddress) override { return _to GetAddress(aAddress); } \
      69             :   NS_IMETHOD GetPort(uint16_t *aPort) override { return _to GetPort(aPort); } \
      70             :   NS_IMETHOD GetCertFingerprint(nsACString & aCertFingerprint) override { return _to GetCertFingerprint(aCertFingerprint); } 
      71             : 
      72             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      73             : #define NS_FORWARD_SAFE_NSITCPDEVICEINFO(_to) \
      74             :   NS_IMETHOD GetId(nsACString & aId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \
      75             :   NS_IMETHOD GetAddress(nsACString & aAddress) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAddress(aAddress); } \
      76             :   NS_IMETHOD GetPort(uint16_t *aPort) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPort(aPort); } \
      77             :   NS_IMETHOD GetCertFingerprint(nsACString & aCertFingerprint) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCertFingerprint(aCertFingerprint); } 
      78             : 
      79             : #if 0
      80             : /* Use the code below as a template for the implementation class for this interface. */
      81             : 
      82             : /* Header file */
      83             : class nsTCPDeviceInfo : public nsITCPDeviceInfo
      84             : {
      85             : public:
      86             :   NS_DECL_ISUPPORTS
      87             :   NS_DECL_NSITCPDEVICEINFO
      88             : 
      89             :   nsTCPDeviceInfo();
      90             : 
      91             : private:
      92             :   ~nsTCPDeviceInfo();
      93             : 
      94             : protected:
      95             :   /* additional members */
      96             : };
      97             : 
      98             : /* Implementation file */
      99             : NS_IMPL_ISUPPORTS(nsTCPDeviceInfo, nsITCPDeviceInfo)
     100             : 
     101             : nsTCPDeviceInfo::nsTCPDeviceInfo()
     102             : {
     103             :   /* member initializers and constructor code */
     104             : }
     105             : 
     106             : nsTCPDeviceInfo::~nsTCPDeviceInfo()
     107             : {
     108             :   /* destructor code */
     109             : }
     110             : 
     111             : /* readonly attribute AUTF8String id; */
     112             : NS_IMETHODIMP nsTCPDeviceInfo::GetId(nsACString & aId)
     113             : {
     114             :     return NS_ERROR_NOT_IMPLEMENTED;
     115             : }
     116             : 
     117             : /* readonly attribute AUTF8String address; */
     118             : NS_IMETHODIMP nsTCPDeviceInfo::GetAddress(nsACString & aAddress)
     119             : {
     120             :     return NS_ERROR_NOT_IMPLEMENTED;
     121             : }
     122             : 
     123             : /* readonly attribute uint16_t port; */
     124             : NS_IMETHODIMP nsTCPDeviceInfo::GetPort(uint16_t *aPort)
     125             : {
     126             :     return NS_ERROR_NOT_IMPLEMENTED;
     127             : }
     128             : 
     129             : /* readonly attribute AUTF8String certFingerprint; */
     130             : NS_IMETHODIMP nsTCPDeviceInfo::GetCertFingerprint(nsACString & aCertFingerprint)
     131             : {
     132             :     return NS_ERROR_NOT_IMPLEMENTED;
     133             : }
     134             : 
     135             : /* End of implementation class template. */
     136             : #endif
     137             : 
     138             : 
     139             : /* starting interface:    nsIPresentationControlServerListener */
     140             : #define NS_IPRESENTATIONCONTROLSERVERLISTENER_IID_STR "09bddfaf-fcc2-4dc9-b33e-a509a1c2fb6d"
     141             : 
     142             : #define NS_IPRESENTATIONCONTROLSERVERLISTENER_IID \
     143             :   {0x09bddfaf, 0xfcc2, 0x4dc9, \
     144             :     { 0xb3, 0x3e, 0xa5, 0x09, 0xa1, 0xc2, 0xfb, 0x6d }}
     145             : 
     146           0 : class NS_NO_VTABLE nsIPresentationControlServerListener : public nsISupports {
     147             :  public:
     148             : 
     149             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRESENTATIONCONTROLSERVERLISTENER_IID)
     150             : 
     151             :   /* void onServerReady (in uint16_t aPort, in AUTF8String aCertFingerprint); */
     152             :   NS_IMETHOD OnServerReady(uint16_t aPort, const nsACString & aCertFingerprint) = 0;
     153             : 
     154             :   /* void onServerStopped (in nsresult aResult); */
     155             :   NS_IMETHOD OnServerStopped(nsresult aResult) = 0;
     156             : 
     157             :   /* void onSessionRequest (in nsITCPDeviceInfo aDeviceInfo, in DOMString aUrl, in DOMString aPresentationId, in nsIPresentationControlChannel aControlChannel); */
     158             :   NS_IMETHOD OnSessionRequest(nsITCPDeviceInfo *aDeviceInfo, const nsAString & aUrl, const nsAString & aPresentationId, nsIPresentationControlChannel *aControlChannel) = 0;
     159             : 
     160             :   /* void onTerminateRequest (in nsITCPDeviceInfo aDeviceInfo, in DOMString aPresentationId, in nsIPresentationControlChannel aControlChannel, in boolean aIsFromReceiver); */
     161             :   NS_IMETHOD OnTerminateRequest(nsITCPDeviceInfo *aDeviceInfo, const nsAString & aPresentationId, nsIPresentationControlChannel *aControlChannel, bool aIsFromReceiver) = 0;
     162             : 
     163             :   /* void onReconnectRequest (in nsITCPDeviceInfo aDeviceInfo, in DOMString url, in DOMString aPresentationId, in nsIPresentationControlChannel aControlChannel); */
     164             :   NS_IMETHOD OnReconnectRequest(nsITCPDeviceInfo *aDeviceInfo, const nsAString & url, const nsAString & aPresentationId, nsIPresentationControlChannel *aControlChannel) = 0;
     165             : 
     166             : };
     167             : 
     168             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIPresentationControlServerListener, NS_IPRESENTATIONCONTROLSERVERLISTENER_IID)
     169             : 
     170             : /* Use this macro when declaring classes that implement this interface. */
     171             : #define NS_DECL_NSIPRESENTATIONCONTROLSERVERLISTENER \
     172             :   NS_IMETHOD OnServerReady(uint16_t aPort, const nsACString & aCertFingerprint) override; \
     173             :   NS_IMETHOD OnServerStopped(nsresult aResult) override; \
     174             :   NS_IMETHOD OnSessionRequest(nsITCPDeviceInfo *aDeviceInfo, const nsAString & aUrl, const nsAString & aPresentationId, nsIPresentationControlChannel *aControlChannel) override; \
     175             :   NS_IMETHOD OnTerminateRequest(nsITCPDeviceInfo *aDeviceInfo, const nsAString & aPresentationId, nsIPresentationControlChannel *aControlChannel, bool aIsFromReceiver) override; \
     176             :   NS_IMETHOD OnReconnectRequest(nsITCPDeviceInfo *aDeviceInfo, const nsAString & url, const nsAString & aPresentationId, nsIPresentationControlChannel *aControlChannel) override; 
     177             : 
     178             : /* Use this macro when declaring the members of this interface when the
     179             :    class doesn't implement the interface. This is useful for forwarding. */
     180             : #define NS_DECL_NON_VIRTUAL_NSIPRESENTATIONCONTROLSERVERLISTENER \
     181             :   nsresult OnServerReady(uint16_t aPort, const nsACString & aCertFingerprint); \
     182             :   nsresult OnServerStopped(nsresult aResult); \
     183             :   nsresult OnSessionRequest(nsITCPDeviceInfo *aDeviceInfo, const nsAString & aUrl, const nsAString & aPresentationId, nsIPresentationControlChannel *aControlChannel); \
     184             :   nsresult OnTerminateRequest(nsITCPDeviceInfo *aDeviceInfo, const nsAString & aPresentationId, nsIPresentationControlChannel *aControlChannel, bool aIsFromReceiver); \
     185             :   nsresult OnReconnectRequest(nsITCPDeviceInfo *aDeviceInfo, const nsAString & url, const nsAString & aPresentationId, nsIPresentationControlChannel *aControlChannel); 
     186             : 
     187             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     188             : #define NS_FORWARD_NSIPRESENTATIONCONTROLSERVERLISTENER(_to) \
     189             :   NS_IMETHOD OnServerReady(uint16_t aPort, const nsACString & aCertFingerprint) override { return _to OnServerReady(aPort, aCertFingerprint); } \
     190             :   NS_IMETHOD OnServerStopped(nsresult aResult) override { return _to OnServerStopped(aResult); } \
     191             :   NS_IMETHOD OnSessionRequest(nsITCPDeviceInfo *aDeviceInfo, const nsAString & aUrl, const nsAString & aPresentationId, nsIPresentationControlChannel *aControlChannel) override { return _to OnSessionRequest(aDeviceInfo, aUrl, aPresentationId, aControlChannel); } \
     192             :   NS_IMETHOD OnTerminateRequest(nsITCPDeviceInfo *aDeviceInfo, const nsAString & aPresentationId, nsIPresentationControlChannel *aControlChannel, bool aIsFromReceiver) override { return _to OnTerminateRequest(aDeviceInfo, aPresentationId, aControlChannel, aIsFromReceiver); } \
     193             :   NS_IMETHOD OnReconnectRequest(nsITCPDeviceInfo *aDeviceInfo, const nsAString & url, const nsAString & aPresentationId, nsIPresentationControlChannel *aControlChannel) override { return _to OnReconnectRequest(aDeviceInfo, url, aPresentationId, aControlChannel); } 
     194             : 
     195             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     196             : #define NS_FORWARD_SAFE_NSIPRESENTATIONCONTROLSERVERLISTENER(_to) \
     197             :   NS_IMETHOD OnServerReady(uint16_t aPort, const nsACString & aCertFingerprint) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnServerReady(aPort, aCertFingerprint); } \
     198             :   NS_IMETHOD OnServerStopped(nsresult aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnServerStopped(aResult); } \
     199             :   NS_IMETHOD OnSessionRequest(nsITCPDeviceInfo *aDeviceInfo, const nsAString & aUrl, const nsAString & aPresentationId, nsIPresentationControlChannel *aControlChannel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnSessionRequest(aDeviceInfo, aUrl, aPresentationId, aControlChannel); } \
     200             :   NS_IMETHOD OnTerminateRequest(nsITCPDeviceInfo *aDeviceInfo, const nsAString & aPresentationId, nsIPresentationControlChannel *aControlChannel, bool aIsFromReceiver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnTerminateRequest(aDeviceInfo, aPresentationId, aControlChannel, aIsFromReceiver); } \
     201             :   NS_IMETHOD OnReconnectRequest(nsITCPDeviceInfo *aDeviceInfo, const nsAString & url, const nsAString & aPresentationId, nsIPresentationControlChannel *aControlChannel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnReconnectRequest(aDeviceInfo, url, aPresentationId, aControlChannel); } 
     202             : 
     203             : #if 0
     204             : /* Use the code below as a template for the implementation class for this interface. */
     205             : 
     206             : /* Header file */
     207             : class nsPresentationControlServerListener : public nsIPresentationControlServerListener
     208             : {
     209             : public:
     210             :   NS_DECL_ISUPPORTS
     211             :   NS_DECL_NSIPRESENTATIONCONTROLSERVERLISTENER
     212             : 
     213             :   nsPresentationControlServerListener();
     214             : 
     215             : private:
     216             :   ~nsPresentationControlServerListener();
     217             : 
     218             : protected:
     219             :   /* additional members */
     220             : };
     221             : 
     222             : /* Implementation file */
     223             : NS_IMPL_ISUPPORTS(nsPresentationControlServerListener, nsIPresentationControlServerListener)
     224             : 
     225             : nsPresentationControlServerListener::nsPresentationControlServerListener()
     226             : {
     227             :   /* member initializers and constructor code */
     228             : }
     229             : 
     230             : nsPresentationControlServerListener::~nsPresentationControlServerListener()
     231             : {
     232             :   /* destructor code */
     233             : }
     234             : 
     235             : /* void onServerReady (in uint16_t aPort, in AUTF8String aCertFingerprint); */
     236             : NS_IMETHODIMP nsPresentationControlServerListener::OnServerReady(uint16_t aPort, const nsACString & aCertFingerprint)
     237             : {
     238             :     return NS_ERROR_NOT_IMPLEMENTED;
     239             : }
     240             : 
     241             : /* void onServerStopped (in nsresult aResult); */
     242             : NS_IMETHODIMP nsPresentationControlServerListener::OnServerStopped(nsresult aResult)
     243             : {
     244             :     return NS_ERROR_NOT_IMPLEMENTED;
     245             : }
     246             : 
     247             : /* void onSessionRequest (in nsITCPDeviceInfo aDeviceInfo, in DOMString aUrl, in DOMString aPresentationId, in nsIPresentationControlChannel aControlChannel); */
     248             : NS_IMETHODIMP nsPresentationControlServerListener::OnSessionRequest(nsITCPDeviceInfo *aDeviceInfo, const nsAString & aUrl, const nsAString & aPresentationId, nsIPresentationControlChannel *aControlChannel)
     249             : {
     250             :     return NS_ERROR_NOT_IMPLEMENTED;
     251             : }
     252             : 
     253             : /* void onTerminateRequest (in nsITCPDeviceInfo aDeviceInfo, in DOMString aPresentationId, in nsIPresentationControlChannel aControlChannel, in boolean aIsFromReceiver); */
     254             : NS_IMETHODIMP nsPresentationControlServerListener::OnTerminateRequest(nsITCPDeviceInfo *aDeviceInfo, const nsAString & aPresentationId, nsIPresentationControlChannel *aControlChannel, bool aIsFromReceiver)
     255             : {
     256             :     return NS_ERROR_NOT_IMPLEMENTED;
     257             : }
     258             : 
     259             : /* void onReconnectRequest (in nsITCPDeviceInfo aDeviceInfo, in DOMString url, in DOMString aPresentationId, in nsIPresentationControlChannel aControlChannel); */
     260             : NS_IMETHODIMP nsPresentationControlServerListener::OnReconnectRequest(nsITCPDeviceInfo *aDeviceInfo, const nsAString & url, const nsAString & aPresentationId, nsIPresentationControlChannel *aControlChannel)
     261             : {
     262             :     return NS_ERROR_NOT_IMPLEMENTED;
     263             : }
     264             : 
     265             : /* End of implementation class template. */
     266             : #endif
     267             : 
     268             : 
     269             : /* starting interface:    nsIPresentationControlService */
     270             : #define NS_IPRESENTATIONCONTROLSERVICE_IID_STR "55d6b605-2389-4aae-a8fe-60d4440540ea"
     271             : 
     272             : #define NS_IPRESENTATIONCONTROLSERVICE_IID \
     273             :   {0x55d6b605, 0x2389, 0x4aae, \
     274             :     { 0xa8, 0xfe, 0x60, 0xd4, 0x44, 0x05, 0x40, 0xea }}
     275             : 
     276             : class NS_NO_VTABLE nsIPresentationControlService : public nsISupports {
     277             :  public:
     278             : 
     279             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRESENTATIONCONTROLSERVICE_IID)
     280             : 
     281             :   /* void startServer (in boolean aEncrypted, [optional] in uint16_t aPort); */
     282             :   NS_IMETHOD StartServer(bool aEncrypted, uint16_t aPort) = 0;
     283             : 
     284             :   /* nsIPresentationControlChannel connect (in nsITCPDeviceInfo aDeviceInfo); */
     285             :   NS_IMETHOD Connect(nsITCPDeviceInfo *aDeviceInfo, nsIPresentationControlChannel * *_retval) = 0;
     286             : 
     287             :   /* boolean isCompatibleServer (in uint32_t aVersion); */
     288             :   NS_IMETHOD IsCompatibleServer(uint32_t aVersion, bool *_retval) = 0;
     289             : 
     290             :   /* void close (); */
     291             :   NS_IMETHOD Close(void) = 0;
     292             : 
     293             :   /* readonly attribute uint16_t port; */
     294             :   NS_IMETHOD GetPort(uint16_t *aPort) = 0;
     295             : 
     296             :   /* readonly attribute uint32_t version; */
     297             :   NS_IMETHOD GetVersion(uint32_t *aVersion) = 0;
     298             : 
     299             :   /* attribute AUTF8String id; */
     300             :   NS_IMETHOD GetId(nsACString & aId) = 0;
     301             :   NS_IMETHOD SetId(const nsACString & aId) = 0;
     302             : 
     303             :   /* attribute AUTF8String certFingerprint; */
     304             :   NS_IMETHOD GetCertFingerprint(nsACString & aCertFingerprint) = 0;
     305             :   NS_IMETHOD SetCertFingerprint(const nsACString & aCertFingerprint) = 0;
     306             : 
     307             :   /* attribute nsIPresentationControlServerListener listener; */
     308             :   NS_IMETHOD GetListener(nsIPresentationControlServerListener * *aListener) = 0;
     309             :   NS_IMETHOD SetListener(nsIPresentationControlServerListener *aListener) = 0;
     310             : 
     311             : };
     312             : 
     313             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIPresentationControlService, NS_IPRESENTATIONCONTROLSERVICE_IID)
     314             : 
     315             : /* Use this macro when declaring classes that implement this interface. */
     316             : #define NS_DECL_NSIPRESENTATIONCONTROLSERVICE \
     317             :   NS_IMETHOD StartServer(bool aEncrypted, uint16_t aPort) override; \
     318             :   NS_IMETHOD Connect(nsITCPDeviceInfo *aDeviceInfo, nsIPresentationControlChannel * *_retval) override; \
     319             :   NS_IMETHOD IsCompatibleServer(uint32_t aVersion, bool *_retval) override; \
     320             :   NS_IMETHOD Close(void) override; \
     321             :   NS_IMETHOD GetPort(uint16_t *aPort) override; \
     322             :   NS_IMETHOD GetVersion(uint32_t *aVersion) override; \
     323             :   NS_IMETHOD GetId(nsACString & aId) override; \
     324             :   NS_IMETHOD SetId(const nsACString & aId) override; \
     325             :   NS_IMETHOD GetCertFingerprint(nsACString & aCertFingerprint) override; \
     326             :   NS_IMETHOD SetCertFingerprint(const nsACString & aCertFingerprint) override; \
     327             :   NS_IMETHOD GetListener(nsIPresentationControlServerListener * *aListener) override; \
     328             :   NS_IMETHOD SetListener(nsIPresentationControlServerListener *aListener) override; 
     329             : 
     330             : /* Use this macro when declaring the members of this interface when the
     331             :    class doesn't implement the interface. This is useful for forwarding. */
     332             : #define NS_DECL_NON_VIRTUAL_NSIPRESENTATIONCONTROLSERVICE \
     333             :   nsresult StartServer(bool aEncrypted, uint16_t aPort); \
     334             :   nsresult Connect(nsITCPDeviceInfo *aDeviceInfo, nsIPresentationControlChannel * *_retval); \
     335             :   nsresult IsCompatibleServer(uint32_t aVersion, bool *_retval); \
     336             :   nsresult Close(void); \
     337             :   nsresult GetPort(uint16_t *aPort); \
     338             :   nsresult GetVersion(uint32_t *aVersion); \
     339             :   nsresult GetId(nsACString & aId); \
     340             :   nsresult SetId(const nsACString & aId); \
     341             :   nsresult GetCertFingerprint(nsACString & aCertFingerprint); \
     342             :   nsresult SetCertFingerprint(const nsACString & aCertFingerprint); \
     343             :   nsresult GetListener(nsIPresentationControlServerListener * *aListener); \
     344             :   nsresult SetListener(nsIPresentationControlServerListener *aListener); 
     345             : 
     346             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     347             : #define NS_FORWARD_NSIPRESENTATIONCONTROLSERVICE(_to) \
     348             :   NS_IMETHOD StartServer(bool aEncrypted, uint16_t aPort) override { return _to StartServer(aEncrypted, aPort); } \
     349             :   NS_IMETHOD Connect(nsITCPDeviceInfo *aDeviceInfo, nsIPresentationControlChannel * *_retval) override { return _to Connect(aDeviceInfo, _retval); } \
     350             :   NS_IMETHOD IsCompatibleServer(uint32_t aVersion, bool *_retval) override { return _to IsCompatibleServer(aVersion, _retval); } \
     351             :   NS_IMETHOD Close(void) override { return _to Close(); } \
     352             :   NS_IMETHOD GetPort(uint16_t *aPort) override { return _to GetPort(aPort); } \
     353             :   NS_IMETHOD GetVersion(uint32_t *aVersion) override { return _to GetVersion(aVersion); } \
     354             :   NS_IMETHOD GetId(nsACString & aId) override { return _to GetId(aId); } \
     355             :   NS_IMETHOD SetId(const nsACString & aId) override { return _to SetId(aId); } \
     356             :   NS_IMETHOD GetCertFingerprint(nsACString & aCertFingerprint) override { return _to GetCertFingerprint(aCertFingerprint); } \
     357             :   NS_IMETHOD SetCertFingerprint(const nsACString & aCertFingerprint) override { return _to SetCertFingerprint(aCertFingerprint); } \
     358             :   NS_IMETHOD GetListener(nsIPresentationControlServerListener * *aListener) override { return _to GetListener(aListener); } \
     359             :   NS_IMETHOD SetListener(nsIPresentationControlServerListener *aListener) override { return _to SetListener(aListener); } 
     360             : 
     361             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     362             : #define NS_FORWARD_SAFE_NSIPRESENTATIONCONTROLSERVICE(_to) \
     363             :   NS_IMETHOD StartServer(bool aEncrypted, uint16_t aPort) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StartServer(aEncrypted, aPort); } \
     364             :   NS_IMETHOD Connect(nsITCPDeviceInfo *aDeviceInfo, nsIPresentationControlChannel * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Connect(aDeviceInfo, _retval); } \
     365             :   NS_IMETHOD IsCompatibleServer(uint32_t aVersion, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsCompatibleServer(aVersion, _retval); } \
     366             :   NS_IMETHOD Close(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Close(); } \
     367             :   NS_IMETHOD GetPort(uint16_t *aPort) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPort(aPort); } \
     368             :   NS_IMETHOD GetVersion(uint32_t *aVersion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVersion(aVersion); } \
     369             :   NS_IMETHOD GetId(nsACString & aId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \
     370             :   NS_IMETHOD SetId(const nsACString & aId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetId(aId); } \
     371             :   NS_IMETHOD GetCertFingerprint(nsACString & aCertFingerprint) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCertFingerprint(aCertFingerprint); } \
     372             :   NS_IMETHOD SetCertFingerprint(const nsACString & aCertFingerprint) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCertFingerprint(aCertFingerprint); } \
     373             :   NS_IMETHOD GetListener(nsIPresentationControlServerListener * *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetListener(aListener); } \
     374             :   NS_IMETHOD SetListener(nsIPresentationControlServerListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetListener(aListener); } 
     375             : 
     376             : #if 0
     377             : /* Use the code below as a template for the implementation class for this interface. */
     378             : 
     379             : /* Header file */
     380             : class nsPresentationControlService : public nsIPresentationControlService
     381             : {
     382             : public:
     383             :   NS_DECL_ISUPPORTS
     384             :   NS_DECL_NSIPRESENTATIONCONTROLSERVICE
     385             : 
     386             :   nsPresentationControlService();
     387             : 
     388             : private:
     389             :   ~nsPresentationControlService();
     390             : 
     391             : protected:
     392             :   /* additional members */
     393             : };
     394             : 
     395             : /* Implementation file */
     396             : NS_IMPL_ISUPPORTS(nsPresentationControlService, nsIPresentationControlService)
     397             : 
     398             : nsPresentationControlService::nsPresentationControlService()
     399             : {
     400             :   /* member initializers and constructor code */
     401             : }
     402             : 
     403             : nsPresentationControlService::~nsPresentationControlService()
     404             : {
     405             :   /* destructor code */
     406             : }
     407             : 
     408             : /* void startServer (in boolean aEncrypted, [optional] in uint16_t aPort); */
     409             : NS_IMETHODIMP nsPresentationControlService::StartServer(bool aEncrypted, uint16_t aPort)
     410             : {
     411             :     return NS_ERROR_NOT_IMPLEMENTED;
     412             : }
     413             : 
     414             : /* nsIPresentationControlChannel connect (in nsITCPDeviceInfo aDeviceInfo); */
     415             : NS_IMETHODIMP nsPresentationControlService::Connect(nsITCPDeviceInfo *aDeviceInfo, nsIPresentationControlChannel * *_retval)
     416             : {
     417             :     return NS_ERROR_NOT_IMPLEMENTED;
     418             : }
     419             : 
     420             : /* boolean isCompatibleServer (in uint32_t aVersion); */
     421             : NS_IMETHODIMP nsPresentationControlService::IsCompatibleServer(uint32_t aVersion, bool *_retval)
     422             : {
     423             :     return NS_ERROR_NOT_IMPLEMENTED;
     424             : }
     425             : 
     426             : /* void close (); */
     427             : NS_IMETHODIMP nsPresentationControlService::Close()
     428             : {
     429             :     return NS_ERROR_NOT_IMPLEMENTED;
     430             : }
     431             : 
     432             : /* readonly attribute uint16_t port; */
     433             : NS_IMETHODIMP nsPresentationControlService::GetPort(uint16_t *aPort)
     434             : {
     435             :     return NS_ERROR_NOT_IMPLEMENTED;
     436             : }
     437             : 
     438             : /* readonly attribute uint32_t version; */
     439             : NS_IMETHODIMP nsPresentationControlService::GetVersion(uint32_t *aVersion)
     440             : {
     441             :     return NS_ERROR_NOT_IMPLEMENTED;
     442             : }
     443             : 
     444             : /* attribute AUTF8String id; */
     445             : NS_IMETHODIMP nsPresentationControlService::GetId(nsACString & aId)
     446             : {
     447             :     return NS_ERROR_NOT_IMPLEMENTED;
     448             : }
     449             : NS_IMETHODIMP nsPresentationControlService::SetId(const nsACString & aId)
     450             : {
     451             :     return NS_ERROR_NOT_IMPLEMENTED;
     452             : }
     453             : 
     454             : /* attribute AUTF8String certFingerprint; */
     455             : NS_IMETHODIMP nsPresentationControlService::GetCertFingerprint(nsACString & aCertFingerprint)
     456             : {
     457             :     return NS_ERROR_NOT_IMPLEMENTED;
     458             : }
     459             : NS_IMETHODIMP nsPresentationControlService::SetCertFingerprint(const nsACString & aCertFingerprint)
     460             : {
     461             :     return NS_ERROR_NOT_IMPLEMENTED;
     462             : }
     463             : 
     464             : /* attribute nsIPresentationControlServerListener listener; */
     465             : NS_IMETHODIMP nsPresentationControlService::GetListener(nsIPresentationControlServerListener * *aListener)
     466             : {
     467             :     return NS_ERROR_NOT_IMPLEMENTED;
     468             : }
     469             : NS_IMETHODIMP nsPresentationControlService::SetListener(nsIPresentationControlServerListener *aListener)
     470             : {
     471             :     return NS_ERROR_NOT_IMPLEMENTED;
     472             : }
     473             : 
     474             : /* End of implementation class template. */
     475             : #endif
     476             : 
     477             : 
     478             : #endif /* __gen_nsIPresentationControlService_h__ */

Generated by: LCOV version 1.13