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

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/embedding/components/commandhandler/public/nsICommandParams.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsICommandParams_h__
       6                 : #define __gen_nsICommandParams_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                 : 
      18                 : /* starting interface:    nsICommandParams */
      19                 : #define NS_ICOMMANDPARAMS_IID_STR "83f892cf-7ed3-490e-967a-62640f3158e1"
      20                 : 
      21                 : #define NS_ICOMMANDPARAMS_IID \
      22                 :   {0x83f892cf, 0x7ed3, 0x490e, \
      23                 :     { 0x96, 0x7a, 0x62, 0x64, 0x0f, 0x31, 0x58, 0xe1 }}
      24                 : 
      25               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsICommandParams : public nsISupports {
      26                 :  public: 
      27                 : 
      28                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICOMMANDPARAMS_IID)
      29                 : 
      30                 :   enum {
      31                 :     eNoType = 0,
      32                 :     eBooleanType = 1,
      33                 :     eLongType = 2,
      34                 :     eDoubleType = 3,
      35                 :     eWStringType = 4,
      36                 :     eISupportsType = 5,
      37                 :     eStringType = 6
      38                 :   };
      39                 : 
      40                 :   /* short getValueType (in string name); */
      41                 :   NS_SCRIPTABLE NS_IMETHOD GetValueType(const char * name, PRInt16 *_retval NS_OUTPARAM) = 0;
      42                 : 
      43                 :   /* boolean getBooleanValue (in string name); */
      44                 :   NS_SCRIPTABLE NS_IMETHOD GetBooleanValue(const char * name, bool *_retval NS_OUTPARAM) = 0;
      45                 : 
      46                 :   /* long getLongValue (in string name); */
      47                 :   NS_SCRIPTABLE NS_IMETHOD GetLongValue(const char * name, PRInt32 *_retval NS_OUTPARAM) = 0;
      48                 : 
      49                 :   /* double getDoubleValue (in string name); */
      50                 :   NS_SCRIPTABLE NS_IMETHOD GetDoubleValue(const char * name, double *_retval NS_OUTPARAM) = 0;
      51                 : 
      52                 :   /* AString getStringValue (in string name); */
      53                 :   NS_SCRIPTABLE NS_IMETHOD GetStringValue(const char * name, nsAString & _retval NS_OUTPARAM) = 0;
      54                 : 
      55                 :   /* string getCStringValue (in string name); */
      56                 :   NS_SCRIPTABLE NS_IMETHOD GetCStringValue(const char * name, char * *_retval NS_OUTPARAM) = 0;
      57                 : 
      58                 :   /* nsISupports getISupportsValue (in string name); */
      59                 :   NS_SCRIPTABLE NS_IMETHOD GetISupportsValue(const char * name, nsISupports * *_retval NS_OUTPARAM) = 0;
      60                 : 
      61                 :   /* void setBooleanValue (in string name, in boolean value); */
      62                 :   NS_SCRIPTABLE NS_IMETHOD SetBooleanValue(const char * name, bool value) = 0;
      63                 : 
      64                 :   /* void setLongValue (in string name, in long value); */
      65                 :   NS_SCRIPTABLE NS_IMETHOD SetLongValue(const char * name, PRInt32 value) = 0;
      66                 : 
      67                 :   /* void setDoubleValue (in string name, in double value); */
      68                 :   NS_SCRIPTABLE NS_IMETHOD SetDoubleValue(const char * name, double value) = 0;
      69                 : 
      70                 :   /* void setStringValue (in string name, in AString value); */
      71                 :   NS_SCRIPTABLE NS_IMETHOD SetStringValue(const char * name, const nsAString & value) = 0;
      72                 : 
      73                 :   /* void setCStringValue (in string name, in string value); */
      74                 :   NS_SCRIPTABLE NS_IMETHOD SetCStringValue(const char * name, const char * value) = 0;
      75                 : 
      76                 :   /* void setISupportsValue (in string name, in nsISupports value); */
      77                 :   NS_SCRIPTABLE NS_IMETHOD SetISupportsValue(const char * name, nsISupports *value) = 0;
      78                 : 
      79                 :   /* void removeValue (in string name); */
      80                 :   NS_SCRIPTABLE NS_IMETHOD RemoveValue(const char * name) = 0;
      81                 : 
      82                 :   /* boolean hasMoreElements (); */
      83                 :   NS_SCRIPTABLE NS_IMETHOD HasMoreElements(bool *_retval NS_OUTPARAM) = 0;
      84                 : 
      85                 :   /* void first (); */
      86                 :   NS_SCRIPTABLE NS_IMETHOD First(void) = 0;
      87                 : 
      88                 :   /* string getNext (); */
      89                 :   NS_SCRIPTABLE NS_IMETHOD GetNext(char * *_retval NS_OUTPARAM) = 0;
      90                 : 
      91                 : };
      92                 : 
      93                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsICommandParams, NS_ICOMMANDPARAMS_IID)
      94                 : 
      95                 : /* Use this macro when declaring classes that implement this interface. */
      96                 : #define NS_DECL_NSICOMMANDPARAMS \
      97                 :   NS_SCRIPTABLE NS_IMETHOD GetValueType(const char * name, PRInt16 *_retval NS_OUTPARAM); \
      98                 :   NS_SCRIPTABLE NS_IMETHOD GetBooleanValue(const char * name, bool *_retval NS_OUTPARAM); \
      99                 :   NS_SCRIPTABLE NS_IMETHOD GetLongValue(const char * name, PRInt32 *_retval NS_OUTPARAM); \
     100                 :   NS_SCRIPTABLE NS_IMETHOD GetDoubleValue(const char * name, double *_retval NS_OUTPARAM); \
     101                 :   NS_SCRIPTABLE NS_IMETHOD GetStringValue(const char * name, nsAString & _retval NS_OUTPARAM); \
     102                 :   NS_SCRIPTABLE NS_IMETHOD GetCStringValue(const char * name, char * *_retval NS_OUTPARAM); \
     103                 :   NS_SCRIPTABLE NS_IMETHOD GetISupportsValue(const char * name, nsISupports * *_retval NS_OUTPARAM); \
     104                 :   NS_SCRIPTABLE NS_IMETHOD SetBooleanValue(const char * name, bool value); \
     105                 :   NS_SCRIPTABLE NS_IMETHOD SetLongValue(const char * name, PRInt32 value); \
     106                 :   NS_SCRIPTABLE NS_IMETHOD SetDoubleValue(const char * name, double value); \
     107                 :   NS_SCRIPTABLE NS_IMETHOD SetStringValue(const char * name, const nsAString & value); \
     108                 :   NS_SCRIPTABLE NS_IMETHOD SetCStringValue(const char * name, const char * value); \
     109                 :   NS_SCRIPTABLE NS_IMETHOD SetISupportsValue(const char * name, nsISupports *value); \
     110                 :   NS_SCRIPTABLE NS_IMETHOD RemoveValue(const char * name); \
     111                 :   NS_SCRIPTABLE NS_IMETHOD HasMoreElements(bool *_retval NS_OUTPARAM); \
     112                 :   NS_SCRIPTABLE NS_IMETHOD First(void); \
     113                 :   NS_SCRIPTABLE NS_IMETHOD GetNext(char * *_retval NS_OUTPARAM); 
     114                 : 
     115                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     116                 : #define NS_FORWARD_NSICOMMANDPARAMS(_to) \
     117                 :   NS_SCRIPTABLE NS_IMETHOD GetValueType(const char * name, PRInt16 *_retval NS_OUTPARAM) { return _to GetValueType(name, _retval); } \
     118                 :   NS_SCRIPTABLE NS_IMETHOD GetBooleanValue(const char * name, bool *_retval NS_OUTPARAM) { return _to GetBooleanValue(name, _retval); } \
     119                 :   NS_SCRIPTABLE NS_IMETHOD GetLongValue(const char * name, PRInt32 *_retval NS_OUTPARAM) { return _to GetLongValue(name, _retval); } \
     120                 :   NS_SCRIPTABLE NS_IMETHOD GetDoubleValue(const char * name, double *_retval NS_OUTPARAM) { return _to GetDoubleValue(name, _retval); } \
     121                 :   NS_SCRIPTABLE NS_IMETHOD GetStringValue(const char * name, nsAString & _retval NS_OUTPARAM) { return _to GetStringValue(name, _retval); } \
     122                 :   NS_SCRIPTABLE NS_IMETHOD GetCStringValue(const char * name, char * *_retval NS_OUTPARAM) { return _to GetCStringValue(name, _retval); } \
     123                 :   NS_SCRIPTABLE NS_IMETHOD GetISupportsValue(const char * name, nsISupports * *_retval NS_OUTPARAM) { return _to GetISupportsValue(name, _retval); } \
     124                 :   NS_SCRIPTABLE NS_IMETHOD SetBooleanValue(const char * name, bool value) { return _to SetBooleanValue(name, value); } \
     125                 :   NS_SCRIPTABLE NS_IMETHOD SetLongValue(const char * name, PRInt32 value) { return _to SetLongValue(name, value); } \
     126                 :   NS_SCRIPTABLE NS_IMETHOD SetDoubleValue(const char * name, double value) { return _to SetDoubleValue(name, value); } \
     127                 :   NS_SCRIPTABLE NS_IMETHOD SetStringValue(const char * name, const nsAString & value) { return _to SetStringValue(name, value); } \
     128                 :   NS_SCRIPTABLE NS_IMETHOD SetCStringValue(const char * name, const char * value) { return _to SetCStringValue(name, value); } \
     129                 :   NS_SCRIPTABLE NS_IMETHOD SetISupportsValue(const char * name, nsISupports *value) { return _to SetISupportsValue(name, value); } \
     130                 :   NS_SCRIPTABLE NS_IMETHOD RemoveValue(const char * name) { return _to RemoveValue(name); } \
     131                 :   NS_SCRIPTABLE NS_IMETHOD HasMoreElements(bool *_retval NS_OUTPARAM) { return _to HasMoreElements(_retval); } \
     132                 :   NS_SCRIPTABLE NS_IMETHOD First(void) { return _to First(); } \
     133                 :   NS_SCRIPTABLE NS_IMETHOD GetNext(char * *_retval NS_OUTPARAM) { return _to GetNext(_retval); } 
     134                 : 
     135                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     136                 : #define NS_FORWARD_SAFE_NSICOMMANDPARAMS(_to) \
     137                 :   NS_SCRIPTABLE NS_IMETHOD GetValueType(const char * name, PRInt16 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValueType(name, _retval); } \
     138                 :   NS_SCRIPTABLE NS_IMETHOD GetBooleanValue(const char * name, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBooleanValue(name, _retval); } \
     139                 :   NS_SCRIPTABLE NS_IMETHOD GetLongValue(const char * name, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLongValue(name, _retval); } \
     140                 :   NS_SCRIPTABLE NS_IMETHOD GetDoubleValue(const char * name, double *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDoubleValue(name, _retval); } \
     141                 :   NS_SCRIPTABLE NS_IMETHOD GetStringValue(const char * name, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStringValue(name, _retval); } \
     142                 :   NS_SCRIPTABLE NS_IMETHOD GetCStringValue(const char * name, char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCStringValue(name, _retval); } \
     143                 :   NS_SCRIPTABLE NS_IMETHOD GetISupportsValue(const char * name, nsISupports * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetISupportsValue(name, _retval); } \
     144                 :   NS_SCRIPTABLE NS_IMETHOD SetBooleanValue(const char * name, bool value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBooleanValue(name, value); } \
     145                 :   NS_SCRIPTABLE NS_IMETHOD SetLongValue(const char * name, PRInt32 value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLongValue(name, value); } \
     146                 :   NS_SCRIPTABLE NS_IMETHOD SetDoubleValue(const char * name, double value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDoubleValue(name, value); } \
     147                 :   NS_SCRIPTABLE NS_IMETHOD SetStringValue(const char * name, const nsAString & value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStringValue(name, value); } \
     148                 :   NS_SCRIPTABLE NS_IMETHOD SetCStringValue(const char * name, const char * value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCStringValue(name, value); } \
     149                 :   NS_SCRIPTABLE NS_IMETHOD SetISupportsValue(const char * name, nsISupports *value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetISupportsValue(name, value); } \
     150                 :   NS_SCRIPTABLE NS_IMETHOD RemoveValue(const char * name) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveValue(name); } \
     151                 :   NS_SCRIPTABLE NS_IMETHOD HasMoreElements(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->HasMoreElements(_retval); } \
     152                 :   NS_SCRIPTABLE NS_IMETHOD First(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->First(); } \
     153                 :   NS_SCRIPTABLE NS_IMETHOD GetNext(char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNext(_retval); } 
     154                 : 
     155                 : #if 0
     156                 : /* Use the code below as a template for the implementation class for this interface. */
     157                 : 
     158                 : /* Header file */
     159                 : class nsCommandParams : public nsICommandParams
     160                 : {
     161                 : public:
     162                 :   NS_DECL_ISUPPORTS
     163                 :   NS_DECL_NSICOMMANDPARAMS
     164                 : 
     165                 :   nsCommandParams();
     166                 : 
     167                 : private:
     168                 :   ~nsCommandParams();
     169                 : 
     170                 : protected:
     171                 :   /* additional members */
     172                 : };
     173                 : 
     174                 : /* Implementation file */
     175                 : NS_IMPL_ISUPPORTS1(nsCommandParams, nsICommandParams)
     176                 : 
     177                 : nsCommandParams::nsCommandParams()
     178                 : {
     179                 :   /* member initializers and constructor code */
     180                 : }
     181                 : 
     182                 : nsCommandParams::~nsCommandParams()
     183                 : {
     184                 :   /* destructor code */
     185                 : }
     186                 : 
     187                 : /* short getValueType (in string name); */
     188                 : NS_IMETHODIMP nsCommandParams::GetValueType(const char * name, PRInt16 *_retval NS_OUTPARAM)
     189                 : {
     190                 :     return NS_ERROR_NOT_IMPLEMENTED;
     191                 : }
     192                 : 
     193                 : /* boolean getBooleanValue (in string name); */
     194                 : NS_IMETHODIMP nsCommandParams::GetBooleanValue(const char * name, bool *_retval NS_OUTPARAM)
     195                 : {
     196                 :     return NS_ERROR_NOT_IMPLEMENTED;
     197                 : }
     198                 : 
     199                 : /* long getLongValue (in string name); */
     200                 : NS_IMETHODIMP nsCommandParams::GetLongValue(const char * name, PRInt32 *_retval NS_OUTPARAM)
     201                 : {
     202                 :     return NS_ERROR_NOT_IMPLEMENTED;
     203                 : }
     204                 : 
     205                 : /* double getDoubleValue (in string name); */
     206                 : NS_IMETHODIMP nsCommandParams::GetDoubleValue(const char * name, double *_retval NS_OUTPARAM)
     207                 : {
     208                 :     return NS_ERROR_NOT_IMPLEMENTED;
     209                 : }
     210                 : 
     211                 : /* AString getStringValue (in string name); */
     212                 : NS_IMETHODIMP nsCommandParams::GetStringValue(const char * name, nsAString & _retval NS_OUTPARAM)
     213                 : {
     214                 :     return NS_ERROR_NOT_IMPLEMENTED;
     215                 : }
     216                 : 
     217                 : /* string getCStringValue (in string name); */
     218                 : NS_IMETHODIMP nsCommandParams::GetCStringValue(const char * name, char * *_retval NS_OUTPARAM)
     219                 : {
     220                 :     return NS_ERROR_NOT_IMPLEMENTED;
     221                 : }
     222                 : 
     223                 : /* nsISupports getISupportsValue (in string name); */
     224                 : NS_IMETHODIMP nsCommandParams::GetISupportsValue(const char * name, nsISupports * *_retval NS_OUTPARAM)
     225                 : {
     226                 :     return NS_ERROR_NOT_IMPLEMENTED;
     227                 : }
     228                 : 
     229                 : /* void setBooleanValue (in string name, in boolean value); */
     230                 : NS_IMETHODIMP nsCommandParams::SetBooleanValue(const char * name, bool value)
     231                 : {
     232                 :     return NS_ERROR_NOT_IMPLEMENTED;
     233                 : }
     234                 : 
     235                 : /* void setLongValue (in string name, in long value); */
     236                 : NS_IMETHODIMP nsCommandParams::SetLongValue(const char * name, PRInt32 value)
     237                 : {
     238                 :     return NS_ERROR_NOT_IMPLEMENTED;
     239                 : }
     240                 : 
     241                 : /* void setDoubleValue (in string name, in double value); */
     242                 : NS_IMETHODIMP nsCommandParams::SetDoubleValue(const char * name, double value)
     243                 : {
     244                 :     return NS_ERROR_NOT_IMPLEMENTED;
     245                 : }
     246                 : 
     247                 : /* void setStringValue (in string name, in AString value); */
     248                 : NS_IMETHODIMP nsCommandParams::SetStringValue(const char * name, const nsAString & value)
     249                 : {
     250                 :     return NS_ERROR_NOT_IMPLEMENTED;
     251                 : }
     252                 : 
     253                 : /* void setCStringValue (in string name, in string value); */
     254                 : NS_IMETHODIMP nsCommandParams::SetCStringValue(const char * name, const char * value)
     255                 : {
     256                 :     return NS_ERROR_NOT_IMPLEMENTED;
     257                 : }
     258                 : 
     259                 : /* void setISupportsValue (in string name, in nsISupports value); */
     260                 : NS_IMETHODIMP nsCommandParams::SetISupportsValue(const char * name, nsISupports *value)
     261                 : {
     262                 :     return NS_ERROR_NOT_IMPLEMENTED;
     263                 : }
     264                 : 
     265                 : /* void removeValue (in string name); */
     266                 : NS_IMETHODIMP nsCommandParams::RemoveValue(const char * name)
     267                 : {
     268                 :     return NS_ERROR_NOT_IMPLEMENTED;
     269                 : }
     270                 : 
     271                 : /* boolean hasMoreElements (); */
     272                 : NS_IMETHODIMP nsCommandParams::HasMoreElements(bool *_retval NS_OUTPARAM)
     273                 : {
     274                 :     return NS_ERROR_NOT_IMPLEMENTED;
     275                 : }
     276                 : 
     277                 : /* void first (); */
     278                 : NS_IMETHODIMP nsCommandParams::First()
     279                 : {
     280                 :     return NS_ERROR_NOT_IMPLEMENTED;
     281                 : }
     282                 : 
     283                 : /* string getNext (); */
     284                 : NS_IMETHODIMP nsCommandParams::GetNext(char * *_retval NS_OUTPARAM)
     285                 : {
     286                 :     return NS_ERROR_NOT_IMPLEMENTED;
     287                 : }
     288                 : 
     289                 : /* End of implementation class template. */
     290                 : #endif
     291                 : 
     292                 : #define NS_COMMAND_PARAMS_CID { 0xf7fa4581, 0x238e, 0x11d5, { 0xa7, 0x3c, 0xab, 0x64, 0xfb, 0x68, 0xf2, 0xbc } }
     293                 : #define NS_COMMAND_PARAMS_CONTRACTID "@mozilla.org/embedcomp/command-params;1"
     294                 : 
     295                 : #endif /* __gen_nsICommandParams_h__ */

Generated by: LCOV version 1.7