LCOV - app.info - objdir/dist/include/nsIMIMEService.h

LCOV - code coverage report
| Current view: | directory - objdir/dist/include - nsIMIMEService.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/mime/nsIMIMEService.idl
           3                 :  */
           4                 :
           5                 : #ifndef __gen_nsIMIMEService_h__
           6                 : #define __gen_nsIMIMEService_h__
           7                 :
           8                 :
           9                 : #ifndef __gen_nsISupports_h__
          10                 : #include "nsISupports.h"
          11                 : #endif
          12                 :
          13                 : #ifndef __gen_nsIMIMEInfo_h__
          14                 : #include "nsIMIMEInfo.h"
          15                 : #endif
          16                 :
          17                 : #ifndef __gen_nsIURI_h__
          18                 : #include "nsIURI.h"
          19                 : #endif
          20                 :
          21                 : #ifndef __gen_nsIFile_h__
          22                 : #include "nsIFile.h"
          23                 : #endif
          24                 :
          25                 : /* For IDL files that don't want to include root IDL files. */
          26                 : #ifndef NS_NO_VTABLE
          27                 : #define NS_NO_VTABLE
          28                 : #endif
          29                 : #define NS_MIMESERVICE_CID                           \
          30                 : { /* 03af31da-3109-11d3-8cd0-0060b0fc14a3 */         \
          31                 :     0x03af31da,                                      \
          32                 :     0x3109,                                          \
          33                 :     0x11d3,                                          \
          34                 :     {0x8c, 0xd0, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
          35                 : }
          36                 :
          37                 : /* starting interface:    nsIMIMEService */
          38                 : #define NS_IMIMESERVICE_IID_STR "5b3675a1-02db-4f8f-a560-b34736635f47"
          39                 :
          40                 : #define NS_IMIMESERVICE_IID \
          41                 :   {0x5b3675a1, 0x02db, 0x4f8f, \
          42                 :     { 0xa5, 0x60, 0xb3, 0x47, 0x36, 0x63, 0x5f, 0x47 }}
          43                 :
          44             188 : class NS_NO_VTABLE NS_SCRIPTABLE nsIMIMEService : public nsISupports {
          45                 :  public:
          46                 :
          47                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMIMESERVICE_IID)
          48                 :
          49                 :   /* nsIMIMEInfo getFromTypeAndExtension (in ACString aMIMEType, in AUTF8String aFileExt); */
          50                 :   NS_SCRIPTABLE NS_IMETHOD GetFromTypeAndExtension(const nsACString & aMIMEType, const nsACString & aFileExt, nsIMIMEInfo * *_retval NS_OUTPARAM) = 0;
          51                 :
          52                 :   /* ACString getTypeFromExtension (in AUTF8String aFileExt); */
          53                 :   NS_SCRIPTABLE NS_IMETHOD GetTypeFromExtension(const nsACString & aFileExt, nsACString & _retval NS_OUTPARAM) = 0;
          54                 :
          55                 :   /* ACString getTypeFromURI (in nsIURI aURI); */
          56                 :   NS_SCRIPTABLE NS_IMETHOD GetTypeFromURI(nsIURI *aURI, nsACString & _retval NS_OUTPARAM) = 0;
          57                 :
          58                 :   /* ACString getTypeFromFile (in nsIFile aFile); */
          59                 :   NS_SCRIPTABLE NS_IMETHOD GetTypeFromFile(nsIFile *aFile, nsACString & _retval NS_OUTPARAM) = 0;
          60                 :
          61                 :   /* AUTF8String getPrimaryExtension (in ACString aMIMEType, in AUTF8String aFileExt); */
          62                 :   NS_SCRIPTABLE NS_IMETHOD GetPrimaryExtension(const nsACString & aMIMEType, const nsACString & aFileExt, nsACString & _retval NS_OUTPARAM) = 0;
          63                 :
          64                 : };
          65                 :
          66                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIMIMEService, NS_IMIMESERVICE_IID)
          67                 :
          68                 : /* Use this macro when declaring classes that implement this interface. */
          69                 : #define NS_DECL_NSIMIMESERVICE \
          70                 :   NS_SCRIPTABLE NS_IMETHOD GetFromTypeAndExtension(const nsACString & aMIMEType, const nsACString & aFileExt, nsIMIMEInfo * *_retval NS_OUTPARAM); \
          71                 :   NS_SCRIPTABLE NS_IMETHOD GetTypeFromExtension(const nsACString & aFileExt, nsACString & _retval NS_OUTPARAM); \
          72                 :   NS_SCRIPTABLE NS_IMETHOD GetTypeFromURI(nsIURI *aURI, nsACString & _retval NS_OUTPARAM); \
          73                 :   NS_SCRIPTABLE NS_IMETHOD GetTypeFromFile(nsIFile *aFile, nsACString & _retval NS_OUTPARAM); \
          74                 :   NS_SCRIPTABLE NS_IMETHOD GetPrimaryExtension(const nsACString & aMIMEType, const nsACString & aFileExt, nsACString & _retval NS_OUTPARAM);
          75                 :
          76                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
          77                 : #define NS_FORWARD_NSIMIMESERVICE(_to) \
          78                 :   NS_SCRIPTABLE NS_IMETHOD GetFromTypeAndExtension(const nsACString & aMIMEType, const nsACString & aFileExt, nsIMIMEInfo * *_retval NS_OUTPARAM) { return _to GetFromTypeAndExtension(aMIMEType, aFileExt, _retval); } \
          79                 :   NS_SCRIPTABLE NS_IMETHOD GetTypeFromExtension(const nsACString & aFileExt, nsACString & _retval NS_OUTPARAM) { return _to GetTypeFromExtension(aFileExt, _retval); } \
          80                 :   NS_SCRIPTABLE NS_IMETHOD GetTypeFromURI(nsIURI *aURI, nsACString & _retval NS_OUTPARAM) { return _to GetTypeFromURI(aURI, _retval); } \
          81                 :   NS_SCRIPTABLE NS_IMETHOD GetTypeFromFile(nsIFile *aFile, nsACString & _retval NS_OUTPARAM) { return _to GetTypeFromFile(aFile, _retval); } \
          82                 :   NS_SCRIPTABLE NS_IMETHOD GetPrimaryExtension(const nsACString & aMIMEType, const nsACString & aFileExt, nsACString & _retval NS_OUTPARAM) { return _to GetPrimaryExtension(aMIMEType, aFileExt, _retval); }
          83                 :
          84                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
          85                 : #define NS_FORWARD_SAFE_NSIMIMESERVICE(_to) \
          86                 :   NS_SCRIPTABLE NS_IMETHOD GetFromTypeAndExtension(const nsACString & aMIMEType, const nsACString & aFileExt, nsIMIMEInfo * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFromTypeAndExtension(aMIMEType, aFileExt, _retval); } \
          87                 :   NS_SCRIPTABLE NS_IMETHOD GetTypeFromExtension(const nsACString & aFileExt, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTypeFromExtension(aFileExt, _retval); } \
          88                 :   NS_SCRIPTABLE NS_IMETHOD GetTypeFromURI(nsIURI *aURI, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTypeFromURI(aURI, _retval); } \
          89                 :   NS_SCRIPTABLE NS_IMETHOD GetTypeFromFile(nsIFile *aFile, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTypeFromFile(aFile, _retval); } \
          90                 :   NS_SCRIPTABLE NS_IMETHOD GetPrimaryExtension(const nsACString & aMIMEType, const nsACString & aFileExt, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrimaryExtension(aMIMEType, aFileExt, _retval); }
          91                 :
          92                 : #if 0
          93                 : /* Use the code below as a template for the implementation class for this interface. */
          94                 :
          95                 : /* Header file */
          96                 : class nsMIMEService : public nsIMIMEService
          97                 : {
          98                 : public:
          99                 :   NS_DECL_ISUPPORTS
         100                 :   NS_DECL_NSIMIMESERVICE
         101                 :
         102                 :   nsMIMEService();
         103                 :
         104                 : private:
         105                 :   ~nsMIMEService();
         106                 :
         107                 : protected:
         108                 :   /* additional members */
         109                 : };
         110                 :
         111                 : /* Implementation file */
         112                 : NS_IMPL_ISUPPORTS1(nsMIMEService, nsIMIMEService)
         113                 :
         114                 : nsMIMEService::nsMIMEService()
         115                 : {
         116                 :   /* member initializers and constructor code */
         117                 : }
         118                 :
         119                 : nsMIMEService::~nsMIMEService()
         120                 : {
         121                 :   /* destructor code */
         122                 : }
         123                 :
         124                 : /* nsIMIMEInfo getFromTypeAndExtension (in ACString aMIMEType, in AUTF8String aFileExt); */
         125                 : NS_IMETHODIMP nsMIMEService::GetFromTypeAndExtension(const nsACString & aMIMEType, const nsACString & aFileExt, nsIMIMEInfo * *_retval NS_OUTPARAM)
         126                 : {
         127                 :     return NS_ERROR_NOT_IMPLEMENTED;
         128                 : }
         129                 :
         130                 : /* ACString getTypeFromExtension (in AUTF8String aFileExt); */
         131                 : NS_IMETHODIMP nsMIMEService::GetTypeFromExtension(const nsACString & aFileExt, nsACString & _retval NS_OUTPARAM)
         132                 : {
         133                 :     return NS_ERROR_NOT_IMPLEMENTED;
         134                 : }
         135                 :
         136                 : /* ACString getTypeFromURI (in nsIURI aURI); */
         137                 : NS_IMETHODIMP nsMIMEService::GetTypeFromURI(nsIURI *aURI, nsACString & _retval NS_OUTPARAM)
         138                 : {
         139                 :     return NS_ERROR_NOT_IMPLEMENTED;
         140                 : }
         141                 :
         142                 : /* ACString getTypeFromFile (in nsIFile aFile); */
         143                 : NS_IMETHODIMP nsMIMEService::GetTypeFromFile(nsIFile *aFile, nsACString & _retval NS_OUTPARAM)
         144                 : {
         145                 :     return NS_ERROR_NOT_IMPLEMENTED;
         146                 : }
         147                 :
         148                 : /* AUTF8String getPrimaryExtension (in ACString aMIMEType, in AUTF8String aFileExt); */
         149                 : NS_IMETHODIMP nsMIMEService::GetPrimaryExtension(const nsACString & aMIMEType, const nsACString & aFileExt, nsACString & _retval NS_OUTPARAM)
         150                 : {
         151                 :     return NS_ERROR_NOT_IMPLEMENTED;
         152                 : }
         153                 :
         154                 : /* End of implementation class template. */
         155                 : #endif
         156                 :
         157                 :
         158                 : #endif /* __gen_nsIMIMEService_h__ */

Generated by: LCOV version 1.7