LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsISupportsPriority.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/nsISupportsPriority.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsISupportsPriority_h__
       6             : #define __gen_nsISupportsPriority_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:    nsISupportsPriority */
      19             : #define NS_ISUPPORTSPRIORITY_IID_STR "aa578b44-abd5-4c19-8b14-36d4de6fdc36"
      20             : 
      21             : #define NS_ISUPPORTSPRIORITY_IID \
      22             :   {0xaa578b44, 0xabd5, 0x4c19, \
      23             :     { 0x8b, 0x14, 0x36, 0xd4, 0xde, 0x6f, 0xdc, 0x36 }}
      24             : 
      25         293 : class NS_NO_VTABLE nsISupportsPriority : public nsISupports {
      26             :  public:
      27             : 
      28             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUPPORTSPRIORITY_IID)
      29             : 
      30             :   enum {
      31             :     PRIORITY_HIGHEST = -20,
      32             :     PRIORITY_HIGH = -10,
      33             :     PRIORITY_NORMAL = 0,
      34             :     PRIORITY_LOW = 10,
      35             :     PRIORITY_LOWEST = 20
      36             :   };
      37             : 
      38             :   /* attribute long priority; */
      39             :   NS_IMETHOD GetPriority(int32_t *aPriority) = 0;
      40             :   NS_IMETHOD SetPriority(int32_t aPriority) = 0;
      41             : 
      42             :   /* void adjustPriority (in long delta); */
      43             :   NS_IMETHOD AdjustPriority(int32_t delta) = 0;
      44             : 
      45             : };
      46             : 
      47             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsISupportsPriority, NS_ISUPPORTSPRIORITY_IID)
      48             : 
      49             : /* Use this macro when declaring classes that implement this interface. */
      50             : #define NS_DECL_NSISUPPORTSPRIORITY \
      51             :   NS_IMETHOD GetPriority(int32_t *aPriority) override; \
      52             :   NS_IMETHOD SetPriority(int32_t aPriority) override; \
      53             :   NS_IMETHOD AdjustPriority(int32_t delta) override; 
      54             : 
      55             : /* Use this macro when declaring the members of this interface when the
      56             :    class doesn't implement the interface. This is useful for forwarding. */
      57             : #define NS_DECL_NON_VIRTUAL_NSISUPPORTSPRIORITY \
      58             :   nsresult GetPriority(int32_t *aPriority); \
      59             :   nsresult SetPriority(int32_t aPriority); \
      60             :   nsresult AdjustPriority(int32_t delta); 
      61             : 
      62             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      63             : #define NS_FORWARD_NSISUPPORTSPRIORITY(_to) \
      64             :   NS_IMETHOD GetPriority(int32_t *aPriority) override { return _to GetPriority(aPriority); } \
      65             :   NS_IMETHOD SetPriority(int32_t aPriority) override { return _to SetPriority(aPriority); } \
      66             :   NS_IMETHOD AdjustPriority(int32_t delta) override { return _to AdjustPriority(delta); } 
      67             : 
      68             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      69             : #define NS_FORWARD_SAFE_NSISUPPORTSPRIORITY(_to) \
      70             :   NS_IMETHOD GetPriority(int32_t *aPriority) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPriority(aPriority); } \
      71             :   NS_IMETHOD SetPriority(int32_t aPriority) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPriority(aPriority); } \
      72             :   NS_IMETHOD AdjustPriority(int32_t delta) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AdjustPriority(delta); } 
      73             : 
      74             : #if 0
      75             : /* Use the code below as a template for the implementation class for this interface. */
      76             : 
      77             : /* Header file */
      78             : class nsSupportsPriority : public nsISupportsPriority
      79             : {
      80             : public:
      81             :   NS_DECL_ISUPPORTS
      82             :   NS_DECL_NSISUPPORTSPRIORITY
      83             : 
      84             :   nsSupportsPriority();
      85             : 
      86             : private:
      87             :   ~nsSupportsPriority();
      88             : 
      89             : protected:
      90             :   /* additional members */
      91             : };
      92             : 
      93             : /* Implementation file */
      94             : NS_IMPL_ISUPPORTS(nsSupportsPriority, nsISupportsPriority)
      95             : 
      96             : nsSupportsPriority::nsSupportsPriority()
      97             : {
      98             :   /* member initializers and constructor code */
      99             : }
     100             : 
     101             : nsSupportsPriority::~nsSupportsPriority()
     102             : {
     103             :   /* destructor code */
     104             : }
     105             : 
     106             : /* attribute long priority; */
     107             : NS_IMETHODIMP nsSupportsPriority::GetPriority(int32_t *aPriority)
     108             : {
     109             :     return NS_ERROR_NOT_IMPLEMENTED;
     110             : }
     111             : NS_IMETHODIMP nsSupportsPriority::SetPriority(int32_t aPriority)
     112             : {
     113             :     return NS_ERROR_NOT_IMPLEMENTED;
     114             : }
     115             : 
     116             : /* void adjustPriority (in long delta); */
     117             : NS_IMETHODIMP nsSupportsPriority::AdjustPriority(int32_t delta)
     118             : {
     119             :     return NS_ERROR_NOT_IMPLEMENTED;
     120             : }
     121             : 
     122             : /* End of implementation class template. */
     123             : #endif
     124             : 
     125             : 
     126             : #endif /* __gen_nsISupportsPriority_h__ */

Generated by: LCOV version 1.13