LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIMIMEInfo.h (source / functions) Found Hit Coverage
Test: app.info Lines: 5 4 80.0 %
Date: 2012-06-02 Functions: 5 4 80.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/mime/nsIMIMEInfo.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIMIMEInfo_h__
       6                 : #define __gen_nsIMIMEInfo_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                 : class nsIURI; /* forward declaration */
      18                 : 
      19                 : class nsIFile; /* forward declaration */
      20                 : 
      21                 : class nsIUTF8StringEnumerator; /* forward declaration */
      22                 : 
      23                 : class nsIHandlerApp; /* forward declaration */
      24                 : 
      25                 : class nsIArray; /* forward declaration */
      26                 : 
      27                 : class nsIMutableArray; /* forward declaration */
      28                 : 
      29                 : class nsIInterfaceRequestor; /* forward declaration */
      30                 : 
      31                 : typedef PRInt32  nsHandlerInfoAction;
      32                 : 
      33                 : 
      34                 : /* starting interface:    nsIHandlerInfo */
      35                 : #define NS_IHANDLERINFO_IID_STR "325e56a7-3762-4312-aec7-f1fcf84b4145"
      36                 : 
      37                 : #define NS_IHANDLERINFO_IID \
      38                 :   {0x325e56a7, 0x3762, 0x4312, \
      39                 :     { 0xae, 0xc7, 0xf1, 0xfc, 0xf8, 0x4b, 0x41, 0x45 }}
      40                 : 
      41             145 : class NS_NO_VTABLE NS_SCRIPTABLE nsIHandlerInfo : public nsISupports {
      42                 :  public: 
      43                 : 
      44                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHANDLERINFO_IID)
      45                 : 
      46                 :   /* readonly attribute ACString type; */
      47                 :   NS_SCRIPTABLE NS_IMETHOD GetType(nsACString & aType) = 0;
      48                 : 
      49                 :   /* attribute AString description; */
      50                 :   NS_SCRIPTABLE NS_IMETHOD GetDescription(nsAString & aDescription) = 0;
      51                 :   NS_SCRIPTABLE NS_IMETHOD SetDescription(const nsAString & aDescription) = 0;
      52                 : 
      53                 :   /* attribute nsIHandlerApp preferredApplicationHandler; */
      54                 :   NS_SCRIPTABLE NS_IMETHOD GetPreferredApplicationHandler(nsIHandlerApp * *aPreferredApplicationHandler) = 0;
      55                 :   NS_SCRIPTABLE NS_IMETHOD SetPreferredApplicationHandler(nsIHandlerApp *aPreferredApplicationHandler) = 0;
      56                 : 
      57                 :   /* readonly attribute nsIMutableArray possibleApplicationHandlers; */
      58                 :   NS_SCRIPTABLE NS_IMETHOD GetPossibleApplicationHandlers(nsIMutableArray * *aPossibleApplicationHandlers) = 0;
      59                 : 
      60                 :   /* readonly attribute boolean hasDefaultHandler; */
      61                 :   NS_SCRIPTABLE NS_IMETHOD GetHasDefaultHandler(bool *aHasDefaultHandler) = 0;
      62                 : 
      63                 :   /* readonly attribute AString defaultDescription; */
      64                 :   NS_SCRIPTABLE NS_IMETHOD GetDefaultDescription(nsAString & aDefaultDescription) = 0;
      65                 : 
      66                 :   /* void launchWithURI (in nsIURI aURI, [optional] in nsIInterfaceRequestor aWindowContext); */
      67                 :   NS_SCRIPTABLE NS_IMETHOD LaunchWithURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext) = 0;
      68                 : 
      69                 :   /* attribute nsHandlerInfoAction preferredAction; */
      70                 :   NS_SCRIPTABLE NS_IMETHOD GetPreferredAction(nsHandlerInfoAction *aPreferredAction) = 0;
      71                 :   NS_SCRIPTABLE NS_IMETHOD SetPreferredAction(nsHandlerInfoAction aPreferredAction) = 0;
      72                 : 
      73                 :   enum {
      74                 :     saveToDisk = 0,
      75                 :     alwaysAsk = 1,
      76                 :     useHelperApp = 2,
      77                 :     handleInternally = 3,
      78                 :     useSystemDefault = 4
      79                 :   };
      80                 : 
      81                 :   /* attribute boolean alwaysAskBeforeHandling; */
      82                 :   NS_SCRIPTABLE NS_IMETHOD GetAlwaysAskBeforeHandling(bool *aAlwaysAskBeforeHandling) = 0;
      83                 :   NS_SCRIPTABLE NS_IMETHOD SetAlwaysAskBeforeHandling(bool aAlwaysAskBeforeHandling) = 0;
      84                 : 
      85                 : };
      86                 : 
      87                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIHandlerInfo, NS_IHANDLERINFO_IID)
      88                 : 
      89                 : /* Use this macro when declaring classes that implement this interface. */
      90                 : #define NS_DECL_NSIHANDLERINFO \
      91                 :   NS_SCRIPTABLE NS_IMETHOD GetType(nsACString & aType); \
      92                 :   NS_SCRIPTABLE NS_IMETHOD GetDescription(nsAString & aDescription); \
      93                 :   NS_SCRIPTABLE NS_IMETHOD SetDescription(const nsAString & aDescription); \
      94                 :   NS_SCRIPTABLE NS_IMETHOD GetPreferredApplicationHandler(nsIHandlerApp * *aPreferredApplicationHandler); \
      95                 :   NS_SCRIPTABLE NS_IMETHOD SetPreferredApplicationHandler(nsIHandlerApp *aPreferredApplicationHandler); \
      96                 :   NS_SCRIPTABLE NS_IMETHOD GetPossibleApplicationHandlers(nsIMutableArray * *aPossibleApplicationHandlers); \
      97                 :   NS_SCRIPTABLE NS_IMETHOD GetHasDefaultHandler(bool *aHasDefaultHandler); \
      98                 :   NS_SCRIPTABLE NS_IMETHOD GetDefaultDescription(nsAString & aDefaultDescription); \
      99                 :   NS_SCRIPTABLE NS_IMETHOD LaunchWithURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext); \
     100                 :   NS_SCRIPTABLE NS_IMETHOD GetPreferredAction(nsHandlerInfoAction *aPreferredAction); \
     101                 :   NS_SCRIPTABLE NS_IMETHOD SetPreferredAction(nsHandlerInfoAction aPreferredAction); \
     102                 :   NS_SCRIPTABLE NS_IMETHOD GetAlwaysAskBeforeHandling(bool *aAlwaysAskBeforeHandling); \
     103                 :   NS_SCRIPTABLE NS_IMETHOD SetAlwaysAskBeforeHandling(bool aAlwaysAskBeforeHandling); 
     104                 : 
     105                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     106                 : #define NS_FORWARD_NSIHANDLERINFO(_to) \
     107                 :   NS_SCRIPTABLE NS_IMETHOD GetType(nsACString & aType) { return _to GetType(aType); } \
     108                 :   NS_SCRIPTABLE NS_IMETHOD GetDescription(nsAString & aDescription) { return _to GetDescription(aDescription); } \
     109                 :   NS_SCRIPTABLE NS_IMETHOD SetDescription(const nsAString & aDescription) { return _to SetDescription(aDescription); } \
     110                 :   NS_SCRIPTABLE NS_IMETHOD GetPreferredApplicationHandler(nsIHandlerApp * *aPreferredApplicationHandler) { return _to GetPreferredApplicationHandler(aPreferredApplicationHandler); } \
     111                 :   NS_SCRIPTABLE NS_IMETHOD SetPreferredApplicationHandler(nsIHandlerApp *aPreferredApplicationHandler) { return _to SetPreferredApplicationHandler(aPreferredApplicationHandler); } \
     112                 :   NS_SCRIPTABLE NS_IMETHOD GetPossibleApplicationHandlers(nsIMutableArray * *aPossibleApplicationHandlers) { return _to GetPossibleApplicationHandlers(aPossibleApplicationHandlers); } \
     113                 :   NS_SCRIPTABLE NS_IMETHOD GetHasDefaultHandler(bool *aHasDefaultHandler) { return _to GetHasDefaultHandler(aHasDefaultHandler); } \
     114                 :   NS_SCRIPTABLE NS_IMETHOD GetDefaultDescription(nsAString & aDefaultDescription) { return _to GetDefaultDescription(aDefaultDescription); } \
     115                 :   NS_SCRIPTABLE NS_IMETHOD LaunchWithURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext) { return _to LaunchWithURI(aURI, aWindowContext); } \
     116                 :   NS_SCRIPTABLE NS_IMETHOD GetPreferredAction(nsHandlerInfoAction *aPreferredAction) { return _to GetPreferredAction(aPreferredAction); } \
     117                 :   NS_SCRIPTABLE NS_IMETHOD SetPreferredAction(nsHandlerInfoAction aPreferredAction) { return _to SetPreferredAction(aPreferredAction); } \
     118                 :   NS_SCRIPTABLE NS_IMETHOD GetAlwaysAskBeforeHandling(bool *aAlwaysAskBeforeHandling) { return _to GetAlwaysAskBeforeHandling(aAlwaysAskBeforeHandling); } \
     119                 :   NS_SCRIPTABLE NS_IMETHOD SetAlwaysAskBeforeHandling(bool aAlwaysAskBeforeHandling) { return _to SetAlwaysAskBeforeHandling(aAlwaysAskBeforeHandling); } 
     120                 : 
     121                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     122                 : #define NS_FORWARD_SAFE_NSIHANDLERINFO(_to) \
     123                 :   NS_SCRIPTABLE NS_IMETHOD GetType(nsACString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
     124                 :   NS_SCRIPTABLE NS_IMETHOD GetDescription(nsAString & aDescription) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDescription(aDescription); } \
     125                 :   NS_SCRIPTABLE NS_IMETHOD SetDescription(const nsAString & aDescription) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDescription(aDescription); } \
     126                 :   NS_SCRIPTABLE NS_IMETHOD GetPreferredApplicationHandler(nsIHandlerApp * *aPreferredApplicationHandler) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPreferredApplicationHandler(aPreferredApplicationHandler); } \
     127                 :   NS_SCRIPTABLE NS_IMETHOD SetPreferredApplicationHandler(nsIHandlerApp *aPreferredApplicationHandler) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPreferredApplicationHandler(aPreferredApplicationHandler); } \
     128                 :   NS_SCRIPTABLE NS_IMETHOD GetPossibleApplicationHandlers(nsIMutableArray * *aPossibleApplicationHandlers) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPossibleApplicationHandlers(aPossibleApplicationHandlers); } \
     129                 :   NS_SCRIPTABLE NS_IMETHOD GetHasDefaultHandler(bool *aHasDefaultHandler) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasDefaultHandler(aHasDefaultHandler); } \
     130                 :   NS_SCRIPTABLE NS_IMETHOD GetDefaultDescription(nsAString & aDefaultDescription) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultDescription(aDefaultDescription); } \
     131                 :   NS_SCRIPTABLE NS_IMETHOD LaunchWithURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext) { return !_to ? NS_ERROR_NULL_POINTER : _to->LaunchWithURI(aURI, aWindowContext); } \
     132                 :   NS_SCRIPTABLE NS_IMETHOD GetPreferredAction(nsHandlerInfoAction *aPreferredAction) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPreferredAction(aPreferredAction); } \
     133                 :   NS_SCRIPTABLE NS_IMETHOD SetPreferredAction(nsHandlerInfoAction aPreferredAction) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPreferredAction(aPreferredAction); } \
     134                 :   NS_SCRIPTABLE NS_IMETHOD GetAlwaysAskBeforeHandling(bool *aAlwaysAskBeforeHandling) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAlwaysAskBeforeHandling(aAlwaysAskBeforeHandling); } \
     135                 :   NS_SCRIPTABLE NS_IMETHOD SetAlwaysAskBeforeHandling(bool aAlwaysAskBeforeHandling) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAlwaysAskBeforeHandling(aAlwaysAskBeforeHandling); } 
     136                 : 
     137                 : #if 0
     138                 : /* Use the code below as a template for the implementation class for this interface. */
     139                 : 
     140                 : /* Header file */
     141                 : class nsHandlerInfo : public nsIHandlerInfo
     142                 : {
     143                 : public:
     144                 :   NS_DECL_ISUPPORTS
     145                 :   NS_DECL_NSIHANDLERINFO
     146                 : 
     147                 :   nsHandlerInfo();
     148                 : 
     149                 : private:
     150                 :   ~nsHandlerInfo();
     151                 : 
     152                 : protected:
     153                 :   /* additional members */
     154                 : };
     155                 : 
     156                 : /* Implementation file */
     157                 : NS_IMPL_ISUPPORTS1(nsHandlerInfo, nsIHandlerInfo)
     158                 : 
     159                 : nsHandlerInfo::nsHandlerInfo()
     160                 : {
     161                 :   /* member initializers and constructor code */
     162                 : }
     163                 : 
     164                 : nsHandlerInfo::~nsHandlerInfo()
     165                 : {
     166                 :   /* destructor code */
     167                 : }
     168                 : 
     169                 : /* readonly attribute ACString type; */
     170                 : NS_IMETHODIMP nsHandlerInfo::GetType(nsACString & aType)
     171                 : {
     172                 :     return NS_ERROR_NOT_IMPLEMENTED;
     173                 : }
     174                 : 
     175                 : /* attribute AString description; */
     176                 : NS_IMETHODIMP nsHandlerInfo::GetDescription(nsAString & aDescription)
     177                 : {
     178                 :     return NS_ERROR_NOT_IMPLEMENTED;
     179                 : }
     180                 : NS_IMETHODIMP nsHandlerInfo::SetDescription(const nsAString & aDescription)
     181                 : {
     182                 :     return NS_ERROR_NOT_IMPLEMENTED;
     183                 : }
     184                 : 
     185                 : /* attribute nsIHandlerApp preferredApplicationHandler; */
     186                 : NS_IMETHODIMP nsHandlerInfo::GetPreferredApplicationHandler(nsIHandlerApp * *aPreferredApplicationHandler)
     187                 : {
     188                 :     return NS_ERROR_NOT_IMPLEMENTED;
     189                 : }
     190                 : NS_IMETHODIMP nsHandlerInfo::SetPreferredApplicationHandler(nsIHandlerApp *aPreferredApplicationHandler)
     191                 : {
     192                 :     return NS_ERROR_NOT_IMPLEMENTED;
     193                 : }
     194                 : 
     195                 : /* readonly attribute nsIMutableArray possibleApplicationHandlers; */
     196                 : NS_IMETHODIMP nsHandlerInfo::GetPossibleApplicationHandlers(nsIMutableArray * *aPossibleApplicationHandlers)
     197                 : {
     198                 :     return NS_ERROR_NOT_IMPLEMENTED;
     199                 : }
     200                 : 
     201                 : /* readonly attribute boolean hasDefaultHandler; */
     202                 : NS_IMETHODIMP nsHandlerInfo::GetHasDefaultHandler(bool *aHasDefaultHandler)
     203                 : {
     204                 :     return NS_ERROR_NOT_IMPLEMENTED;
     205                 : }
     206                 : 
     207                 : /* readonly attribute AString defaultDescription; */
     208                 : NS_IMETHODIMP nsHandlerInfo::GetDefaultDescription(nsAString & aDefaultDescription)
     209                 : {
     210                 :     return NS_ERROR_NOT_IMPLEMENTED;
     211                 : }
     212                 : 
     213                 : /* void launchWithURI (in nsIURI aURI, [optional] in nsIInterfaceRequestor aWindowContext); */
     214                 : NS_IMETHODIMP nsHandlerInfo::LaunchWithURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext)
     215                 : {
     216                 :     return NS_ERROR_NOT_IMPLEMENTED;
     217                 : }
     218                 : 
     219                 : /* attribute nsHandlerInfoAction preferredAction; */
     220                 : NS_IMETHODIMP nsHandlerInfo::GetPreferredAction(nsHandlerInfoAction *aPreferredAction)
     221                 : {
     222                 :     return NS_ERROR_NOT_IMPLEMENTED;
     223                 : }
     224                 : NS_IMETHODIMP nsHandlerInfo::SetPreferredAction(nsHandlerInfoAction aPreferredAction)
     225                 : {
     226                 :     return NS_ERROR_NOT_IMPLEMENTED;
     227                 : }
     228                 : 
     229                 : /* attribute boolean alwaysAskBeforeHandling; */
     230                 : NS_IMETHODIMP nsHandlerInfo::GetAlwaysAskBeforeHandling(bool *aAlwaysAskBeforeHandling)
     231                 : {
     232                 :     return NS_ERROR_NOT_IMPLEMENTED;
     233                 : }
     234                 : NS_IMETHODIMP nsHandlerInfo::SetAlwaysAskBeforeHandling(bool aAlwaysAskBeforeHandling)
     235                 : {
     236                 :     return NS_ERROR_NOT_IMPLEMENTED;
     237                 : }
     238                 : 
     239                 : /* End of implementation class template. */
     240                 : #endif
     241                 : 
     242                 : 
     243                 : /* starting interface:    nsIMIMEInfo */
     244                 : #define NS_IMIMEINFO_IID_STR "1c21acef-c7a1-40c6-9d40-a20480ee53a1"
     245                 : 
     246                 : #define NS_IMIMEINFO_IID \
     247                 :   {0x1c21acef, 0xc7a1, 0x40c6, \
     248                 :     { 0x9d, 0x40, 0xa2, 0x04, 0x80, 0xee, 0x53, 0xa1 }}
     249                 : 
     250             145 : class NS_NO_VTABLE NS_SCRIPTABLE nsIMIMEInfo : public nsIHandlerInfo {
     251                 :  public: 
     252                 : 
     253                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMIMEINFO_IID)
     254                 : 
     255                 :   /* nsIUTF8StringEnumerator getFileExtensions (); */
     256                 :   NS_SCRIPTABLE NS_IMETHOD GetFileExtensions(nsIUTF8StringEnumerator * *_retval NS_OUTPARAM) = 0;
     257                 : 
     258                 :   /* void setFileExtensions (in AUTF8String aExtensions); */
     259                 :   NS_SCRIPTABLE NS_IMETHOD SetFileExtensions(const nsACString & aExtensions) = 0;
     260                 : 
     261                 :   /* boolean extensionExists (in AUTF8String aExtension); */
     262                 :   NS_SCRIPTABLE NS_IMETHOD ExtensionExists(const nsACString & aExtension, bool *_retval NS_OUTPARAM) = 0;
     263                 : 
     264                 :   /* void appendExtension (in AUTF8String aExtension); */
     265                 :   NS_SCRIPTABLE NS_IMETHOD AppendExtension(const nsACString & aExtension) = 0;
     266                 : 
     267                 :   /* attribute AUTF8String primaryExtension; */
     268                 :   NS_SCRIPTABLE NS_IMETHOD GetPrimaryExtension(nsACString & aPrimaryExtension) = 0;
     269                 :   NS_SCRIPTABLE NS_IMETHOD SetPrimaryExtension(const nsACString & aPrimaryExtension) = 0;
     270                 : 
     271                 :   /* readonly attribute ACString MIMEType; */
     272                 :   NS_SCRIPTABLE NS_IMETHOD GetMIMEType(nsACString & aMIMEType) = 0;
     273                 : 
     274                 :   /* boolean equals (in nsIMIMEInfo aMIMEInfo); */
     275                 :   NS_SCRIPTABLE NS_IMETHOD Equals(nsIMIMEInfo *aMIMEInfo, bool *_retval NS_OUTPARAM) = 0;
     276                 : 
     277                 :   /* readonly attribute nsIArray possibleLocalHandlers; */
     278                 :   NS_SCRIPTABLE NS_IMETHOD GetPossibleLocalHandlers(nsIArray * *aPossibleLocalHandlers) = 0;
     279                 : 
     280                 :   /* void launchWithFile (in nsIFile aFile); */
     281                 :   NS_SCRIPTABLE NS_IMETHOD LaunchWithFile(nsIFile *aFile) = 0;
     282                 : 
     283                 : };
     284                 : 
     285                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIMIMEInfo, NS_IMIMEINFO_IID)
     286                 : 
     287                 : /* Use this macro when declaring classes that implement this interface. */
     288                 : #define NS_DECL_NSIMIMEINFO \
     289                 :   NS_SCRIPTABLE NS_IMETHOD GetFileExtensions(nsIUTF8StringEnumerator * *_retval NS_OUTPARAM); \
     290                 :   NS_SCRIPTABLE NS_IMETHOD SetFileExtensions(const nsACString & aExtensions); \
     291                 :   NS_SCRIPTABLE NS_IMETHOD ExtensionExists(const nsACString & aExtension, bool *_retval NS_OUTPARAM); \
     292                 :   NS_SCRIPTABLE NS_IMETHOD AppendExtension(const nsACString & aExtension); \
     293                 :   NS_SCRIPTABLE NS_IMETHOD GetPrimaryExtension(nsACString & aPrimaryExtension); \
     294                 :   NS_SCRIPTABLE NS_IMETHOD SetPrimaryExtension(const nsACString & aPrimaryExtension); \
     295                 :   NS_SCRIPTABLE NS_IMETHOD GetMIMEType(nsACString & aMIMEType); \
     296                 :   NS_SCRIPTABLE NS_IMETHOD Equals(nsIMIMEInfo *aMIMEInfo, bool *_retval NS_OUTPARAM); \
     297                 :   NS_SCRIPTABLE NS_IMETHOD GetPossibleLocalHandlers(nsIArray * *aPossibleLocalHandlers); \
     298                 :   NS_SCRIPTABLE NS_IMETHOD LaunchWithFile(nsIFile *aFile); 
     299                 : 
     300                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     301                 : #define NS_FORWARD_NSIMIMEINFO(_to) \
     302                 :   NS_SCRIPTABLE NS_IMETHOD GetFileExtensions(nsIUTF8StringEnumerator * *_retval NS_OUTPARAM) { return _to GetFileExtensions(_retval); } \
     303                 :   NS_SCRIPTABLE NS_IMETHOD SetFileExtensions(const nsACString & aExtensions) { return _to SetFileExtensions(aExtensions); } \
     304                 :   NS_SCRIPTABLE NS_IMETHOD ExtensionExists(const nsACString & aExtension, bool *_retval NS_OUTPARAM) { return _to ExtensionExists(aExtension, _retval); } \
     305                 :   NS_SCRIPTABLE NS_IMETHOD AppendExtension(const nsACString & aExtension) { return _to AppendExtension(aExtension); } \
     306                 :   NS_SCRIPTABLE NS_IMETHOD GetPrimaryExtension(nsACString & aPrimaryExtension) { return _to GetPrimaryExtension(aPrimaryExtension); } \
     307                 :   NS_SCRIPTABLE NS_IMETHOD SetPrimaryExtension(const nsACString & aPrimaryExtension) { return _to SetPrimaryExtension(aPrimaryExtension); } \
     308                 :   NS_SCRIPTABLE NS_IMETHOD GetMIMEType(nsACString & aMIMEType) { return _to GetMIMEType(aMIMEType); } \
     309                 :   NS_SCRIPTABLE NS_IMETHOD Equals(nsIMIMEInfo *aMIMEInfo, bool *_retval NS_OUTPARAM) { return _to Equals(aMIMEInfo, _retval); } \
     310                 :   NS_SCRIPTABLE NS_IMETHOD GetPossibleLocalHandlers(nsIArray * *aPossibleLocalHandlers) { return _to GetPossibleLocalHandlers(aPossibleLocalHandlers); } \
     311                 :   NS_SCRIPTABLE NS_IMETHOD LaunchWithFile(nsIFile *aFile) { return _to LaunchWithFile(aFile); } 
     312                 : 
     313                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     314                 : #define NS_FORWARD_SAFE_NSIMIMEINFO(_to) \
     315                 :   NS_SCRIPTABLE NS_IMETHOD GetFileExtensions(nsIUTF8StringEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFileExtensions(_retval); } \
     316                 :   NS_SCRIPTABLE NS_IMETHOD SetFileExtensions(const nsACString & aExtensions) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFileExtensions(aExtensions); } \
     317                 :   NS_SCRIPTABLE NS_IMETHOD ExtensionExists(const nsACString & aExtension, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ExtensionExists(aExtension, _retval); } \
     318                 :   NS_SCRIPTABLE NS_IMETHOD AppendExtension(const nsACString & aExtension) { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendExtension(aExtension); } \
     319                 :   NS_SCRIPTABLE NS_IMETHOD GetPrimaryExtension(nsACString & aPrimaryExtension) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrimaryExtension(aPrimaryExtension); } \
     320                 :   NS_SCRIPTABLE NS_IMETHOD SetPrimaryExtension(const nsACString & aPrimaryExtension) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrimaryExtension(aPrimaryExtension); } \
     321                 :   NS_SCRIPTABLE NS_IMETHOD GetMIMEType(nsACString & aMIMEType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMIMEType(aMIMEType); } \
     322                 :   NS_SCRIPTABLE NS_IMETHOD Equals(nsIMIMEInfo *aMIMEInfo, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Equals(aMIMEInfo, _retval); } \
     323                 :   NS_SCRIPTABLE NS_IMETHOD GetPossibleLocalHandlers(nsIArray * *aPossibleLocalHandlers) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPossibleLocalHandlers(aPossibleLocalHandlers); } \
     324                 :   NS_SCRIPTABLE NS_IMETHOD LaunchWithFile(nsIFile *aFile) { return !_to ? NS_ERROR_NULL_POINTER : _to->LaunchWithFile(aFile); } 
     325                 : 
     326                 : #if 0
     327                 : /* Use the code below as a template for the implementation class for this interface. */
     328                 : 
     329                 : /* Header file */
     330                 : class nsMIMEInfo : public nsIMIMEInfo
     331                 : {
     332                 : public:
     333                 :   NS_DECL_ISUPPORTS
     334                 :   NS_DECL_NSIMIMEINFO
     335                 : 
     336                 :   nsMIMEInfo();
     337                 : 
     338                 : private:
     339                 :   ~nsMIMEInfo();
     340                 : 
     341                 : protected:
     342                 :   /* additional members */
     343                 : };
     344                 : 
     345                 : /* Implementation file */
     346                 : NS_IMPL_ISUPPORTS1(nsMIMEInfo, nsIMIMEInfo)
     347                 : 
     348                 : nsMIMEInfo::nsMIMEInfo()
     349                 : {
     350                 :   /* member initializers and constructor code */
     351                 : }
     352                 : 
     353                 : nsMIMEInfo::~nsMIMEInfo()
     354                 : {
     355                 :   /* destructor code */
     356                 : }
     357                 : 
     358                 : /* nsIUTF8StringEnumerator getFileExtensions (); */
     359                 : NS_IMETHODIMP nsMIMEInfo::GetFileExtensions(nsIUTF8StringEnumerator * *_retval NS_OUTPARAM)
     360                 : {
     361                 :     return NS_ERROR_NOT_IMPLEMENTED;
     362                 : }
     363                 : 
     364                 : /* void setFileExtensions (in AUTF8String aExtensions); */
     365                 : NS_IMETHODIMP nsMIMEInfo::SetFileExtensions(const nsACString & aExtensions)
     366                 : {
     367                 :     return NS_ERROR_NOT_IMPLEMENTED;
     368                 : }
     369                 : 
     370                 : /* boolean extensionExists (in AUTF8String aExtension); */
     371                 : NS_IMETHODIMP nsMIMEInfo::ExtensionExists(const nsACString & aExtension, bool *_retval NS_OUTPARAM)
     372                 : {
     373                 :     return NS_ERROR_NOT_IMPLEMENTED;
     374                 : }
     375                 : 
     376                 : /* void appendExtension (in AUTF8String aExtension); */
     377                 : NS_IMETHODIMP nsMIMEInfo::AppendExtension(const nsACString & aExtension)
     378                 : {
     379                 :     return NS_ERROR_NOT_IMPLEMENTED;
     380                 : }
     381                 : 
     382                 : /* attribute AUTF8String primaryExtension; */
     383                 : NS_IMETHODIMP nsMIMEInfo::GetPrimaryExtension(nsACString & aPrimaryExtension)
     384                 : {
     385                 :     return NS_ERROR_NOT_IMPLEMENTED;
     386                 : }
     387                 : NS_IMETHODIMP nsMIMEInfo::SetPrimaryExtension(const nsACString & aPrimaryExtension)
     388                 : {
     389                 :     return NS_ERROR_NOT_IMPLEMENTED;
     390                 : }
     391                 : 
     392                 : /* readonly attribute ACString MIMEType; */
     393                 : NS_IMETHODIMP nsMIMEInfo::GetMIMEType(nsACString & aMIMEType)
     394                 : {
     395                 :     return NS_ERROR_NOT_IMPLEMENTED;
     396                 : }
     397                 : 
     398                 : /* boolean equals (in nsIMIMEInfo aMIMEInfo); */
     399                 : NS_IMETHODIMP nsMIMEInfo::Equals(nsIMIMEInfo *aMIMEInfo, bool *_retval NS_OUTPARAM)
     400                 : {
     401                 :     return NS_ERROR_NOT_IMPLEMENTED;
     402                 : }
     403                 : 
     404                 : /* readonly attribute nsIArray possibleLocalHandlers; */
     405                 : NS_IMETHODIMP nsMIMEInfo::GetPossibleLocalHandlers(nsIArray * *aPossibleLocalHandlers)
     406                 : {
     407                 :     return NS_ERROR_NOT_IMPLEMENTED;
     408                 : }
     409                 : 
     410                 : /* void launchWithFile (in nsIFile aFile); */
     411                 : NS_IMETHODIMP nsMIMEInfo::LaunchWithFile(nsIFile *aFile)
     412                 : {
     413                 :     return NS_ERROR_NOT_IMPLEMENTED;
     414                 : }
     415                 : 
     416                 : /* End of implementation class template. */
     417                 : #endif
     418                 : 
     419                 : 
     420                 : /* starting interface:    nsIHandlerApp */
     421                 : #define NS_IHANDLERAPP_IID_STR "8bdf20a4-9170-4548-af52-78311a44f920"
     422                 : 
     423                 : #define NS_IHANDLERAPP_IID \
     424                 :   {0x8bdf20a4, 0x9170, 0x4548, \
     425                 :     { 0xaf, 0x52, 0x78, 0x31, 0x1a, 0x44, 0xf9, 0x20 }}
     426                 : 
     427               9 : class NS_NO_VTABLE NS_SCRIPTABLE nsIHandlerApp : public nsISupports {
     428                 :  public: 
     429                 : 
     430                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHANDLERAPP_IID)
     431                 : 
     432                 :   /* attribute AString name; */
     433                 :   NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) = 0;
     434                 :   NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName) = 0;
     435                 : 
     436                 :   /* attribute AString detailedDescription; */
     437                 :   NS_SCRIPTABLE NS_IMETHOD GetDetailedDescription(nsAString & aDetailedDescription) = 0;
     438                 :   NS_SCRIPTABLE NS_IMETHOD SetDetailedDescription(const nsAString & aDetailedDescription) = 0;
     439                 : 
     440                 :   /* boolean equals (in nsIHandlerApp aHandlerApp); */
     441                 :   NS_SCRIPTABLE NS_IMETHOD Equals(nsIHandlerApp *aHandlerApp, bool *_retval NS_OUTPARAM) = 0;
     442                 : 
     443                 :   /* void launchWithURI (in nsIURI aURI, [optional] in nsIInterfaceRequestor aWindowContext); */
     444                 :   NS_SCRIPTABLE NS_IMETHOD LaunchWithURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext) = 0;
     445                 : 
     446                 : };
     447                 : 
     448                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIHandlerApp, NS_IHANDLERAPP_IID)
     449                 : 
     450                 : /* Use this macro when declaring classes that implement this interface. */
     451                 : #define NS_DECL_NSIHANDLERAPP \
     452                 :   NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName); \
     453                 :   NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName); \
     454                 :   NS_SCRIPTABLE NS_IMETHOD GetDetailedDescription(nsAString & aDetailedDescription); \
     455                 :   NS_SCRIPTABLE NS_IMETHOD SetDetailedDescription(const nsAString & aDetailedDescription); \
     456                 :   NS_SCRIPTABLE NS_IMETHOD Equals(nsIHandlerApp *aHandlerApp, bool *_retval NS_OUTPARAM); \
     457                 :   NS_SCRIPTABLE NS_IMETHOD LaunchWithURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext); 
     458                 : 
     459                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     460                 : #define NS_FORWARD_NSIHANDLERAPP(_to) \
     461                 :   NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
     462                 :   NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName) { return _to SetName(aName); } \
     463                 :   NS_SCRIPTABLE NS_IMETHOD GetDetailedDescription(nsAString & aDetailedDescription) { return _to GetDetailedDescription(aDetailedDescription); } \
     464                 :   NS_SCRIPTABLE NS_IMETHOD SetDetailedDescription(const nsAString & aDetailedDescription) { return _to SetDetailedDescription(aDetailedDescription); } \
     465                 :   NS_SCRIPTABLE NS_IMETHOD Equals(nsIHandlerApp *aHandlerApp, bool *_retval NS_OUTPARAM) { return _to Equals(aHandlerApp, _retval); } \
     466                 :   NS_SCRIPTABLE NS_IMETHOD LaunchWithURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext) { return _to LaunchWithURI(aURI, aWindowContext); } 
     467                 : 
     468                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     469                 : #define NS_FORWARD_SAFE_NSIHANDLERAPP(_to) \
     470                 :   NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
     471                 :   NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetName(aName); } \
     472                 :   NS_SCRIPTABLE NS_IMETHOD GetDetailedDescription(nsAString & aDetailedDescription) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDetailedDescription(aDetailedDescription); } \
     473                 :   NS_SCRIPTABLE NS_IMETHOD SetDetailedDescription(const nsAString & aDetailedDescription) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDetailedDescription(aDetailedDescription); } \
     474                 :   NS_SCRIPTABLE NS_IMETHOD Equals(nsIHandlerApp *aHandlerApp, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Equals(aHandlerApp, _retval); } \
     475                 :   NS_SCRIPTABLE NS_IMETHOD LaunchWithURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext) { return !_to ? NS_ERROR_NULL_POINTER : _to->LaunchWithURI(aURI, aWindowContext); } 
     476                 : 
     477                 : #if 0
     478                 : /* Use the code below as a template for the implementation class for this interface. */
     479                 : 
     480                 : /* Header file */
     481                 : class nsHandlerApp : public nsIHandlerApp
     482                 : {
     483                 : public:
     484                 :   NS_DECL_ISUPPORTS
     485                 :   NS_DECL_NSIHANDLERAPP
     486                 : 
     487                 :   nsHandlerApp();
     488                 : 
     489                 : private:
     490                 :   ~nsHandlerApp();
     491                 : 
     492                 : protected:
     493                 :   /* additional members */
     494                 : };
     495                 : 
     496                 : /* Implementation file */
     497                 : NS_IMPL_ISUPPORTS1(nsHandlerApp, nsIHandlerApp)
     498                 : 
     499                 : nsHandlerApp::nsHandlerApp()
     500                 : {
     501                 :   /* member initializers and constructor code */
     502                 : }
     503                 : 
     504                 : nsHandlerApp::~nsHandlerApp()
     505                 : {
     506                 :   /* destructor code */
     507                 : }
     508                 : 
     509                 : /* attribute AString name; */
     510                 : NS_IMETHODIMP nsHandlerApp::GetName(nsAString & aName)
     511                 : {
     512                 :     return NS_ERROR_NOT_IMPLEMENTED;
     513                 : }
     514                 : NS_IMETHODIMP nsHandlerApp::SetName(const nsAString & aName)
     515                 : {
     516                 :     return NS_ERROR_NOT_IMPLEMENTED;
     517                 : }
     518                 : 
     519                 : /* attribute AString detailedDescription; */
     520                 : NS_IMETHODIMP nsHandlerApp::GetDetailedDescription(nsAString & aDetailedDescription)
     521                 : {
     522                 :     return NS_ERROR_NOT_IMPLEMENTED;
     523                 : }
     524                 : NS_IMETHODIMP nsHandlerApp::SetDetailedDescription(const nsAString & aDetailedDescription)
     525                 : {
     526                 :     return NS_ERROR_NOT_IMPLEMENTED;
     527                 : }
     528                 : 
     529                 : /* boolean equals (in nsIHandlerApp aHandlerApp); */
     530                 : NS_IMETHODIMP nsHandlerApp::Equals(nsIHandlerApp *aHandlerApp, bool *_retval NS_OUTPARAM)
     531                 : {
     532                 :     return NS_ERROR_NOT_IMPLEMENTED;
     533                 : }
     534                 : 
     535                 : /* void launchWithURI (in nsIURI aURI, [optional] in nsIInterfaceRequestor aWindowContext); */
     536                 : NS_IMETHODIMP nsHandlerApp::LaunchWithURI(nsIURI *aURI, nsIInterfaceRequestor *aWindowContext)
     537                 : {
     538                 :     return NS_ERROR_NOT_IMPLEMENTED;
     539                 : }
     540                 : 
     541                 : /* End of implementation class template. */
     542                 : #endif
     543                 : 
     544                 : 
     545                 : /* starting interface:    nsILocalHandlerApp */
     546                 : #define NS_ILOCALHANDLERAPP_IID_STR "d36b6329-52ae-4f45-80f4-b2536ae5f8b2"
     547                 : 
     548                 : #define NS_ILOCALHANDLERAPP_IID \
     549                 :   {0xd36b6329, 0x52ae, 0x4f45, \
     550                 :     { 0x80, 0xf4, 0xb2, 0x53, 0x6a, 0xe5, 0xf8, 0xb2 }}
     551                 : 
     552               9 : class NS_NO_VTABLE NS_SCRIPTABLE nsILocalHandlerApp : public nsIHandlerApp {
     553                 :  public: 
     554                 : 
     555                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILOCALHANDLERAPP_IID)
     556                 : 
     557                 :   /* attribute nsIFile executable; */
     558                 :   NS_SCRIPTABLE NS_IMETHOD GetExecutable(nsIFile * *aExecutable) = 0;
     559                 :   NS_SCRIPTABLE NS_IMETHOD SetExecutable(nsIFile *aExecutable) = 0;
     560                 : 
     561                 :   /* readonly attribute unsigned long parameterCount; */
     562                 :   NS_SCRIPTABLE NS_IMETHOD GetParameterCount(PRUint32 *aParameterCount) = 0;
     563                 : 
     564                 :   /* void clearParameters (); */
     565                 :   NS_SCRIPTABLE NS_IMETHOD ClearParameters(void) = 0;
     566                 : 
     567                 :   /* void appendParameter (in AString param); */
     568                 :   NS_SCRIPTABLE NS_IMETHOD AppendParameter(const nsAString & param) = 0;
     569                 : 
     570                 :   /* AString getParameter (in unsigned long parameterIndex); */
     571                 :   NS_SCRIPTABLE NS_IMETHOD GetParameter(PRUint32 parameterIndex, nsAString & _retval NS_OUTPARAM) = 0;
     572                 : 
     573                 :   /* boolean parameterExists (in AString param); */
     574                 :   NS_SCRIPTABLE NS_IMETHOD ParameterExists(const nsAString & param, bool *_retval NS_OUTPARAM) = 0;
     575                 : 
     576                 : };
     577                 : 
     578                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsILocalHandlerApp, NS_ILOCALHANDLERAPP_IID)
     579                 : 
     580                 : /* Use this macro when declaring classes that implement this interface. */
     581                 : #define NS_DECL_NSILOCALHANDLERAPP \
     582                 :   NS_SCRIPTABLE NS_IMETHOD GetExecutable(nsIFile * *aExecutable); \
     583                 :   NS_SCRIPTABLE NS_IMETHOD SetExecutable(nsIFile *aExecutable); \
     584                 :   NS_SCRIPTABLE NS_IMETHOD GetParameterCount(PRUint32 *aParameterCount); \
     585                 :   NS_SCRIPTABLE NS_IMETHOD ClearParameters(void); \
     586                 :   NS_SCRIPTABLE NS_IMETHOD AppendParameter(const nsAString & param); \
     587                 :   NS_SCRIPTABLE NS_IMETHOD GetParameter(PRUint32 parameterIndex, nsAString & _retval NS_OUTPARAM); \
     588                 :   NS_SCRIPTABLE NS_IMETHOD ParameterExists(const nsAString & param, bool *_retval NS_OUTPARAM); 
     589                 : 
     590                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     591                 : #define NS_FORWARD_NSILOCALHANDLERAPP(_to) \
     592                 :   NS_SCRIPTABLE NS_IMETHOD GetExecutable(nsIFile * *aExecutable) { return _to GetExecutable(aExecutable); } \
     593                 :   NS_SCRIPTABLE NS_IMETHOD SetExecutable(nsIFile *aExecutable) { return _to SetExecutable(aExecutable); } \
     594                 :   NS_SCRIPTABLE NS_IMETHOD GetParameterCount(PRUint32 *aParameterCount) { return _to GetParameterCount(aParameterCount); } \
     595                 :   NS_SCRIPTABLE NS_IMETHOD ClearParameters(void) { return _to ClearParameters(); } \
     596                 :   NS_SCRIPTABLE NS_IMETHOD AppendParameter(const nsAString & param) { return _to AppendParameter(param); } \
     597                 :   NS_SCRIPTABLE NS_IMETHOD GetParameter(PRUint32 parameterIndex, nsAString & _retval NS_OUTPARAM) { return _to GetParameter(parameterIndex, _retval); } \
     598                 :   NS_SCRIPTABLE NS_IMETHOD ParameterExists(const nsAString & param, bool *_retval NS_OUTPARAM) { return _to ParameterExists(param, _retval); } 
     599                 : 
     600                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     601                 : #define NS_FORWARD_SAFE_NSILOCALHANDLERAPP(_to) \
     602                 :   NS_SCRIPTABLE NS_IMETHOD GetExecutable(nsIFile * *aExecutable) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExecutable(aExecutable); } \
     603                 :   NS_SCRIPTABLE NS_IMETHOD SetExecutable(nsIFile *aExecutable) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetExecutable(aExecutable); } \
     604                 :   NS_SCRIPTABLE NS_IMETHOD GetParameterCount(PRUint32 *aParameterCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParameterCount(aParameterCount); } \
     605                 :   NS_SCRIPTABLE NS_IMETHOD ClearParameters(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearParameters(); } \
     606                 :   NS_SCRIPTABLE NS_IMETHOD AppendParameter(const nsAString & param) { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendParameter(param); } \
     607                 :   NS_SCRIPTABLE NS_IMETHOD GetParameter(PRUint32 parameterIndex, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParameter(parameterIndex, _retval); } \
     608                 :   NS_SCRIPTABLE NS_IMETHOD ParameterExists(const nsAString & param, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ParameterExists(param, _retval); } 
     609                 : 
     610                 : #if 0
     611                 : /* Use the code below as a template for the implementation class for this interface. */
     612                 : 
     613                 : /* Header file */
     614                 : class nsLocalHandlerApp : public nsILocalHandlerApp
     615                 : {
     616                 : public:
     617                 :   NS_DECL_ISUPPORTS
     618                 :   NS_DECL_NSILOCALHANDLERAPP
     619                 : 
     620                 :   nsLocalHandlerApp();
     621                 : 
     622                 : private:
     623                 :   ~nsLocalHandlerApp();
     624                 : 
     625                 : protected:
     626                 :   /* additional members */
     627                 : };
     628                 : 
     629                 : /* Implementation file */
     630                 : NS_IMPL_ISUPPORTS1(nsLocalHandlerApp, nsILocalHandlerApp)
     631                 : 
     632                 : nsLocalHandlerApp::nsLocalHandlerApp()
     633                 : {
     634                 :   /* member initializers and constructor code */
     635                 : }
     636                 : 
     637                 : nsLocalHandlerApp::~nsLocalHandlerApp()
     638                 : {
     639                 :   /* destructor code */
     640                 : }
     641                 : 
     642                 : /* attribute nsIFile executable; */
     643                 : NS_IMETHODIMP nsLocalHandlerApp::GetExecutable(nsIFile * *aExecutable)
     644                 : {
     645                 :     return NS_ERROR_NOT_IMPLEMENTED;
     646                 : }
     647                 : NS_IMETHODIMP nsLocalHandlerApp::SetExecutable(nsIFile *aExecutable)
     648                 : {
     649                 :     return NS_ERROR_NOT_IMPLEMENTED;
     650                 : }
     651                 : 
     652                 : /* readonly attribute unsigned long parameterCount; */
     653                 : NS_IMETHODIMP nsLocalHandlerApp::GetParameterCount(PRUint32 *aParameterCount)
     654                 : {
     655                 :     return NS_ERROR_NOT_IMPLEMENTED;
     656                 : }
     657                 : 
     658                 : /* void clearParameters (); */
     659                 : NS_IMETHODIMP nsLocalHandlerApp::ClearParameters()
     660                 : {
     661                 :     return NS_ERROR_NOT_IMPLEMENTED;
     662                 : }
     663                 : 
     664                 : /* void appendParameter (in AString param); */
     665                 : NS_IMETHODIMP nsLocalHandlerApp::AppendParameter(const nsAString & param)
     666                 : {
     667                 :     return NS_ERROR_NOT_IMPLEMENTED;
     668                 : }
     669                 : 
     670                 : /* AString getParameter (in unsigned long parameterIndex); */
     671                 : NS_IMETHODIMP nsLocalHandlerApp::GetParameter(PRUint32 parameterIndex, nsAString & _retval NS_OUTPARAM)
     672                 : {
     673                 :     return NS_ERROR_NOT_IMPLEMENTED;
     674                 : }
     675                 : 
     676                 : /* boolean parameterExists (in AString param); */
     677                 : NS_IMETHODIMP nsLocalHandlerApp::ParameterExists(const nsAString & param, bool *_retval NS_OUTPARAM)
     678                 : {
     679                 :     return NS_ERROR_NOT_IMPLEMENTED;
     680                 : }
     681                 : 
     682                 : /* End of implementation class template. */
     683                 : #endif
     684                 : 
     685                 : 
     686                 : /* starting interface:    nsIWebHandlerApp */
     687                 : #define NS_IWEBHANDLERAPP_IID_STR "7521a093-c498-45ce-b462-df7ba0d882f6"
     688                 : 
     689                 : #define NS_IWEBHANDLERAPP_IID \
     690                 :   {0x7521a093, 0xc498, 0x45ce, \
     691                 :     { 0xb4, 0x62, 0xdf, 0x7b, 0xa0, 0xd8, 0x82, 0xf6 }}
     692                 : 
     693                 : class NS_NO_VTABLE NS_SCRIPTABLE nsIWebHandlerApp : public nsIHandlerApp {
     694                 :  public: 
     695                 : 
     696                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWEBHANDLERAPP_IID)
     697                 : 
     698                 :   /* attribute AUTF8String uriTemplate; */
     699                 :   NS_SCRIPTABLE NS_IMETHOD GetUriTemplate(nsACString & aUriTemplate) = 0;
     700                 :   NS_SCRIPTABLE NS_IMETHOD SetUriTemplate(const nsACString & aUriTemplate) = 0;
     701                 : 
     702                 : };
     703                 : 
     704                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIWebHandlerApp, NS_IWEBHANDLERAPP_IID)
     705                 : 
     706                 : /* Use this macro when declaring classes that implement this interface. */
     707                 : #define NS_DECL_NSIWEBHANDLERAPP \
     708                 :   NS_SCRIPTABLE NS_IMETHOD GetUriTemplate(nsACString & aUriTemplate); \
     709                 :   NS_SCRIPTABLE NS_IMETHOD SetUriTemplate(const nsACString & aUriTemplate); 
     710                 : 
     711                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     712                 : #define NS_FORWARD_NSIWEBHANDLERAPP(_to) \
     713                 :   NS_SCRIPTABLE NS_IMETHOD GetUriTemplate(nsACString & aUriTemplate) { return _to GetUriTemplate(aUriTemplate); } \
     714                 :   NS_SCRIPTABLE NS_IMETHOD SetUriTemplate(const nsACString & aUriTemplate) { return _to SetUriTemplate(aUriTemplate); } 
     715                 : 
     716                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     717                 : #define NS_FORWARD_SAFE_NSIWEBHANDLERAPP(_to) \
     718                 :   NS_SCRIPTABLE NS_IMETHOD GetUriTemplate(nsACString & aUriTemplate) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUriTemplate(aUriTemplate); } \
     719                 :   NS_SCRIPTABLE NS_IMETHOD SetUriTemplate(const nsACString & aUriTemplate) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUriTemplate(aUriTemplate); } 
     720                 : 
     721                 : #if 0
     722                 : /* Use the code below as a template for the implementation class for this interface. */
     723                 : 
     724                 : /* Header file */
     725                 : class nsWebHandlerApp : public nsIWebHandlerApp
     726                 : {
     727                 : public:
     728                 :   NS_DECL_ISUPPORTS
     729                 :   NS_DECL_NSIWEBHANDLERAPP
     730                 : 
     731                 :   nsWebHandlerApp();
     732                 : 
     733                 : private:
     734                 :   ~nsWebHandlerApp();
     735                 : 
     736                 : protected:
     737                 :   /* additional members */
     738                 : };
     739                 : 
     740                 : /* Implementation file */
     741                 : NS_IMPL_ISUPPORTS1(nsWebHandlerApp, nsIWebHandlerApp)
     742                 : 
     743                 : nsWebHandlerApp::nsWebHandlerApp()
     744                 : {
     745                 :   /* member initializers and constructor code */
     746                 : }
     747                 : 
     748                 : nsWebHandlerApp::~nsWebHandlerApp()
     749                 : {
     750                 :   /* destructor code */
     751                 : }
     752                 : 
     753                 : /* attribute AUTF8String uriTemplate; */
     754                 : NS_IMETHODIMP nsWebHandlerApp::GetUriTemplate(nsACString & aUriTemplate)
     755                 : {
     756                 :     return NS_ERROR_NOT_IMPLEMENTED;
     757                 : }
     758                 : NS_IMETHODIMP nsWebHandlerApp::SetUriTemplate(const nsACString & aUriTemplate)
     759                 : {
     760                 :     return NS_ERROR_NOT_IMPLEMENTED;
     761                 : }
     762                 : 
     763                 : /* End of implementation class template. */
     764                 : #endif
     765                 : 
     766                 : 
     767                 : /* starting interface:    nsIDBusHandlerApp */
     768                 : #define NS_IDBUSHANDLERAPP_IID_STR "1ffc274b-4cbf-4bb5-a635-05ad2cbb6534"
     769                 : 
     770                 : #define NS_IDBUSHANDLERAPP_IID \
     771                 :   {0x1ffc274b, 0x4cbf, 0x4bb5, \
     772                 :     { 0xa6, 0x35, 0x05, 0xad, 0x2c, 0xbb, 0x65, 0x34 }}
     773                 : 
     774               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDBusHandlerApp : public nsIHandlerApp {
     775                 :  public: 
     776                 : 
     777                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDBUSHANDLERAPP_IID)
     778                 : 
     779                 :   /* attribute AUTF8String service; */
     780                 :   NS_SCRIPTABLE NS_IMETHOD GetService(nsACString & aService) = 0;
     781                 :   NS_SCRIPTABLE NS_IMETHOD SetService(const nsACString & aService) = 0;
     782                 : 
     783                 :   /* attribute AUTF8String objectPath; */
     784                 :   NS_SCRIPTABLE NS_IMETHOD GetObjectPath(nsACString & aObjectPath) = 0;
     785                 :   NS_SCRIPTABLE NS_IMETHOD SetObjectPath(const nsACString & aObjectPath) = 0;
     786                 : 
     787                 :   /* attribute AUTF8String dBusInterface; */
     788                 :   NS_SCRIPTABLE NS_IMETHOD GetDBusInterface(nsACString & aDBusInterface) = 0;
     789                 :   NS_SCRIPTABLE NS_IMETHOD SetDBusInterface(const nsACString & aDBusInterface) = 0;
     790                 : 
     791                 :   /* attribute AUTF8String method; */
     792                 :   NS_SCRIPTABLE NS_IMETHOD GetMethod(nsACString & aMethod) = 0;
     793                 :   NS_SCRIPTABLE NS_IMETHOD SetMethod(const nsACString & aMethod) = 0;
     794                 : 
     795                 : };
     796                 : 
     797                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDBusHandlerApp, NS_IDBUSHANDLERAPP_IID)
     798                 : 
     799                 : /* Use this macro when declaring classes that implement this interface. */
     800                 : #define NS_DECL_NSIDBUSHANDLERAPP \
     801                 :   NS_SCRIPTABLE NS_IMETHOD GetService(nsACString & aService); \
     802                 :   NS_SCRIPTABLE NS_IMETHOD SetService(const nsACString & aService); \
     803                 :   NS_SCRIPTABLE NS_IMETHOD GetObjectPath(nsACString & aObjectPath); \
     804                 :   NS_SCRIPTABLE NS_IMETHOD SetObjectPath(const nsACString & aObjectPath); \
     805                 :   NS_SCRIPTABLE NS_IMETHOD GetDBusInterface(nsACString & aDBusInterface); \
     806                 :   NS_SCRIPTABLE NS_IMETHOD SetDBusInterface(const nsACString & aDBusInterface); \
     807                 :   NS_SCRIPTABLE NS_IMETHOD GetMethod(nsACString & aMethod); \
     808                 :   NS_SCRIPTABLE NS_IMETHOD SetMethod(const nsACString & aMethod); 
     809                 : 
     810                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     811                 : #define NS_FORWARD_NSIDBUSHANDLERAPP(_to) \
     812                 :   NS_SCRIPTABLE NS_IMETHOD GetService(nsACString & aService) { return _to GetService(aService); } \
     813                 :   NS_SCRIPTABLE NS_IMETHOD SetService(const nsACString & aService) { return _to SetService(aService); } \
     814                 :   NS_SCRIPTABLE NS_IMETHOD GetObjectPath(nsACString & aObjectPath) { return _to GetObjectPath(aObjectPath); } \
     815                 :   NS_SCRIPTABLE NS_IMETHOD SetObjectPath(const nsACString & aObjectPath) { return _to SetObjectPath(aObjectPath); } \
     816                 :   NS_SCRIPTABLE NS_IMETHOD GetDBusInterface(nsACString & aDBusInterface) { return _to GetDBusInterface(aDBusInterface); } \
     817                 :   NS_SCRIPTABLE NS_IMETHOD SetDBusInterface(const nsACString & aDBusInterface) { return _to SetDBusInterface(aDBusInterface); } \
     818                 :   NS_SCRIPTABLE NS_IMETHOD GetMethod(nsACString & aMethod) { return _to GetMethod(aMethod); } \
     819                 :   NS_SCRIPTABLE NS_IMETHOD SetMethod(const nsACString & aMethod) { return _to SetMethod(aMethod); } 
     820                 : 
     821                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     822                 : #define NS_FORWARD_SAFE_NSIDBUSHANDLERAPP(_to) \
     823                 :   NS_SCRIPTABLE NS_IMETHOD GetService(nsACString & aService) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetService(aService); } \
     824                 :   NS_SCRIPTABLE NS_IMETHOD SetService(const nsACString & aService) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetService(aService); } \
     825                 :   NS_SCRIPTABLE NS_IMETHOD GetObjectPath(nsACString & aObjectPath) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetObjectPath(aObjectPath); } \
     826                 :   NS_SCRIPTABLE NS_IMETHOD SetObjectPath(const nsACString & aObjectPath) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetObjectPath(aObjectPath); } \
     827                 :   NS_SCRIPTABLE NS_IMETHOD GetDBusInterface(nsACString & aDBusInterface) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDBusInterface(aDBusInterface); } \
     828                 :   NS_SCRIPTABLE NS_IMETHOD SetDBusInterface(const nsACString & aDBusInterface) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDBusInterface(aDBusInterface); } \
     829                 :   NS_SCRIPTABLE NS_IMETHOD GetMethod(nsACString & aMethod) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMethod(aMethod); } \
     830                 :   NS_SCRIPTABLE NS_IMETHOD SetMethod(const nsACString & aMethod) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMethod(aMethod); } 
     831                 : 
     832                 : #if 0
     833                 : /* Use the code below as a template for the implementation class for this interface. */
     834                 : 
     835                 : /* Header file */
     836                 : class nsDBusHandlerApp : public nsIDBusHandlerApp
     837                 : {
     838                 : public:
     839                 :   NS_DECL_ISUPPORTS
     840                 :   NS_DECL_NSIDBUSHANDLERAPP
     841                 : 
     842                 :   nsDBusHandlerApp();
     843                 : 
     844                 : private:
     845                 :   ~nsDBusHandlerApp();
     846                 : 
     847                 : protected:
     848                 :   /* additional members */
     849                 : };
     850                 : 
     851                 : /* Implementation file */
     852                 : NS_IMPL_ISUPPORTS1(nsDBusHandlerApp, nsIDBusHandlerApp)
     853                 : 
     854                 : nsDBusHandlerApp::nsDBusHandlerApp()
     855                 : {
     856                 :   /* member initializers and constructor code */
     857                 : }
     858                 : 
     859                 : nsDBusHandlerApp::~nsDBusHandlerApp()
     860                 : {
     861                 :   /* destructor code */
     862                 : }
     863                 : 
     864                 : /* attribute AUTF8String service; */
     865                 : NS_IMETHODIMP nsDBusHandlerApp::GetService(nsACString & aService)
     866                 : {
     867                 :     return NS_ERROR_NOT_IMPLEMENTED;
     868                 : }
     869                 : NS_IMETHODIMP nsDBusHandlerApp::SetService(const nsACString & aService)
     870                 : {
     871                 :     return NS_ERROR_NOT_IMPLEMENTED;
     872                 : }
     873                 : 
     874                 : /* attribute AUTF8String objectPath; */
     875                 : NS_IMETHODIMP nsDBusHandlerApp::GetObjectPath(nsACString & aObjectPath)
     876                 : {
     877                 :     return NS_ERROR_NOT_IMPLEMENTED;
     878                 : }
     879                 : NS_IMETHODIMP nsDBusHandlerApp::SetObjectPath(const nsACString & aObjectPath)
     880                 : {
     881                 :     return NS_ERROR_NOT_IMPLEMENTED;
     882                 : }
     883                 : 
     884                 : /* attribute AUTF8String dBusInterface; */
     885                 : NS_IMETHODIMP nsDBusHandlerApp::GetDBusInterface(nsACString & aDBusInterface)
     886                 : {
     887                 :     return NS_ERROR_NOT_IMPLEMENTED;
     888                 : }
     889                 : NS_IMETHODIMP nsDBusHandlerApp::SetDBusInterface(const nsACString & aDBusInterface)
     890                 : {
     891                 :     return NS_ERROR_NOT_IMPLEMENTED;
     892                 : }
     893                 : 
     894                 : /* attribute AUTF8String method; */
     895                 : NS_IMETHODIMP nsDBusHandlerApp::GetMethod(nsACString & aMethod)
     896                 : {
     897                 :     return NS_ERROR_NOT_IMPLEMENTED;
     898                 : }
     899                 : NS_IMETHODIMP nsDBusHandlerApp::SetMethod(const nsACString & aMethod)
     900                 : {
     901                 :     return NS_ERROR_NOT_IMPLEMENTED;
     902                 : }
     903                 : 
     904                 : /* End of implementation class template. */
     905                 : #endif
     906                 : 
     907                 : 
     908                 : #endif /* __gen_nsIMIMEInfo_h__ */

Generated by: LCOV version 1.7