LCOV - code coverage report
Current view: directory - objdir/dist/include - nsICookie.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/netwerk/cookie/nsICookie.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsICookie_h__
       6                 : #define __gen_nsICookie_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                 : typedef PRInt32  nsCookieStatus;
      18                 : 
      19                 : typedef PRInt32  nsCookiePolicy;
      20                 : 
      21                 : 
      22                 : /* starting interface:    nsICookie */
      23                 : #define NS_ICOOKIE_IID_STR "e9fcb9a4-d376-458f-b720-e65e7df593bc"
      24                 : 
      25                 : #define NS_ICOOKIE_IID \
      26                 :   {0xe9fcb9a4, 0xd376, 0x458f, \
      27                 :     { 0xb7, 0x20, 0xe6, 0x5e, 0x7d, 0xf5, 0x93, 0xbc }}
      28                 : 
      29           41965 : class NS_NO_VTABLE NS_SCRIPTABLE nsICookie : public nsISupports {
      30                 :  public: 
      31                 : 
      32                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICOOKIE_IID)
      33                 : 
      34                 :   /* readonly attribute ACString name; */
      35                 :   NS_SCRIPTABLE NS_IMETHOD GetName(nsACString & aName) = 0;
      36                 : 
      37                 :   /* readonly attribute ACString value; */
      38                 :   NS_SCRIPTABLE NS_IMETHOD GetValue(nsACString & aValue) = 0;
      39                 : 
      40                 :   /* readonly attribute boolean isDomain; */
      41                 :   NS_SCRIPTABLE NS_IMETHOD GetIsDomain(bool *aIsDomain) = 0;
      42                 : 
      43                 :   /* readonly attribute AUTF8String host; */
      44                 :   NS_SCRIPTABLE NS_IMETHOD GetHost(nsACString & aHost) = 0;
      45                 : 
      46                 :   /* readonly attribute AUTF8String path; */
      47                 :   NS_SCRIPTABLE NS_IMETHOD GetPath(nsACString & aPath) = 0;
      48                 : 
      49                 :   /* readonly attribute boolean isSecure; */
      50                 :   NS_SCRIPTABLE NS_IMETHOD GetIsSecure(bool *aIsSecure) = 0;
      51                 : 
      52                 :   /* readonly attribute PRUint64 expires; */
      53                 :   NS_SCRIPTABLE NS_IMETHOD GetExpires(PRUint64 *aExpires) = 0;
      54                 : 
      55                 :   enum {
      56                 :     STATUS_UNKNOWN = 0,
      57                 :     STATUS_ACCEPTED = 1,
      58                 :     STATUS_DOWNGRADED = 2,
      59                 :     STATUS_FLAGGED = 3,
      60                 :     STATUS_REJECTED = 4
      61                 :   };
      62                 : 
      63                 :   /* readonly attribute nsCookieStatus status; */
      64                 :   NS_SCRIPTABLE NS_IMETHOD GetStatus(nsCookieStatus *aStatus) = 0;
      65                 : 
      66                 :   enum {
      67                 :     POLICY_UNKNOWN = 0,
      68                 :     POLICY_NONE = 1,
      69                 :     POLICY_NO_CONSENT = 2,
      70                 :     POLICY_IMPLICIT_CONSENT = 3,
      71                 :     POLICY_EXPLICIT_CONSENT = 4,
      72                 :     POLICY_NO_II = 5
      73                 :   };
      74                 : 
      75                 :   /* readonly attribute nsCookiePolicy policy; */
      76                 :   NS_SCRIPTABLE NS_IMETHOD GetPolicy(nsCookiePolicy *aPolicy) = 0;
      77                 : 
      78                 : };
      79                 : 
      80                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsICookie, NS_ICOOKIE_IID)
      81                 : 
      82                 : /* Use this macro when declaring classes that implement this interface. */
      83                 : #define NS_DECL_NSICOOKIE \
      84                 :   NS_SCRIPTABLE NS_IMETHOD GetName(nsACString & aName); \
      85                 :   NS_SCRIPTABLE NS_IMETHOD GetValue(nsACString & aValue); \
      86                 :   NS_SCRIPTABLE NS_IMETHOD GetIsDomain(bool *aIsDomain); \
      87                 :   NS_SCRIPTABLE NS_IMETHOD GetHost(nsACString & aHost); \
      88                 :   NS_SCRIPTABLE NS_IMETHOD GetPath(nsACString & aPath); \
      89                 :   NS_SCRIPTABLE NS_IMETHOD GetIsSecure(bool *aIsSecure); \
      90                 :   NS_SCRIPTABLE NS_IMETHOD GetExpires(PRUint64 *aExpires); \
      91                 :   NS_SCRIPTABLE NS_IMETHOD GetStatus(nsCookieStatus *aStatus); \
      92                 :   NS_SCRIPTABLE NS_IMETHOD GetPolicy(nsCookiePolicy *aPolicy); 
      93                 : 
      94                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      95                 : #define NS_FORWARD_NSICOOKIE(_to) \
      96                 :   NS_SCRIPTABLE NS_IMETHOD GetName(nsACString & aName) { return _to GetName(aName); } \
      97                 :   NS_SCRIPTABLE NS_IMETHOD GetValue(nsACString & aValue) { return _to GetValue(aValue); } \
      98                 :   NS_SCRIPTABLE NS_IMETHOD GetIsDomain(bool *aIsDomain) { return _to GetIsDomain(aIsDomain); } \
      99                 :   NS_SCRIPTABLE NS_IMETHOD GetHost(nsACString & aHost) { return _to GetHost(aHost); } \
     100                 :   NS_SCRIPTABLE NS_IMETHOD GetPath(nsACString & aPath) { return _to GetPath(aPath); } \
     101                 :   NS_SCRIPTABLE NS_IMETHOD GetIsSecure(bool *aIsSecure) { return _to GetIsSecure(aIsSecure); } \
     102                 :   NS_SCRIPTABLE NS_IMETHOD GetExpires(PRUint64 *aExpires) { return _to GetExpires(aExpires); } \
     103                 :   NS_SCRIPTABLE NS_IMETHOD GetStatus(nsCookieStatus *aStatus) { return _to GetStatus(aStatus); } \
     104                 :   NS_SCRIPTABLE NS_IMETHOD GetPolicy(nsCookiePolicy *aPolicy) { return _to GetPolicy(aPolicy); } 
     105                 : 
     106                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     107                 : #define NS_FORWARD_SAFE_NSICOOKIE(_to) \
     108                 :   NS_SCRIPTABLE NS_IMETHOD GetName(nsACString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
     109                 :   NS_SCRIPTABLE NS_IMETHOD GetValue(nsACString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
     110                 :   NS_SCRIPTABLE NS_IMETHOD GetIsDomain(bool *aIsDomain) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsDomain(aIsDomain); } \
     111                 :   NS_SCRIPTABLE NS_IMETHOD GetHost(nsACString & aHost) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHost(aHost); } \
     112                 :   NS_SCRIPTABLE NS_IMETHOD GetPath(nsACString & aPath) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPath(aPath); } \
     113                 :   NS_SCRIPTABLE NS_IMETHOD GetIsSecure(bool *aIsSecure) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsSecure(aIsSecure); } \
     114                 :   NS_SCRIPTABLE NS_IMETHOD GetExpires(PRUint64 *aExpires) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExpires(aExpires); } \
     115                 :   NS_SCRIPTABLE NS_IMETHOD GetStatus(nsCookieStatus *aStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatus(aStatus); } \
     116                 :   NS_SCRIPTABLE NS_IMETHOD GetPolicy(nsCookiePolicy *aPolicy) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPolicy(aPolicy); } 
     117                 : 
     118                 : #if 0
     119                 : /* Use the code below as a template for the implementation class for this interface. */
     120                 : 
     121                 : /* Header file */
     122                 : class nsCookie : public nsICookie
     123                 : {
     124                 : public:
     125                 :   NS_DECL_ISUPPORTS
     126                 :   NS_DECL_NSICOOKIE
     127                 : 
     128                 :   nsCookie();
     129                 : 
     130                 : private:
     131                 :   ~nsCookie();
     132                 : 
     133                 : protected:
     134                 :   /* additional members */
     135                 : };
     136                 : 
     137                 : /* Implementation file */
     138                 : NS_IMPL_ISUPPORTS1(nsCookie, nsICookie)
     139                 : 
     140                 : nsCookie::nsCookie()
     141                 : {
     142                 :   /* member initializers and constructor code */
     143                 : }
     144                 : 
     145                 : nsCookie::~nsCookie()
     146                 : {
     147                 :   /* destructor code */
     148                 : }
     149                 : 
     150                 : /* readonly attribute ACString name; */
     151                 : NS_IMETHODIMP nsCookie::GetName(nsACString & aName)
     152                 : {
     153                 :     return NS_ERROR_NOT_IMPLEMENTED;
     154                 : }
     155                 : 
     156                 : /* readonly attribute ACString value; */
     157                 : NS_IMETHODIMP nsCookie::GetValue(nsACString & aValue)
     158                 : {
     159                 :     return NS_ERROR_NOT_IMPLEMENTED;
     160                 : }
     161                 : 
     162                 : /* readonly attribute boolean isDomain; */
     163                 : NS_IMETHODIMP nsCookie::GetIsDomain(bool *aIsDomain)
     164                 : {
     165                 :     return NS_ERROR_NOT_IMPLEMENTED;
     166                 : }
     167                 : 
     168                 : /* readonly attribute AUTF8String host; */
     169                 : NS_IMETHODIMP nsCookie::GetHost(nsACString & aHost)
     170                 : {
     171                 :     return NS_ERROR_NOT_IMPLEMENTED;
     172                 : }
     173                 : 
     174                 : /* readonly attribute AUTF8String path; */
     175                 : NS_IMETHODIMP nsCookie::GetPath(nsACString & aPath)
     176                 : {
     177                 :     return NS_ERROR_NOT_IMPLEMENTED;
     178                 : }
     179                 : 
     180                 : /* readonly attribute boolean isSecure; */
     181                 : NS_IMETHODIMP nsCookie::GetIsSecure(bool *aIsSecure)
     182                 : {
     183                 :     return NS_ERROR_NOT_IMPLEMENTED;
     184                 : }
     185                 : 
     186                 : /* readonly attribute PRUint64 expires; */
     187                 : NS_IMETHODIMP nsCookie::GetExpires(PRUint64 *aExpires)
     188                 : {
     189                 :     return NS_ERROR_NOT_IMPLEMENTED;
     190                 : }
     191                 : 
     192                 : /* readonly attribute nsCookieStatus status; */
     193                 : NS_IMETHODIMP nsCookie::GetStatus(nsCookieStatus *aStatus)
     194                 : {
     195                 :     return NS_ERROR_NOT_IMPLEMENTED;
     196                 : }
     197                 : 
     198                 : /* readonly attribute nsCookiePolicy policy; */
     199                 : NS_IMETHODIMP nsCookie::GetPolicy(nsCookiePolicy *aPolicy)
     200                 : {
     201                 :     return NS_ERROR_NOT_IMPLEMENTED;
     202                 : }
     203                 : 
     204                 : /* End of implementation class template. */
     205                 : #endif
     206                 : 
     207                 : 
     208                 : #endif /* __gen_nsICookie_h__ */

Generated by: LCOV version 1.7