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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIClassOfService.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIClassOfService_h__
       6             : #define __gen_nsIClassOfService_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             : 
      18             : /* starting interface:    nsIClassOfService */
      19             : #define NS_ICLASSOFSERVICE_IID_STR "1ccb58ec-5e07-4cf9-a30d-ac5490d23b41"
      20             : 
      21             : #define NS_ICLASSOFSERVICE_IID \
      22             :   {0x1ccb58ec, 0x5e07, 0x4cf9, \
      23             :     { 0xa3, 0x0d, 0xac, 0x54, 0x90, 0xd2, 0x3b, 0x41 }}
      24             : 
      25          10 : class NS_NO_VTABLE nsIClassOfService : public nsISupports {
      26             :  public:
      27             : 
      28             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICLASSOFSERVICE_IID)
      29             : 
      30             :   /* attribute unsigned long classFlags; */
      31             :   NS_IMETHOD GetClassFlags(uint32_t *aClassFlags) = 0;
      32             :   NS_IMETHOD SetClassFlags(uint32_t aClassFlags) = 0;
      33             : 
      34             :   /* void clearClassFlags (in unsigned long flags); */
      35             :   NS_IMETHOD ClearClassFlags(uint32_t flags) = 0;
      36             : 
      37             :   /* void addClassFlags (in unsigned long flags); */
      38             :   NS_IMETHOD AddClassFlags(uint32_t flags) = 0;
      39             : 
      40             :   enum {
      41             :     Leader = 1U,
      42             :     Follower = 2U,
      43             :     Speculative = 4U,
      44             :     Background = 8U,
      45             :     Unblocked = 16U,
      46             :     Throttleable = 32U,
      47             :     UrgentStart = 64U
      48             :   };
      49             : 
      50             : };
      51             : 
      52             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIClassOfService, NS_ICLASSOFSERVICE_IID)
      53             : 
      54             : /* Use this macro when declaring classes that implement this interface. */
      55             : #define NS_DECL_NSICLASSOFSERVICE \
      56             :   NS_IMETHOD GetClassFlags(uint32_t *aClassFlags) override; \
      57             :   NS_IMETHOD SetClassFlags(uint32_t aClassFlags) override; \
      58             :   NS_IMETHOD ClearClassFlags(uint32_t flags) override; \
      59             :   NS_IMETHOD AddClassFlags(uint32_t flags) override; \
      60             : 
      61             : /* Use this macro when declaring the members of this interface when the
      62             :    class doesn't implement the interface. This is useful for forwarding. */
      63             : #define NS_DECL_NON_VIRTUAL_NSICLASSOFSERVICE \
      64             :   nsresult GetClassFlags(uint32_t *aClassFlags); \
      65             :   nsresult SetClassFlags(uint32_t aClassFlags); \
      66             :   nsresult ClearClassFlags(uint32_t flags); \
      67             :   nsresult AddClassFlags(uint32_t flags); \
      68             : 
      69             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      70             : #define NS_FORWARD_NSICLASSOFSERVICE(_to) \
      71             :   NS_IMETHOD GetClassFlags(uint32_t *aClassFlags) override { return _to GetClassFlags(aClassFlags); } \
      72             :   NS_IMETHOD SetClassFlags(uint32_t aClassFlags) override { return _to SetClassFlags(aClassFlags); } \
      73             :   NS_IMETHOD ClearClassFlags(uint32_t flags) override { return _to ClearClassFlags(flags); } \
      74             :   NS_IMETHOD AddClassFlags(uint32_t flags) override { return _to AddClassFlags(flags); } \
      75             : 
      76             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      77             : #define NS_FORWARD_SAFE_NSICLASSOFSERVICE(_to) \
      78             :   NS_IMETHOD GetClassFlags(uint32_t *aClassFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClassFlags(aClassFlags); } \
      79             :   NS_IMETHOD SetClassFlags(uint32_t aClassFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetClassFlags(aClassFlags); } \
      80             :   NS_IMETHOD ClearClassFlags(uint32_t flags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearClassFlags(flags); } \
      81             :   NS_IMETHOD AddClassFlags(uint32_t flags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddClassFlags(flags); } \
      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 nsClassOfService : public nsIClassOfService
      88             : {
      89             : public:
      90             :   NS_DECL_ISUPPORTS
      91             :   NS_DECL_NSICLASSOFSERVICE
      92             : 
      93             :   nsClassOfService();
      94             : 
      95             : private:
      96             :   ~nsClassOfService();
      97             : 
      98             : protected:
      99             :   /* additional members */
     100             : };
     101             : 
     102             : /* Implementation file */
     103             : NS_IMPL_ISUPPORTS(nsClassOfService, nsIClassOfService)
     104             : 
     105             : nsClassOfService::nsClassOfService()
     106             : {
     107             :   /* member initializers and constructor code */
     108             : }
     109             : 
     110             : nsClassOfService::~nsClassOfService()
     111             : {
     112             :   /* destructor code */
     113             : }
     114             : 
     115             : /* attribute unsigned long classFlags; */
     116             : NS_IMETHODIMP nsClassOfService::GetClassFlags(uint32_t *aClassFlags)
     117             : {
     118             :     return NS_ERROR_NOT_IMPLEMENTED;
     119             : }
     120             : NS_IMETHODIMP nsClassOfService::SetClassFlags(uint32_t aClassFlags)
     121             : {
     122             :     return NS_ERROR_NOT_IMPLEMENTED;
     123             : }
     124             : 
     125             : /* void clearClassFlags (in unsigned long flags); */
     126             : NS_IMETHODIMP nsClassOfService::ClearClassFlags(uint32_t flags)
     127             : {
     128             :     return NS_ERROR_NOT_IMPLEMENTED;
     129             : }
     130             : 
     131             : /* void addClassFlags (in unsigned long flags); */
     132             : NS_IMETHODIMP nsClassOfService::AddClassFlags(uint32_t flags)
     133             : {
     134             :     return NS_ERROR_NOT_IMPLEMENTED;
     135             : }
     136             : 
     137             : /* End of implementation class template. */
     138             : #endif
     139             : 
     140             : 
     141             : #endif /* __gen_nsIClassOfService_h__ */

Generated by: LCOV version 1.13