DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

nsICommandParams

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsICommandParams.idl
 */

#ifndef __gen_nsICommandParams_h__
#define __gen_nsICommandParams_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif

/* starting interface:    nsICommandParams */
#define NS_ICOMMANDPARAMS_IID_STR "b1fdf3c4-74e3-4f7d-a14d-2b76bcf53482"

#define NS_ICOMMANDPARAMS_IID \
  {0xb1fdf3c4, 0x74e3, 0x4f7d, \
    { 0xa1, 0x4d, 0x2b, 0x76, 0xbc, 0xf5, 0x34, 0x82 }}

class NS_NO_VTABLE nsICommandParams : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICOMMANDPARAMS_IID)

  enum {
    eNoType = 0,
    eBooleanType = 1,
    eLongType = 2,
    eDoubleType = 3,
    eWStringType = 4,
    eISupportsType = 5,
    eStringType = 6
  };

  /* short getValueType (in string name); */
  NS_IMETHOD GetValueType(const char * name, int16_t *_retval) = 0;

  /* boolean getBooleanValue (in string name); */
  NS_IMETHOD GetBooleanValue(const char * name, bool *_retval) = 0;

  /* long getLongValue (in string name); */
  NS_IMETHOD GetLongValue(const char * name, int32_t *_retval) = 0;

  /* double getDoubleValue (in string name); */
  NS_IMETHOD GetDoubleValue(const char * name, double *_retval) = 0;

  /* AString getStringValue (in string name); */
  NS_IMETHOD GetStringValue(const char * name, nsAString & _retval) = 0;

  /* string getCStringValue (in string name); */
  NS_IMETHOD GetCStringValue(const char * name, char * *_retval) = 0;

  /* nsISupports getISupportsValue (in string name); */
  NS_IMETHOD GetISupportsValue(const char * name, nsISupports * *_retval) = 0;

  /* void setBooleanValue (in string name, in boolean value); */
  NS_IMETHOD SetBooleanValue(const char * name, bool value) = 0;

  /* void setLongValue (in string name, in long value); */
  NS_IMETHOD SetLongValue(const char * name, int32_t value) = 0;

  /* void setDoubleValue (in string name, in double value); */
  NS_IMETHOD SetDoubleValue(const char * name, double value) = 0;

  /* void setStringValue (in string name, in AString value); */
  NS_IMETHOD SetStringValue(const char * name, const nsAString & value) = 0;

  /* void setCStringValue (in string name, in string value); */
  NS_IMETHOD SetCStringValue(const char * name, const char * value) = 0;

  /* void setISupportsValue (in string name, in nsISupports value); */
  NS_IMETHOD SetISupportsValue(const char * name, nsISupports *value) = 0;

  /* void removeValue (in string name); */
  NS_IMETHOD RemoveValue(const char * name) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsICommandParams, NS_ICOMMANDPARAMS_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICOMMANDPARAMS \
  NS_IMETHOD GetValueType(const char * name, int16_t *_retval) override; \
  NS_IMETHOD GetBooleanValue(const char * name, bool *_retval) override; \
  NS_IMETHOD GetLongValue(const char * name, int32_t *_retval) override; \
  NS_IMETHOD GetDoubleValue(const char * name, double *_retval) override; \
  NS_IMETHOD GetStringValue(const char * name, nsAString & _retval) override; \
  NS_IMETHOD GetCStringValue(const char * name, char * *_retval) override; \
  NS_IMETHOD GetISupportsValue(const char * name, nsISupports * *_retval) override; \
  NS_IMETHOD SetBooleanValue(const char * name, bool value) override; \
  NS_IMETHOD SetLongValue(const char * name, int32_t value) override; \
  NS_IMETHOD SetDoubleValue(const char * name, double value) override; \
  NS_IMETHOD SetStringValue(const char * name, const nsAString & value) override; \
  NS_IMETHOD SetCStringValue(const char * name, const char * value) override; \
  NS_IMETHOD SetISupportsValue(const char * name, nsISupports *value) override; \
  NS_IMETHOD RemoveValue(const char * name) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSICOMMANDPARAMS \
  nsresult GetValueType(const char * name, int16_t *_retval); \
  nsresult GetBooleanValue(const char * name, bool *_retval); \
  nsresult GetLongValue(const char * name, int32_t *_retval); \
  nsresult GetDoubleValue(const char * name, double *_retval); \
  nsresult GetStringValue(const char * name, nsAString & _retval); \
  nsresult GetCStringValue(const char * name, char * *_retval); \
  nsresult GetISupportsValue(const char * name, nsISupports * *_retval); \
  nsresult SetBooleanValue(const char * name, bool value); \
  nsresult SetLongValue(const char * name, int32_t value); \
  nsresult SetDoubleValue(const char * name, double value); \
  nsresult SetStringValue(const char * name, const nsAString & value); \
  nsresult SetCStringValue(const char * name, const char * value); \
  nsresult SetISupportsValue(const char * name, nsISupports *value); \
  nsresult RemoveValue(const char * name); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICOMMANDPARAMS(_to) \
  NS_IMETHOD GetValueType(const char * name, int16_t *_retval) override { return _to GetValueType(name, _retval); } \
  NS_IMETHOD GetBooleanValue(const char * name, bool *_retval) override { return _to GetBooleanValue(name, _retval); } \
  NS_IMETHOD GetLongValue(const char * name, int32_t *_retval) override { return _to GetLongValue(name, _retval); } \
  NS_IMETHOD GetDoubleValue(const char * name, double *_retval) override { return _to GetDoubleValue(name, _retval); } \
  NS_IMETHOD GetStringValue(const char * name, nsAString & _retval) override { return _to GetStringValue(name, _retval); } \
  NS_IMETHOD GetCStringValue(const char * name, char * *_retval) override { return _to GetCStringValue(name, _retval); } \
  NS_IMETHOD GetISupportsValue(const char * name, nsISupports * *_retval) override { return _to GetISupportsValue(name, _retval); } \
  NS_IMETHOD SetBooleanValue(const char * name, bool value) override { return _to SetBooleanValue(name, value); } \
  NS_IMETHOD SetLongValue(const char * name, int32_t value) override { return _to SetLongValue(name, value); } \
  NS_IMETHOD SetDoubleValue(const char * name, double value) override { return _to SetDoubleValue(name, value); } \
  NS_IMETHOD SetStringValue(const char * name, const nsAString & value) override { return _to SetStringValue(name, value); } \
  NS_IMETHOD SetCStringValue(const char * name, const char * value) override { return _to SetCStringValue(name, value); } \
  NS_IMETHOD SetISupportsValue(const char * name, nsISupports *value) override { return _to SetISupportsValue(name, value); } \
  NS_IMETHOD RemoveValue(const char * name) override { return _to RemoveValue(name); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICOMMANDPARAMS(_to) \
  NS_IMETHOD GetValueType(const char * name, int16_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValueType(name, _retval); } \
  NS_IMETHOD GetBooleanValue(const char * name, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBooleanValue(name, _retval); } \
  NS_IMETHOD GetLongValue(const char * name, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLongValue(name, _retval); } \
  NS_IMETHOD GetDoubleValue(const char * name, double *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDoubleValue(name, _retval); } \
  NS_IMETHOD GetStringValue(const char * name, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStringValue(name, _retval); } \
  NS_IMETHOD GetCStringValue(const char * name, char * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCStringValue(name, _retval); } \
  NS_IMETHOD GetISupportsValue(const char * name, nsISupports * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetISupportsValue(name, _retval); } \
  NS_IMETHOD SetBooleanValue(const char * name, bool value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBooleanValue(name, value); } \
  NS_IMETHOD SetLongValue(const char * name, int32_t value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLongValue(name, value); } \
  NS_IMETHOD SetDoubleValue(const char * name, double value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDoubleValue(name, value); } \
  NS_IMETHOD SetStringValue(const char * name, const nsAString & value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStringValue(name, value); } \
  NS_IMETHOD SetCStringValue(const char * name, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCStringValue(name, value); } \
  NS_IMETHOD SetISupportsValue(const char * name, nsISupports *value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetISupportsValue(name, value); } \
  NS_IMETHOD RemoveValue(const char * name) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveValue(name); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsCommandParams : public nsICommandParams
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSICOMMANDPARAMS

  nsCommandParams();

private:
  ~nsCommandParams();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsCommandParams, nsICommandParams)

