LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIURL.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/base/public/nsIURL.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIURL_h__
       6                 : #define __gen_nsIURL_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsIURI_h__
      10                 : #include "nsIURI.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:    nsIURL */
      19                 : #define NS_IURL_IID_STR "1419aa16-f134-4154-9886-00c7c5147a13"
      20                 : 
      21                 : #define NS_IURL_IID \
      22                 :   {0x1419aa16, 0xf134, 0x4154, \
      23                 :     { 0x98, 0x86, 0x00, 0xc7, 0xc5, 0x14, 0x7a, 0x13 }}
      24                 : 
      25          290485 : class NS_NO_VTABLE NS_SCRIPTABLE nsIURL : public nsIURI {
      26                 :  public: 
      27                 : 
      28                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IURL_IID)
      29                 : 
      30                 :   /* attribute AUTF8String filePath; */
      31                 :   NS_SCRIPTABLE NS_IMETHOD GetFilePath(nsACString & aFilePath) = 0;
      32                 :   NS_SCRIPTABLE NS_IMETHOD SetFilePath(const nsACString & aFilePath) = 0;
      33                 : 
      34                 :   /* attribute AUTF8String query; */
      35                 :   NS_SCRIPTABLE NS_IMETHOD GetQuery(nsACString & aQuery) = 0;
      36                 :   NS_SCRIPTABLE NS_IMETHOD SetQuery(const nsACString & aQuery) = 0;
      37                 : 
      38                 :   /* attribute AUTF8String directory; */
      39                 :   NS_SCRIPTABLE NS_IMETHOD GetDirectory(nsACString & aDirectory) = 0;
      40                 :   NS_SCRIPTABLE NS_IMETHOD SetDirectory(const nsACString & aDirectory) = 0;
      41                 : 
      42                 :   /* attribute AUTF8String fileName; */
      43                 :   NS_SCRIPTABLE NS_IMETHOD GetFileName(nsACString & aFileName) = 0;
      44                 :   NS_SCRIPTABLE NS_IMETHOD SetFileName(const nsACString & aFileName) = 0;
      45                 : 
      46                 :   /* attribute AUTF8String fileBaseName; */
      47                 :   NS_SCRIPTABLE NS_IMETHOD GetFileBaseName(nsACString & aFileBaseName) = 0;
      48                 :   NS_SCRIPTABLE NS_IMETHOD SetFileBaseName(const nsACString & aFileBaseName) = 0;
      49                 : 
      50                 :   /* attribute AUTF8String fileExtension; */
      51                 :   NS_SCRIPTABLE NS_IMETHOD GetFileExtension(nsACString & aFileExtension) = 0;
      52                 :   NS_SCRIPTABLE NS_IMETHOD SetFileExtension(const nsACString & aFileExtension) = 0;
      53                 : 
      54                 :   /* AUTF8String getCommonBaseSpec (in nsIURI aURIToCompare); */
      55                 :   NS_SCRIPTABLE NS_IMETHOD GetCommonBaseSpec(nsIURI *aURIToCompare, nsACString & _retval NS_OUTPARAM) = 0;
      56                 : 
      57                 :   /* AUTF8String getRelativeSpec (in nsIURI aURIToCompare); */
      58                 :   NS_SCRIPTABLE NS_IMETHOD GetRelativeSpec(nsIURI *aURIToCompare, nsACString & _retval NS_OUTPARAM) = 0;
      59                 : 
      60                 : };
      61                 : 
      62                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIURL, NS_IURL_IID)
      63                 : 
      64                 : /* Use this macro when declaring classes that implement this interface. */
      65                 : #define NS_DECL_NSIURL \
      66                 :   NS_SCRIPTABLE NS_IMETHOD GetFilePath(nsACString & aFilePath); \
      67                 :   NS_SCRIPTABLE NS_IMETHOD SetFilePath(const nsACString & aFilePath); \
      68                 :   NS_SCRIPTABLE NS_IMETHOD GetQuery(nsACString & aQuery); \
      69                 :   NS_SCRIPTABLE NS_IMETHOD SetQuery(const nsACString & aQuery); \
      70                 :   NS_SCRIPTABLE NS_IMETHOD GetDirectory(nsACString & aDirectory); \
      71                 :   NS_SCRIPTABLE NS_IMETHOD SetDirectory(const nsACString & aDirectory); \
      72                 :   NS_SCRIPTABLE NS_IMETHOD GetFileName(nsACString & aFileName); \
      73                 :   NS_SCRIPTABLE NS_IMETHOD SetFileName(const nsACString & aFileName); \
      74                 :   NS_SCRIPTABLE NS_IMETHOD GetFileBaseName(nsACString & aFileBaseName); \
      75                 :   NS_SCRIPTABLE NS_IMETHOD SetFileBaseName(const nsACString & aFileBaseName); \
      76                 :   NS_SCRIPTABLE NS_IMETHOD GetFileExtension(nsACString & aFileExtension); \
      77                 :   NS_SCRIPTABLE NS_IMETHOD SetFileExtension(const nsACString & aFileExtension); \
      78                 :   NS_SCRIPTABLE NS_IMETHOD GetCommonBaseSpec(nsIURI *aURIToCompare, nsACString & _retval NS_OUTPARAM); \
      79                 :   NS_SCRIPTABLE NS_IMETHOD GetRelativeSpec(nsIURI *aURIToCompare, nsACString & _retval NS_OUTPARAM); 
      80                 : 
      81                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      82                 : #define NS_FORWARD_NSIURL(_to) \
      83                 :   NS_SCRIPTABLE NS_IMETHOD GetFilePath(nsACString & aFilePath) { return _to GetFilePath(aFilePath); } \
      84                 :   NS_SCRIPTABLE NS_IMETHOD SetFilePath(const nsACString & aFilePath) { return _to SetFilePath(aFilePath); } \
      85                 :   NS_SCRIPTABLE NS_IMETHOD GetQuery(nsACString & aQuery) { return _to GetQuery(aQuery); } \
      86                 :   NS_SCRIPTABLE NS_IMETHOD SetQuery(const nsACString & aQuery) { return _to SetQuery(aQuery); } \
      87                 :   NS_SCRIPTABLE NS_IMETHOD GetDirectory(nsACString & aDirectory) { return _to GetDirectory(aDirectory); } \
      88                 :   NS_SCRIPTABLE NS_IMETHOD SetDirectory(const nsACString & aDirectory) { return _to SetDirectory(aDirectory); } \
      89                 :   NS_SCRIPTABLE NS_IMETHOD GetFileName(nsACString & aFileName) { return _to GetFileName(aFileName); } \
      90                 :   NS_SCRIPTABLE NS_IMETHOD SetFileName(const nsACString & aFileName) { return _to SetFileName(aFileName); } \
      91                 :   NS_SCRIPTABLE NS_IMETHOD GetFileBaseName(nsACString & aFileBaseName) { return _to GetFileBaseName(aFileBaseName); } \
      92                 :   NS_SCRIPTABLE NS_IMETHOD SetFileBaseName(const nsACString & aFileBaseName) { return _to SetFileBaseName(aFileBaseName); } \
      93                 :   NS_SCRIPTABLE NS_IMETHOD GetFileExtension(nsACString & aFileExtension) { return _to GetFileExtension(aFileExtension); } \
      94                 :   NS_SCRIPTABLE NS_IMETHOD SetFileExtension(const nsACString & aFileExtension) { return _to SetFileExtension(aFileExtension); } \
      95                 :   NS_SCRIPTABLE NS_IMETHOD GetCommonBaseSpec(nsIURI *aURIToCompare, nsACString & _retval NS_OUTPARAM) { return _to GetCommonBaseSpec(aURIToCompare, _retval); } \
      96                 :   NS_SCRIPTABLE NS_IMETHOD GetRelativeSpec(nsIURI *aURIToCompare, nsACString & _retval NS_OUTPARAM) { return _to GetRelativeSpec(aURIToCompare, _retval); } 
      97                 : 
      98                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      99                 : #define NS_FORWARD_SAFE_NSIURL(_to) \
     100                 :   NS_SCRIPTABLE NS_IMETHOD GetFilePath(nsACString & aFilePath) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFilePath(aFilePath); } \
     101                 :   NS_SCRIPTABLE NS_IMETHOD SetFilePath(const nsACString & aFilePath) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFilePath(aFilePath); } \
     102                 :   NS_SCRIPTABLE NS_IMETHOD GetQuery(nsACString & aQuery) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetQuery(aQuery); } \
     103                 :   NS_SCRIPTABLE NS_IMETHOD SetQuery(const nsACString & aQuery) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetQuery(aQuery); } \
     104                 :   NS_SCRIPTABLE NS_IMETHOD GetDirectory(nsACString & aDirectory) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDirectory(aDirectory); } \
     105                 :   NS_SCRIPTABLE NS_IMETHOD SetDirectory(const nsACString & aDirectory) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDirectory(aDirectory); } \
     106                 :   NS_SCRIPTABLE NS_IMETHOD GetFileName(nsACString & aFileName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFileName(aFileName); } \
     107                 :   NS_SCRIPTABLE NS_IMETHOD SetFileName(const nsACString & aFileName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFileName(aFileName); } \
     108                 :   NS_SCRIPTABLE NS_IMETHOD GetFileBaseName(nsACString & aFileBaseName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFileBaseName(aFileBaseName); } \
     109                 :   NS_SCRIPTABLE NS_IMETHOD SetFileBaseName(const nsACString & aFileBaseName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFileBaseName(aFileBaseName); } \
     110                 :   NS_SCRIPTABLE NS_IMETHOD GetFileExtension(nsACString & aFileExtension) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFileExtension(aFileExtension); } \
     111                 :   NS_SCRIPTABLE NS_IMETHOD SetFileExtension(const nsACString & aFileExtension) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFileExtension(aFileExtension); } \
     112                 :   NS_SCRIPTABLE NS_IMETHOD GetCommonBaseSpec(nsIURI *aURIToCompare, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCommonBaseSpec(aURIToCompare, _retval); } \
     113                 :   NS_SCRIPTABLE NS_IMETHOD GetRelativeSpec(nsIURI *aURIToCompare, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRelativeSpec(aURIToCompare, _retval); } 
     114                 : 
     115                 : #if 0
     116                 : /* Use the code below as a template for the implementation class for this interface. */
     117                 : 
     118                 : /* Header file */
     119                 : class nsURL : public nsIURL
     120                 : {
     121                 : public:
     122                 :   NS_DECL_ISUPPORTS
     123                 :   NS_DECL_NSIURL
     124                 : 
     125                 :   nsURL();
     126                 : 
     127                 : private:
     128                 :   ~nsURL();
     129                 : 
     130                 : protected:
     131                 :   /* additional members */
     132                 : };
     133                 : 
     134                 : /* Implementation file */
     135                 : NS_IMPL_ISUPPORTS1(nsURL, nsIURL)
     136                 : 
     137                 : nsURL::nsURL()
     138                 : {
     139                 :   /* member initializers and constructor code */
     140                 : }
     141                 : 
     142                 : nsURL::~nsURL()
     143                 : {
     144                 :   /* destructor code */
     145                 : }
     146                 : 
     147                 : /* attribute AUTF8String filePath; */
     148                 : NS_IMETHODIMP nsURL::GetFilePath(nsACString & aFilePath)
     149                 : {
     150                 :     return NS_ERROR_NOT_IMPLEMENTED;
     151                 : }
     152                 : NS_IMETHODIMP nsURL::SetFilePath(const nsACString & aFilePath)
     153                 : {
     154                 :     return NS_ERROR_NOT_IMPLEMENTED;
     155                 : }
     156                 : 
     157                 : /* attribute AUTF8String query; */
     158                 : NS_IMETHODIMP nsURL::GetQuery(nsACString & aQuery)
     159                 : {
     160                 :     return NS_ERROR_NOT_IMPLEMENTED;
     161                 : }
     162                 : NS_IMETHODIMP nsURL::SetQuery(const nsACString & aQuery)
     163                 : {
     164                 :     return NS_ERROR_NOT_IMPLEMENTED;
     165                 : }
     166                 : 
     167                 : /* attribute AUTF8String directory; */
     168                 : NS_IMETHODIMP nsURL::GetDirectory(nsACString & aDirectory)
     169                 : {
     170                 :     return NS_ERROR_NOT_IMPLEMENTED;
     171                 : }
     172                 : NS_IMETHODIMP nsURL::SetDirectory(const nsACString & aDirectory)
     173                 : {
     174                 :     return NS_ERROR_NOT_IMPLEMENTED;
     175                 : }
     176                 : 
     177                 : /* attribute AUTF8String fileName; */
     178                 : NS_IMETHODIMP nsURL::GetFileName(nsACString & aFileName)
     179                 : {
     180                 :     return NS_ERROR_NOT_IMPLEMENTED;
     181                 : }
     182                 : NS_IMETHODIMP nsURL::SetFileName(const nsACString & aFileName)
     183                 : {
     184                 :     return NS_ERROR_NOT_IMPLEMENTED;
     185                 : }
     186                 : 
     187                 : /* attribute AUTF8String fileBaseName; */
     188                 : NS_IMETHODIMP nsURL::GetFileBaseName(nsACString & aFileBaseName)
     189                 : {
     190                 :     return NS_ERROR_NOT_IMPLEMENTED;
     191                 : }
     192                 : NS_IMETHODIMP nsURL::SetFileBaseName(const nsACString & aFileBaseName)
     193                 : {
     194                 :     return NS_ERROR_NOT_IMPLEMENTED;
     195                 : }
     196                 : 
     197                 : /* attribute AUTF8String fileExtension; */
     198                 : NS_IMETHODIMP nsURL::GetFileExtension(nsACString & aFileExtension)
     199                 : {
     200                 :     return NS_ERROR_NOT_IMPLEMENTED;
     201                 : }
     202                 : NS_IMETHODIMP nsURL::SetFileExtension(const nsACString & aFileExtension)
     203                 : {
     204                 :     return NS_ERROR_NOT_IMPLEMENTED;
     205                 : }
     206                 : 
     207                 : /* AUTF8String getCommonBaseSpec (in nsIURI aURIToCompare); */
     208                 : NS_IMETHODIMP nsURL::GetCommonBaseSpec(nsIURI *aURIToCompare, nsACString & _retval NS_OUTPARAM)
     209                 : {
     210                 :     return NS_ERROR_NOT_IMPLEMENTED;
     211                 : }
     212                 : 
     213                 : /* AUTF8String getRelativeSpec (in nsIURI aURIToCompare); */
     214                 : NS_IMETHODIMP nsURL::GetRelativeSpec(nsIURI *aURIToCompare, nsACString & _retval NS_OUTPARAM)
     215                 : {
     216                 :     return NS_ERROR_NOT_IMPLEMENTED;
     217                 : }
     218                 : 
     219                 : /* End of implementation class template. */
     220                 : #endif
     221                 : 
     222                 : 
     223                 : #endif /* __gen_nsIURL_h__ */

Generated by: LCOV version 1.7