LCOV - code coverage report
Current view: directory - objdir/dist/include - nsICommandLine.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/toolkit/components/commandlines/nsICommandLine.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsICommandLine_h__
       6                 : #define __gen_nsICommandLine_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 nsIFile; /* forward declaration */
      18                 : 
      19                 : class nsIURI; /* forward declaration */
      20                 : 
      21                 : class nsIDOMWindow; /* forward declaration */
      22                 : 
      23                 : 
      24                 : /* starting interface:    nsICommandLine */
      25                 : #define NS_ICOMMANDLINE_IID_STR "bc3173bd-aa46-46a0-9d25-d9867a9659b6"
      26                 : 
      27                 : #define NS_ICOMMANDLINE_IID \
      28                 :   {0xbc3173bd, 0xaa46, 0x46a0, \
      29                 :     { 0x9d, 0x25, 0xd9, 0x86, 0x7a, 0x96, 0x59, 0xb6 }}
      30                 : 
      31               3 : class NS_NO_VTABLE NS_SCRIPTABLE nsICommandLine : public nsISupports {
      32                 :  public: 
      33                 : 
      34                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICOMMANDLINE_IID)
      35                 : 
      36                 :   /* readonly attribute long length; */
      37                 :   NS_SCRIPTABLE NS_IMETHOD GetLength(PRInt32 *aLength) = 0;
      38                 : 
      39                 :   /* AString getArgument (in long aIndex); */
      40                 :   NS_SCRIPTABLE NS_IMETHOD GetArgument(PRInt32 aIndex, nsAString & _retval NS_OUTPARAM) = 0;
      41                 : 
      42                 :   /* long findFlag (in AString aFlag, in boolean aCaseSensitive); */
      43                 :   NS_SCRIPTABLE NS_IMETHOD FindFlag(const nsAString & aFlag, bool aCaseSensitive, PRInt32 *_retval NS_OUTPARAM) = 0;
      44                 : 
      45                 :   /* void removeArguments (in long aStart, in long aEnd); */
      46                 :   NS_SCRIPTABLE NS_IMETHOD RemoveArguments(PRInt32 aStart, PRInt32 aEnd) = 0;
      47                 : 
      48                 :   /* boolean handleFlag (in AString aFlag, in boolean aCaseSensitive); */
      49                 :   NS_SCRIPTABLE NS_IMETHOD HandleFlag(const nsAString & aFlag, bool aCaseSensitive, bool *_retval NS_OUTPARAM) = 0;
      50                 : 
      51                 :   /* AString handleFlagWithParam (in AString aFlag, in boolean aCaseSensitive); */
      52                 :   NS_SCRIPTABLE NS_IMETHOD HandleFlagWithParam(const nsAString & aFlag, bool aCaseSensitive, nsAString & _retval NS_OUTPARAM) = 0;
      53                 : 
      54                 :   /* readonly attribute unsigned long state; */
      55                 :   NS_SCRIPTABLE NS_IMETHOD GetState(PRUint32 *aState) = 0;
      56                 : 
      57                 :   enum {
      58                 :     STATE_INITIAL_LAUNCH = 0U,
      59                 :     STATE_REMOTE_AUTO = 1U,
      60                 :     STATE_REMOTE_EXPLICIT = 2U
      61                 :   };
      62                 : 
      63                 :   /* attribute boolean preventDefault; */
      64                 :   NS_SCRIPTABLE NS_IMETHOD GetPreventDefault(bool *aPreventDefault) = 0;
      65                 :   NS_SCRIPTABLE NS_IMETHOD SetPreventDefault(bool aPreventDefault) = 0;
      66                 : 
      67                 :   /* readonly attribute nsIFile workingDirectory; */
      68                 :   NS_SCRIPTABLE NS_IMETHOD GetWorkingDirectory(nsIFile * *aWorkingDirectory) = 0;
      69                 : 
      70                 :   /* readonly attribute nsIDOMWindow windowContext; */
      71                 :   NS_SCRIPTABLE NS_IMETHOD GetWindowContext(nsIDOMWindow * *aWindowContext) = 0;
      72                 : 
      73                 :   /* nsIFile resolveFile (in AString aArgument); */
      74                 :   NS_SCRIPTABLE NS_IMETHOD ResolveFile(const nsAString & aArgument, nsIFile * *_retval NS_OUTPARAM) = 0;
      75                 : 
      76                 :   /* nsIURI resolveURI (in AString aArgument); */
      77                 :   NS_SCRIPTABLE NS_IMETHOD ResolveURI(const nsAString & aArgument, nsIURI * *_retval NS_OUTPARAM) = 0;
      78                 : 
      79                 : };
      80                 : 
      81                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsICommandLine, NS_ICOMMANDLINE_IID)
      82                 : 
      83                 : /* Use this macro when declaring classes that implement this interface. */
      84                 : #define NS_DECL_NSICOMMANDLINE \
      85                 :   NS_SCRIPTABLE NS_IMETHOD GetLength(PRInt32 *aLength); \
      86                 :   NS_SCRIPTABLE NS_IMETHOD GetArgument(PRInt32 aIndex, nsAString & _retval NS_OUTPARAM); \
      87                 :   NS_SCRIPTABLE NS_IMETHOD FindFlag(const nsAString & aFlag, bool aCaseSensitive, PRInt32 *_retval NS_OUTPARAM); \
      88                 :   NS_SCRIPTABLE NS_IMETHOD RemoveArguments(PRInt32 aStart, PRInt32 aEnd); \
      89                 :   NS_SCRIPTABLE NS_IMETHOD HandleFlag(const nsAString & aFlag, bool aCaseSensitive, bool *_retval NS_OUTPARAM); \
      90                 :   NS_SCRIPTABLE NS_IMETHOD HandleFlagWithParam(const nsAString & aFlag, bool aCaseSensitive, nsAString & _retval NS_OUTPARAM); \
      91                 :   NS_SCRIPTABLE NS_IMETHOD GetState(PRUint32 *aState); \
      92                 :   NS_SCRIPTABLE NS_IMETHOD GetPreventDefault(bool *aPreventDefault); \
      93                 :   NS_SCRIPTABLE NS_IMETHOD SetPreventDefault(bool aPreventDefault); \
      94                 :   NS_SCRIPTABLE NS_IMETHOD GetWorkingDirectory(nsIFile * *aWorkingDirectory); \
      95                 :   NS_SCRIPTABLE NS_IMETHOD GetWindowContext(nsIDOMWindow * *aWindowContext); \
      96                 :   NS_SCRIPTABLE NS_IMETHOD ResolveFile(const nsAString & aArgument, nsIFile * *_retval NS_OUTPARAM); \
      97                 :   NS_SCRIPTABLE NS_IMETHOD ResolveURI(const nsAString & aArgument, nsIURI * *_retval NS_OUTPARAM); 
      98                 : 
      99                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     100                 : #define NS_FORWARD_NSICOMMANDLINE(_to) \
     101                 :   NS_SCRIPTABLE NS_IMETHOD GetLength(PRInt32 *aLength) { return _to GetLength(aLength); } \
     102                 :   NS_SCRIPTABLE NS_IMETHOD GetArgument(PRInt32 aIndex, nsAString & _retval NS_OUTPARAM) { return _to GetArgument(aIndex, _retval); } \
     103                 :   NS_SCRIPTABLE NS_IMETHOD FindFlag(const nsAString & aFlag, bool aCaseSensitive, PRInt32 *_retval NS_OUTPARAM) { return _to FindFlag(aFlag, aCaseSensitive, _retval); } \
     104                 :   NS_SCRIPTABLE NS_IMETHOD RemoveArguments(PRInt32 aStart, PRInt32 aEnd) { return _to RemoveArguments(aStart, aEnd); } \
     105                 :   NS_SCRIPTABLE NS_IMETHOD HandleFlag(const nsAString & aFlag, bool aCaseSensitive, bool *_retval NS_OUTPARAM) { return _to HandleFlag(aFlag, aCaseSensitive, _retval); } \
     106                 :   NS_SCRIPTABLE NS_IMETHOD HandleFlagWithParam(const nsAString & aFlag, bool aCaseSensitive, nsAString & _retval NS_OUTPARAM) { return _to HandleFlagWithParam(aFlag, aCaseSensitive, _retval); } \
     107                 :   NS_SCRIPTABLE NS_IMETHOD GetState(PRUint32 *aState) { return _to GetState(aState); } \
     108                 :   NS_SCRIPTABLE NS_IMETHOD GetPreventDefault(bool *aPreventDefault) { return _to GetPreventDefault(aPreventDefault); } \
     109                 :   NS_SCRIPTABLE NS_IMETHOD SetPreventDefault(bool aPreventDefault) { return _to SetPreventDefault(aPreventDefault); } \
     110                 :   NS_SCRIPTABLE NS_IMETHOD GetWorkingDirectory(nsIFile * *aWorkingDirectory) { return _to GetWorkingDirectory(aWorkingDirectory); } \
     111                 :   NS_SCRIPTABLE NS_IMETHOD GetWindowContext(nsIDOMWindow * *aWindowContext) { return _to GetWindowContext(aWindowContext); } \
     112                 :   NS_SCRIPTABLE NS_IMETHOD ResolveFile(const nsAString & aArgument, nsIFile * *_retval NS_OUTPARAM) { return _to ResolveFile(aArgument, _retval); } \
     113                 :   NS_SCRIPTABLE NS_IMETHOD ResolveURI(const nsAString & aArgument, nsIURI * *_retval NS_OUTPARAM) { return _to ResolveURI(aArgument, _retval); } 
     114                 : 
     115                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     116                 : #define NS_FORWARD_SAFE_NSICOMMANDLINE(_to) \
     117                 :   NS_SCRIPTABLE NS_IMETHOD GetLength(PRInt32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
     118                 :   NS_SCRIPTABLE NS_IMETHOD GetArgument(PRInt32 aIndex, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetArgument(aIndex, _retval); } \
     119                 :   NS_SCRIPTABLE NS_IMETHOD FindFlag(const nsAString & aFlag, bool aCaseSensitive, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->FindFlag(aFlag, aCaseSensitive, _retval); } \
     120                 :   NS_SCRIPTABLE NS_IMETHOD RemoveArguments(PRInt32 aStart, PRInt32 aEnd) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveArguments(aStart, aEnd); } \
     121                 :   NS_SCRIPTABLE NS_IMETHOD HandleFlag(const nsAString & aFlag, bool aCaseSensitive, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleFlag(aFlag, aCaseSensitive, _retval); } \
     122                 :   NS_SCRIPTABLE NS_IMETHOD HandleFlagWithParam(const nsAString & aFlag, bool aCaseSensitive, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleFlagWithParam(aFlag, aCaseSensitive, _retval); } \
     123                 :   NS_SCRIPTABLE NS_IMETHOD GetState(PRUint32 *aState) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetState(aState); } \
     124                 :   NS_SCRIPTABLE NS_IMETHOD GetPreventDefault(bool *aPreventDefault) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPreventDefault(aPreventDefault); } \
     125                 :   NS_SCRIPTABLE NS_IMETHOD SetPreventDefault(bool aPreventDefault) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPreventDefault(aPreventDefault); } \
     126                 :   NS_SCRIPTABLE NS_IMETHOD GetWorkingDirectory(nsIFile * *aWorkingDirectory) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWorkingDirectory(aWorkingDirectory); } \
     127                 :   NS_SCRIPTABLE NS_IMETHOD GetWindowContext(nsIDOMWindow * *aWindowContext) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWindowContext(aWindowContext); } \
     128                 :   NS_SCRIPTABLE NS_IMETHOD ResolveFile(const nsAString & aArgument, nsIFile * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ResolveFile(aArgument, _retval); } \
     129                 :   NS_SCRIPTABLE NS_IMETHOD ResolveURI(const nsAString & aArgument, nsIURI * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ResolveURI(aArgument, _retval); } 
     130                 : 
     131                 : #if 0
     132                 : /* Use the code below as a template for the implementation class for this interface. */
     133                 : 
     134                 : /* Header file */
     135                 : class nsCommandLine : public nsICommandLine
     136                 : {
     137                 : public:
     138                 :   NS_DECL_ISUPPORTS
     139                 :   NS_DECL_NSICOMMANDLINE
     140                 : 
     141                 :   nsCommandLine();
     142                 : 
     143                 : private:
     144                 :   ~nsCommandLine();
     145                 : 
     146                 : protected:
     147                 :   /* additional members */
     148                 : };
     149                 : 
     150                 : /* Implementation file */
     151                 : NS_IMPL_ISUPPORTS1(nsCommandLine, nsICommandLine)
     152                 : 
     153                 : nsCommandLine::nsCommandLine()
     154                 : {
     155                 :   /* member initializers and constructor code */
     156                 : }
     157                 : 
     158                 : nsCommandLine::~nsCommandLine()
     159                 : {
     160                 :   /* destructor code */
     161                 : }
     162                 : 
     163                 : /* readonly attribute long length; */
     164                 : NS_IMETHODIMP nsCommandLine::GetLength(PRInt32 *aLength)
     165                 : {
     166                 :     return NS_ERROR_NOT_IMPLEMENTED;
     167                 : }
     168                 : 
     169                 : /* AString getArgument (in long aIndex); */
     170                 : NS_IMETHODIMP nsCommandLine::GetArgument(PRInt32 aIndex, nsAString & _retval NS_OUTPARAM)
     171                 : {
     172                 :     return NS_ERROR_NOT_IMPLEMENTED;
     173                 : }
     174                 : 
     175                 : /* long findFlag (in AString aFlag, in boolean aCaseSensitive); */
     176                 : NS_IMETHODIMP nsCommandLine::FindFlag(const nsAString & aFlag, bool aCaseSensitive, PRInt32 *_retval NS_OUTPARAM)
     177                 : {
     178                 :     return NS_ERROR_NOT_IMPLEMENTED;
     179                 : }
     180                 : 
     181                 : /* void removeArguments (in long aStart, in long aEnd); */
     182                 : NS_IMETHODIMP nsCommandLine::RemoveArguments(PRInt32 aStart, PRInt32 aEnd)
     183                 : {
     184                 :     return NS_ERROR_NOT_IMPLEMENTED;
     185                 : }
     186                 : 
     187                 : /* boolean handleFlag (in AString aFlag, in boolean aCaseSensitive); */
     188                 : NS_IMETHODIMP nsCommandLine::HandleFlag(const nsAString & aFlag, bool aCaseSensitive, bool *_retval NS_OUTPARAM)
     189                 : {
     190                 :     return NS_ERROR_NOT_IMPLEMENTED;
     191                 : }
     192                 : 
     193                 : /* AString handleFlagWithParam (in AString aFlag, in boolean aCaseSensitive); */
     194                 : NS_IMETHODIMP nsCommandLine::HandleFlagWithParam(const nsAString & aFlag, bool aCaseSensitive, nsAString & _retval NS_OUTPARAM)
     195                 : {
     196                 :     return NS_ERROR_NOT_IMPLEMENTED;
     197                 : }
     198                 : 
     199                 : /* readonly attribute unsigned long state; */
     200                 : NS_IMETHODIMP nsCommandLine::GetState(PRUint32 *aState)
     201                 : {
     202                 :     return NS_ERROR_NOT_IMPLEMENTED;
     203                 : }
     204                 : 
     205                 : /* attribute boolean preventDefault; */
     206                 : NS_IMETHODIMP nsCommandLine::GetPreventDefault(bool *aPreventDefault)
     207                 : {
     208                 :     return NS_ERROR_NOT_IMPLEMENTED;
     209                 : }
     210                 : NS_IMETHODIMP nsCommandLine::SetPreventDefault(bool aPreventDefault)
     211                 : {
     212                 :     return NS_ERROR_NOT_IMPLEMENTED;
     213                 : }
     214                 : 
     215                 : /* readonly attribute nsIFile workingDirectory; */
     216                 : NS_IMETHODIMP nsCommandLine::GetWorkingDirectory(nsIFile * *aWorkingDirectory)
     217                 : {
     218                 :     return NS_ERROR_NOT_IMPLEMENTED;
     219                 : }
     220                 : 
     221                 : /* readonly attribute nsIDOMWindow windowContext; */
     222                 : NS_IMETHODIMP nsCommandLine::GetWindowContext(nsIDOMWindow * *aWindowContext)
     223                 : {
     224                 :     return NS_ERROR_NOT_IMPLEMENTED;
     225                 : }
     226                 : 
     227                 : /* nsIFile resolveFile (in AString aArgument); */
     228                 : NS_IMETHODIMP nsCommandLine::ResolveFile(const nsAString & aArgument, nsIFile * *_retval NS_OUTPARAM)
     229                 : {
     230                 :     return NS_ERROR_NOT_IMPLEMENTED;
     231                 : }
     232                 : 
     233                 : /* nsIURI resolveURI (in AString aArgument); */
     234                 : NS_IMETHODIMP nsCommandLine::ResolveURI(const nsAString & aArgument, nsIURI * *_retval NS_OUTPARAM)
     235                 : {
     236                 :     return NS_ERROR_NOT_IMPLEMENTED;
     237                 : }
     238                 : 
     239                 : /* End of implementation class template. */
     240                 : #endif
     241                 : 
     242                 : 
     243                 : #endif /* __gen_nsICommandLine_h__ */

Generated by: LCOV version 1.7