nsCommandParams::nsCommandParams()
{
  /* member initializers and constructor code */
}

nsCommandParams::~nsCommandParams()
{
  /* destructor code */
}

/* short getValueType (in string name); */
NS_IMETHODIMP nsCommandParams::GetValueType(const char * name, int16_t *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean getBooleanValue (in string name); */
NS_IMETHODIMP nsCommandParams::GetBooleanValue(const char * name, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* long getLongValue (in string name); */
NS_IMETHODIMP nsCommandParams::GetLongValue(const char * name, int32_t *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* double getDoubleValue (in string name); */
NS_IMETHODIMP nsCommandParams::GetDoubleValue(const char * name, double *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* AString getStringValue (in string name); */
NS_IMETHODIMP nsCommandParams::GetStringValue(const char * name, nsAString & _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* string getCStringValue (in string name); */
NS_IMETHODIMP nsCommandParams::GetCStringValue(const char * name, char * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsISupports getISupportsValue (in string name); */
NS_IMETHODIMP nsCommandParams::GetISupportsValue(const char * name, nsISupports * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setBooleanValue (in string name, in boolean value); */
NS_IMETHODIMP nsCommandParams::SetBooleanValue(const char * name, bool value)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setLongValue (in string name, in long value); */
NS_IMETHODIMP nsCommandParams::SetLongValue(const char * name, int32_t value)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setDoubleValue (in string name, in double value); */
NS_IMETHODIMP nsCommandParams::SetDoubleValue(const char * name, double value)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setStringValue (in string name, in AString value); */
NS_IMETHODIMP nsCommandParams::SetStringValue(const char * name, const nsAString & value)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setCStringValue (in string name, in string value); */
NS_IMETHODIMP nsCommandParams::SetCStringValue(const char * name, const char * value)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setISupportsValue (in string name, in nsISupports value); */
NS_IMETHODIMP nsCommandParams::SetISupportsValue(const char * name, nsISupports *value)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeValue (in string name); */
NS_IMETHODIMP nsCommandParams::RemoveValue(const char * name)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif

#define NS_COMMAND_PARAMS_CID { 0xf7fa4581, 0x238e, 0x11d5, { 0xa7, 0x3c, 0xab, 0x64, 0xfb, 0x68, 0xf2, 0xbc } }
#define NS_COMMAND_PARAMS_CONTRACTID "@mozilla.org/embedcomp/command-params;1"

#endif /* __gen_nsICommandParams_h__ */