/usr/include/thunderbird/nsIVariant.h is in thunderbird-dev 1:38.6.0+build1-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIVariant.idl
*/
#ifndef __gen_nsIVariant_h__
#define __gen_nsIVariant_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#include "js/Value.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
/* starting interface: nsIDataType */
#define NS_IDATATYPE_IID_STR "4d12e540-83d7-11d5-90ed-0010a4e73d9a"
#define NS_IDATATYPE_IID \
{0x4d12e540, 0x83d7, 0x11d5, \
{ 0x90, 0xed, 0x00, 0x10, 0xa4, 0xe7, 0x3d, 0x9a }}
class NS_NO_VTABLE nsIDataType : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDATATYPE_IID)
enum {
VTYPE_INT8 = 0U,
VTYPE_INT16 = 1U,
VTYPE_INT32 = 2U,
VTYPE_INT64 = 3U,
VTYPE_UINT8 = 4U,
VTYPE_UINT16 = 5U,
VTYPE_UINT32 = 6U,
VTYPE_UINT64 = 7U,
VTYPE_FLOAT = 8U,
VTYPE_DOUBLE = 9U,
VTYPE_BOOL = 10U,
VTYPE_CHAR = 11U,
VTYPE_WCHAR = 12U,
VTYPE_VOID = 13U,
VTYPE_ID = 14U,
VTYPE_DOMSTRING = 15U,
VTYPE_CHAR_STR = 16U,
VTYPE_WCHAR_STR = 17U,
VTYPE_INTERFACE = 18U,
VTYPE_INTERFACE_IS = 19U,
VTYPE_ARRAY = 20U,
VTYPE_STRING_SIZE_IS = 21U,
VTYPE_WSTRING_SIZE_IS = 22U,
VTYPE_UTF8STRING = 23U,
VTYPE_CSTRING = 24U,
VTYPE_ASTRING = 25U,
VTYPE_EMPTY_ARRAY = 254U,
VTYPE_EMPTY = 255U
};
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIDataType, NS_IDATATYPE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDATATYPE \
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDATATYPE(_to) \
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDATATYPE(_to) \
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsDataType : public nsIDataType
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIDATATYPE
nsDataType();
private:
~nsDataType();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsDataType, nsIDataType)
nsDataType::nsDataType()
{
/* member initializers and constructor code */
}
nsDataType::~nsDataType()
{
/* destructor code */
}
/* End of implementation class template. */
#endif
/* starting interface: nsIVariant */
#define NS_IVARIANT_IID_STR "81e4c2de-acac-4ad6-901a-b5fb1b851a0d"
#define NS_IVARIANT_IID \
{0x81e4c2de, 0xacac, 0x4ad6, \
{ 0x90, 0x1a, 0xb5, 0xfb, 0x1b, 0x85, 0x1a, 0x0d }}
class NS_NO_VTABLE nsIVariant : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IVARIANT_IID)
/* [noscript] readonly attribute uint16_t dataType; */
NS_IMETHOD GetDataType(uint16_t *aDataType) = 0;
/* [noscript] uint8_t getAsInt8 (); */
NS_IMETHOD GetAsInt8(uint8_t *_retval) = 0;
/* [noscript] int16_t getAsInt16 (); */
NS_IMETHOD GetAsInt16(int16_t *_retval) = 0;
/* [noscript] int32_t getAsInt32 (); */
NS_IMETHOD GetAsInt32(int32_t *_retval) = 0;
/* [noscript] int64_t getAsInt64 (); */
NS_IMETHOD GetAsInt64(int64_t *_retval) = 0;
/* [noscript] uint8_t getAsUint8 (); */
NS_IMETHOD GetAsUint8(uint8_t *_retval) = 0;
/* [noscript] uint16_t getAsUint16 (); */
NS_IMETHOD GetAsUint16(uint16_t *_retval) = 0;
/* [noscript] uint32_t getAsUint32 (); */
NS_IMETHOD GetAsUint32(uint32_t *_retval) = 0;
/* [noscript] uint64_t getAsUint64 (); */
NS_IMETHOD GetAsUint64(uint64_t *_retval) = 0;
/* [noscript] float getAsFloat (); */
NS_IMETHOD GetAsFloat(float *_retval) = 0;
/* [noscript] double getAsDouble (); */
NS_IMETHOD GetAsDouble(double *_retval) = 0;
/* [noscript] boolean getAsBool (); */
NS_IMETHOD GetAsBool(bool *_retval) = 0;
/* [noscript] char getAsChar (); */
NS_IMETHOD GetAsChar(char *_retval) = 0;
/* [noscript] wchar getAsWChar (); */
NS_IMETHOD GetAsWChar(char16_t *_retval) = 0;
/* [notxpcom] nsresult getAsID (out nsID retval); */
NS_IMETHOD_(nsresult) GetAsID(nsID *retval) = 0;
/* [noscript] AString getAsAString (); */
NS_IMETHOD GetAsAString(nsAString & _retval) = 0;
/* [noscript] DOMString getAsDOMString (); */
NS_IMETHOD GetAsDOMString(nsAString & _retval) = 0;
/* [noscript] ACString getAsACString (); */
NS_IMETHOD GetAsACString(nsACString & _retval) = 0;
/* [noscript] AUTF8String getAsAUTF8String (); */
NS_IMETHOD GetAsAUTF8String(nsACString & _retval) = 0;
/* [noscript] string getAsString (); */
NS_IMETHOD GetAsString(char * *_retval) = 0;
/* [noscript] wstring getAsWString (); */
NS_IMETHOD GetAsWString(char16_t * *_retval) = 0;
/* [noscript] nsISupports getAsISupports (); */
NS_IMETHOD GetAsISupports(nsISupports * *_retval) = 0;
/* [noscript] jsval getAsJSVal (); */
NS_IMETHOD GetAsJSVal(JS::MutableHandleValue _retval) = 0;
/* [noscript] void getAsInterface (out nsIIDPtr iid, [iid_is (iid), retval] out nsQIResult iface); */
NS_IMETHOD GetAsInterface(nsIID **iid, void **iface) = 0;
/* [notxpcom] nsresult getAsArray (out uint16_t type, out nsIID iid, out uint32_t count, out voidPtr ptr); */
NS_IMETHOD_(nsresult) GetAsArray(uint16_t *type, nsIID *iid, uint32_t *count, void **ptr) = 0;
/* [noscript] void getAsStringWithSize (out uint32_t size, [size_is (size), retval] out string str); */
NS_IMETHOD GetAsStringWithSize(uint32_t *size, char * *str) = 0;
/* [noscript] void getAsWStringWithSize (out uint32_t size, [size_is (size), retval] out wstring str); */
NS_IMETHOD GetAsWStringWithSize(uint32_t *size, char16_t * *str) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIVariant, NS_IVARIANT_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIVARIANT \
NS_IMETHOD GetDataType(uint16_t *aDataType) override; \
NS_IMETHOD GetAsInt8(uint8_t *_retval) override; \
NS_IMETHOD GetAsInt16(int16_t *_retval) override; \
NS_IMETHOD GetAsInt32(int32_t *_retval) override; \
NS_IMETHOD GetAsInt64(int64_t *_retval) override; \
NS_IMETHOD GetAsUint8(uint8_t *_retval) override; \
NS_IMETHOD GetAsUint16(uint16_t *_retval) override; \
NS_IMETHOD GetAsUint32(uint32_t *_retval) override; \
NS_IMETHOD GetAsUint64(uint64_t *_retval) override; \
NS_IMETHOD GetAsFloat(float *_retval) override; \
NS_IMETHOD GetAsDouble(double *_retval) override; \
NS_IMETHOD GetAsBool(bool *_retval) override; \
NS_IMETHOD GetAsChar(char *_retval) override; \
NS_IMETHOD GetAsWChar(char16_t *_retval) override; \
NS_IMETHOD_(nsresult) GetAsID(nsID *retval) override; \
NS_IMETHOD GetAsAString(nsAString & _retval) override; \
NS_IMETHOD GetAsDOMString(nsAString & _retval) override; \
NS_IMETHOD GetAsACString(nsACString & _retval) override; \
NS_IMETHOD GetAsAUTF8String(nsACString & _retval) override; \
NS_IMETHOD GetAsString(char * *_retval) override; \
NS_IMETHOD GetAsWString(char16_t * *_retval) override; \
NS_IMETHOD GetAsISupports(nsISupports * *_retval) override; \
NS_IMETHOD GetAsJSVal(JS::MutableHandleValue _retval) override; \
NS_IMETHOD GetAsInterface(nsIID **iid, void **iface) override; \
NS_IMETHOD_(nsresult) GetAsArray(uint16_t *type, nsIID *iid, uint32_t *count, void **ptr) override; \
NS_IMETHOD GetAsStringWithSize(uint32_t *size, char * *str) override; \
NS_IMETHOD GetAsWStringWithSize(uint32_t *size, char16_t * *str) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIVARIANT(_to) \
NS_IMETHOD GetDataType(uint16_t *aDataType) override { return _to GetDataType(aDataType); } \
NS_IMETHOD GetAsInt8(uint8_t *_retval) override { return _to GetAsInt8(_retval); } \
NS_IMETHOD GetAsInt16(int16_t *_retval) override { return _to GetAsInt16(_retval); } \
NS_IMETHOD GetAsInt32(int32_t *_retval) override { return _to GetAsInt32(_retval); } \
NS_IMETHOD GetAsInt64(int64_t *_retval) override { return _to GetAsInt64(_retval); } \
NS_IMETHOD GetAsUint8(uint8_t *_retval) override { return _to GetAsUint8(_retval); } \
NS_IMETHOD GetAsUint16(uint16_t *_retval) override { return _to GetAsUint16(_retval); } \
NS_IMETHOD GetAsUint32(uint32_t *_retval) override { return _to GetAsUint32(_retval); } \
NS_IMETHOD GetAsUint64(uint64_t *_retval) override { return _to GetAsUint64(_retval); } \
NS_IMETHOD GetAsFloat(float *_retval) override { return _to GetAsFloat(_retval); } \
NS_IMETHOD GetAsDouble(double *_retval) override { return _to GetAsDouble(_retval); } \
NS_IMETHOD GetAsBool(bool *_retval) override { return _to GetAsBool(_retval); } \
NS_IMETHOD GetAsChar(char *_retval) override { return _to GetAsChar(_retval); } \
NS_IMETHOD GetAsWChar(char16_t *_retval) override { return _to GetAsWChar(_retval); } \
NS_IMETHOD_(nsresult) GetAsID(nsID *retval) override { return _to GetAsID(retval); } \
NS_IMETHOD GetAsAString(nsAString & _retval) override { return _to GetAsAString(_retval); } \
NS_IMETHOD GetAsDOMString(nsAString & _retval) override { return _to GetAsDOMString(_retval); } \
NS_IMETHOD GetAsACString(nsACString & _retval) override { return _to GetAsACString(_retval); } \
NS_IMETHOD GetAsAUTF8String(nsACString & _retval) override { return _to GetAsAUTF8String(_retval); } \
NS_IMETHOD GetAsString(char * *_retval) override { return _to GetAsString(_retval); } \
NS_IMETHOD GetAsWString(char16_t * *_retval) override { return _to GetAsWString(_retval); } \
NS_IMETHOD GetAsISupports(nsISupports * *_retval) override { return _to GetAsISupports(_retval); } \
NS_IMETHOD GetAsJSVal(JS::MutableHandleValue _retval) override { return _to GetAsJSVal(_retval); } \
NS_IMETHOD GetAsInterface(nsIID **iid, void **iface) override { return _to GetAsInterface(iid, iface); } \
NS_IMETHOD_(nsresult) GetAsArray(uint16_t *type, nsIID *iid, uint32_t *count, void **ptr) override { return _to GetAsArray(type, iid, count, ptr); } \
NS_IMETHOD GetAsStringWithSize(uint32_t *size, char * *str) override { return _to GetAsStringWithSize(size, str); } \
NS_IMETHOD GetAsWStringWithSize(uint32_t *size, char16_t * *str) override { return _to GetAsWStringWithSize(size, str); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIVARIANT(_to) \
NS_IMETHOD GetDataType(uint16_t *aDataType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDataType(aDataType); } \
NS_IMETHOD GetAsInt8(uint8_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAsInt8(_retval); } \
NS_IMETHOD GetAsInt16(int16_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAsInt16(_retval); } \
NS_IMETHOD GetAsInt32(int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAsInt32(_retval); } \
NS_IMETHOD GetAsInt64(int64_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAsInt64(_retval); } \
NS_IMETHOD GetAsUint8(uint8_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAsUint8(_retval); } \
NS_IMETHOD GetAsUint16(uint16_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAsUint16(_retval); } \
NS_IMETHOD GetAsUint32(uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAsUint32(_retval); } \
NS_IMETHOD GetAsUint64(uint64_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAsUint64(_retval); } \
NS_IMETHOD GetAsFloat(float *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAsFloat(_retval); } \
NS_IMETHOD GetAsDouble(double *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAsDouble(_retval); } \
NS_IMETHOD GetAsBool(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAsBool(_retval); } \
NS_IMETHOD GetAsChar(char *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAsChar(_retval); } \
NS_IMETHOD GetAsWChar(char16_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAsWChar(_retval); } \
NS_IMETHOD_(nsresult) GetAsID(nsID *retval) override; \
NS_IMETHOD GetAsAString(nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAsAString(_retval); } \
NS_IMETHOD GetAsDOMString(nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAsDOMString(_retval); } \
NS_IMETHOD GetAsACString(nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAsACString(_retval); } \
NS_IMETHOD GetAsAUTF8String(nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAsAUTF8String(_retval); } \
NS_IMETHOD GetAsString(char * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAsString(_retval); } \
NS_IMETHOD GetAsWString(char16_t * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAsWString(_retval); } \
NS_IMETHOD GetAsISupports(nsISupports * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAsISupports(_retval); } \
NS_IMETHOD GetAsJSVal(JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAsJSVal(_retval); } \
NS_IMETHOD GetAsInterface(nsIID **iid, void **iface) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAsInterface(iid, iface); } \
NS_IMETHOD_(nsresult) GetAsArray(uint16_t *type, nsIID *iid, uint32_t *count, void **ptr) override; \
NS_IMETHOD GetAsStringWithSize(uint32_t *size, char * *str) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAsStringWithSize(size, str); } \
NS_IMETHOD GetAsWStringWithSize(uint32_t *size, char16_t * *str) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAsWStringWithSize(size, str); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsVariant : public nsIVariant
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIVARIANT
nsVariant();
private:
~nsVariant();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsVariant, nsIVariant)
nsVariant::nsVariant()
{
/* member initializers and constructor code */
}
nsVariant::~nsVariant()
{
/* destructor code */
}
/* [noscript] readonly attribute uint16_t dataType; */
NS_IMETHODIMP nsVariant::GetDataType(uint16_t *aDataType)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] uint8_t getAsInt8 (); */
NS_IMETHODIMP nsVariant::GetAsInt8(uint8_t *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] int16_t getAsInt16 (); */
NS_IMETHODIMP nsVariant::GetAsInt16(int16_t *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] int32_t getAsInt32 (); */
NS_IMETHODIMP nsVariant::GetAsInt32(int32_t *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] int64_t getAsInt64 (); */
NS_IMETHODIMP nsVariant::GetAsInt64(int64_t *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] uint8_t getAsUint8 (); */
NS_IMETHODIMP nsVariant::GetAsUint8(uint8_t *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] uint16_t getAsUint16 (); */
NS_IMETHODIMP nsVariant::GetAsUint16(uint16_t *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] uint32_t getAsUint32 (); */
NS_IMETHODIMP nsVariant::GetAsUint32(uint32_t *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] uint64_t getAsUint64 (); */
NS_IMETHODIMP nsVariant::GetAsUint64(uint64_t *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] float getAsFloat (); */
NS_IMETHODIMP nsVariant::GetAsFloat(float *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] double getAsDouble (); */
NS_IMETHODIMP nsVariant::GetAsDouble(double *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] boolean getAsBool (); */
NS_IMETHODIMP nsVariant::GetAsBool(bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] char getAsChar (); */
NS_IMETHODIMP nsVariant::GetAsChar(char *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] wchar getAsWChar (); */
NS_IMETHODIMP nsVariant::GetAsWChar(char16_t *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [notxpcom] nsresult getAsID (out nsID retval); */
NS_IMETHODIMP_(nsresult) nsVariant::GetAsID(nsID *retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] AString getAsAString (); */
NS_IMETHODIMP nsVariant::GetAsAString(nsAString & _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] DOMString getAsDOMString (); */
NS_IMETHODIMP nsVariant::GetAsDOMString(nsAString & _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] ACString getAsACString (); */
NS_IMETHODIMP nsVariant::GetAsACString(nsACString & _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] AUTF8String getAsAUTF8String (); */
NS_IMETHODIMP nsVariant::GetAsAUTF8String(nsACString & _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] string getAsString (); */
NS_IMETHODIMP nsVariant::GetAsString(char * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] wstring getAsWString (); */
NS_IMETHODIMP nsVariant::GetAsWString(char16_t * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] nsISupports getAsISupports (); */
NS_IMETHODIMP nsVariant::GetAsISupports(nsISupports * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] jsval getAsJSVal (); */
NS_IMETHODIMP nsVariant::GetAsJSVal(JS::MutableHandleValue _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] void getAsInterface (out nsIIDPtr iid, [iid_is (iid), retval] out nsQIResult iface); */
NS_IMETHODIMP nsVariant::GetAsInterface(nsIID **iid, void **iface)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [notxpcom] nsresult getAsArray (out uint16_t type, out nsIID iid, out uint32_t count, out voidPtr ptr); */
NS_IMETHODIMP_(nsresult) nsVariant::GetAsArray(uint16_t *type, nsIID *iid, uint32_t *count, void **ptr)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] void getAsStringWithSize (out uint32_t size, [size_is (size), retval] out string str); */
NS_IMETHODIMP nsVariant::GetAsStringWithSize(uint32_t *size, char * *str)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] void getAsWStringWithSize (out uint32_t size, [size_is (size), retval] out wstring str); */
NS_IMETHODIMP nsVariant::GetAsWStringWithSize(uint32_t *size, char16_t * *str)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIWritableVariant */
#define NS_IWRITABLEVARIANT_IID_STR "5586a590-8c82-11d5-90f3-0010a4e73d9a"
#define NS_IWRITABLEVARIANT_IID \
{0x5586a590, 0x8c82, 0x11d5, \
{ 0x90, 0xf3, 0x00, 0x10, 0xa4, 0xe7, 0x3d, 0x9a }}
class NS_NO_VTABLE nsIWritableVariant : public nsIVariant {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWRITABLEVARIANT_IID)
/* attribute boolean writable; */
NS_IMETHOD GetWritable(bool *aWritable) = 0;
NS_IMETHOD SetWritable(bool aWritable) = 0;
/* void setAsInt8 (in uint8_t aValue); */
NS_IMETHOD SetAsInt8(uint8_t aValue) = 0;
/* void setAsInt16 (in int16_t aValue); */
NS_IMETHOD SetAsInt16(int16_t aValue) = 0;
/* void setAsInt32 (in int32_t aValue); */
NS_IMETHOD SetAsInt32(int32_t aValue) = 0;
/* void setAsInt64 (in int64_t aValue); */
NS_IMETHOD SetAsInt64(int64_t aValue) = 0;
/* void setAsUint8 (in uint8_t aValue); */
NS_IMETHOD SetAsUint8(uint8_t aValue) = 0;
/* void setAsUint16 (in uint16_t aValue); */
NS_IMETHOD SetAsUint16(uint16_t aValue) = 0;
/* void setAsUint32 (in uint32_t aValue); */
NS_IMETHOD SetAsUint32(uint32_t aValue) = 0;
/* void setAsUint64 (in uint64_t aValue); */
NS_IMETHOD SetAsUint64(uint64_t aValue) = 0;
/* void setAsFloat (in float aValue); */
NS_IMETHOD SetAsFloat(float aValue) = 0;
/* void setAsDouble (in double aValue); */
NS_IMETHOD SetAsDouble(double aValue) = 0;
/* void setAsBool (in boolean aValue); */
NS_IMETHOD SetAsBool(bool aValue) = 0;
/* void setAsChar (in char aValue); */
NS_IMETHOD SetAsChar(char aValue) = 0;
/* void setAsWChar (in wchar aValue); */
NS_IMETHOD SetAsWChar(char16_t aValue) = 0;
/* void setAsID (in nsIDRef aValue); */
NS_IMETHOD SetAsID(const nsID & aValue) = 0;
/* void setAsAString (in AString aValue); */
NS_IMETHOD SetAsAString(const nsAString & aValue) = 0;
/* void setAsDOMString (in DOMString aValue); */
NS_IMETHOD SetAsDOMString(const nsAString & aValue) = 0;
/* void setAsACString (in ACString aValue); */
NS_IMETHOD SetAsACString(const nsACString & aValue) = 0;
/* void setAsAUTF8String (in AUTF8String aValue); */
NS_IMETHOD SetAsAUTF8String(const nsACString & aValue) = 0;
/* void setAsString (in string aValue); */
NS_IMETHOD SetAsString(const char * aValue) = 0;
/* void setAsWString (in wstring aValue); */
NS_IMETHOD SetAsWString(const char16_t * aValue) = 0;
/* void setAsISupports (in nsISupports aValue); */
NS_IMETHOD SetAsISupports(nsISupports *aValue) = 0;
/* void setAsInterface (in nsIIDRef iid, [iid_is (iid)] in nsQIResult iface); */
NS_IMETHOD SetAsInterface(const nsIID & iid, void *iface) = 0;
/* [noscript] void setAsArray (in uint16_t type, in nsIIDPtr iid, in uint32_t count, in voidPtr ptr); */
NS_IMETHOD SetAsArray(uint16_t type, const nsIID *iid, uint32_t count, void *ptr) = 0;
/* void setAsStringWithSize (in uint32_t size, [size_is (size)] in string str); */
NS_IMETHOD SetAsStringWithSize(uint32_t size, const char * str) = 0;
/* void setAsWStringWithSize (in uint32_t size, [size_is (size)] in wstring str); */
NS_IMETHOD SetAsWStringWithSize(uint32_t size, const char16_t * str) = 0;
/* void setAsVoid (); */
NS_IMETHOD SetAsVoid(void) = 0;
/* void setAsEmpty (); */
NS_IMETHOD SetAsEmpty(void) = 0;
/* void setAsEmptyArray (); */
NS_IMETHOD SetAsEmptyArray(void) = 0;
/* void setFromVariant (in nsIVariant aValue); */
NS_IMETHOD SetFromVariant(nsIVariant *aValue) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIWritableVariant, NS_IWRITABLEVARIANT_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIWRITABLEVARIANT \
NS_IMETHOD GetWritable(bool *aWritable) override; \
NS_IMETHOD SetWritable(bool aWritable) override; \
NS_IMETHOD SetAsInt8(uint8_t aValue) override; \
NS_IMETHOD SetAsInt16(int16_t aValue) override; \
NS_IMETHOD SetAsInt32(int32_t aValue) override; \
NS_IMETHOD SetAsInt64(int64_t aValue) override; \
NS_IMETHOD SetAsUint8(uint8_t aValue) override; \
NS_IMETHOD SetAsUint16(uint16_t aValue) override; \
NS_IMETHOD SetAsUint32(uint32_t aValue) override; \
NS_IMETHOD SetAsUint64(uint64_t aValue) override; \
NS_IMETHOD SetAsFloat(float aValue) override; \
NS_IMETHOD SetAsDouble(double aValue) override; \
NS_IMETHOD SetAsBool(bool aValue) override; \
NS_IMETHOD SetAsChar(char aValue) override; \
NS_IMETHOD SetAsWChar(char16_t aValue) override; \
NS_IMETHOD SetAsID(const nsID & aValue) override; \
NS_IMETHOD SetAsAString(const nsAString & aValue) override; \
NS_IMETHOD SetAsDOMString(const nsAString & aValue) override; \
NS_IMETHOD SetAsACString(const nsACString & aValue) override; \
NS_IMETHOD SetAsAUTF8String(const nsACString & aValue) override; \
NS_IMETHOD SetAsString(const char * aValue) override; \
NS_IMETHOD SetAsWString(const char16_t * aValue) override; \
NS_IMETHOD SetAsISupports(nsISupports *aValue) override; \
NS_IMETHOD SetAsInterface(const nsIID & iid, void *iface) override; \
NS_IMETHOD SetAsArray(uint16_t type, const nsIID *iid, uint32_t count, void *ptr) override; \
NS_IMETHOD SetAsStringWithSize(uint32_t size, const char * str) override; \
NS_IMETHOD SetAsWStringWithSize(uint32_t size, const char16_t * str) override; \
NS_IMETHOD SetAsVoid(void) override; \
NS_IMETHOD SetAsEmpty(void) override; \
NS_IMETHOD SetAsEmptyArray(void) override; \
NS_IMETHOD SetFromVariant(nsIVariant *aValue) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIWRITABLEVARIANT(_to) \
NS_IMETHOD GetWritable(bool *aWritable) override { return _to GetWritable(aWritable); } \
NS_IMETHOD SetWritable(bool aWritable) override { return _to SetWritable(aWritable); } \
NS_IMETHOD SetAsInt8(uint8_t aValue) override { return _to SetAsInt8(aValue); } \
NS_IMETHOD SetAsInt16(int16_t aValue) override { return _to SetAsInt16(aValue); } \
NS_IMETHOD SetAsInt32(int32_t aValue) override { return _to SetAsInt32(aValue); } \
NS_IMETHOD SetAsInt64(int64_t aValue) override { return _to SetAsInt64(aValue); } \
NS_IMETHOD SetAsUint8(uint8_t aValue) override { return _to SetAsUint8(aValue); } \
NS_IMETHOD SetAsUint16(uint16_t aValue) override { return _to SetAsUint16(aValue); } \
NS_IMETHOD SetAsUint32(uint32_t aValue) override { return _to SetAsUint32(aValue); } \
NS_IMETHOD SetAsUint64(uint64_t aValue) override { return _to SetAsUint64(aValue); } \
NS_IMETHOD SetAsFloat(float aValue) override { return _to SetAsFloat(aValue); } \
NS_IMETHOD SetAsDouble(double aValue) override { return _to SetAsDouble(aValue); } \
NS_IMETHOD SetAsBool(bool aValue) override { return _to SetAsBool(aValue); } \
NS_IMETHOD SetAsChar(char aValue) override { return _to SetAsChar(aValue); } \
NS_IMETHOD SetAsWChar(char16_t aValue) override { return _to SetAsWChar(aValue); } \
NS_IMETHOD SetAsID(const nsID & aValue) override { return _to SetAsID(aValue); } \
NS_IMETHOD SetAsAString(const nsAString & aValue) override { return _to SetAsAString(aValue); } \
NS_IMETHOD SetAsDOMString(const nsAString & aValue) override { return _to SetAsDOMString(aValue); } \
NS_IMETHOD SetAsACString(const nsACString & aValue) override { return _to SetAsACString(aValue); } \
NS_IMETHOD SetAsAUTF8String(const nsACString & aValue) override { return _to SetAsAUTF8String(aValue); } \
NS_IMETHOD SetAsString(const char * aValue) override { return _to SetAsString(aValue); } \
NS_IMETHOD SetAsWString(const char16_t * aValue) override { return _to SetAsWString(aValue); } \
NS_IMETHOD SetAsISupports(nsISupports *aValue) override { return _to SetAsISupports(aValue); } \
NS_IMETHOD SetAsInterface(const nsIID & iid, void *iface) override { return _to SetAsInterface(iid, iface); } \
NS_IMETHOD SetAsArray(uint16_t type, const nsIID *iid, uint32_t count, void *ptr) override { return _to SetAsArray(type, iid, count, ptr); } \
NS_IMETHOD SetAsStringWithSize(uint32_t size, const char * str) override { return _to SetAsStringWithSize(size, str); } \
NS_IMETHOD SetAsWStringWithSize(uint32_t size, const char16_t * str) override { return _to SetAsWStringWithSize(size, str); } \
NS_IMETHOD SetAsVoid(void) override { return _to SetAsVoid(); } \
NS_IMETHOD SetAsEmpty(void) override { return _to SetAsEmpty(); } \
NS_IMETHOD SetAsEmptyArray(void) override { return _to SetAsEmptyArray(); } \
NS_IMETHOD SetFromVariant(nsIVariant *aValue) override { return _to SetFromVariant(aValue); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIWRITABLEVARIANT(_to) \
NS_IMETHOD GetWritable(bool *aWritable) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWritable(aWritable); } \
NS_IMETHOD SetWritable(bool aWritable) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWritable(aWritable); } \
NS_IMETHOD SetAsInt8(uint8_t aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsInt8(aValue); } \
NS_IMETHOD SetAsInt16(int16_t aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsInt16(aValue); } \
NS_IMETHOD SetAsInt32(int32_t aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsInt32(aValue); } \
NS_IMETHOD SetAsInt64(int64_t aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsInt64(aValue); } \
NS_IMETHOD SetAsUint8(uint8_t aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsUint8(aValue); } \
NS_IMETHOD SetAsUint16(uint16_t aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsUint16(aValue); } \
NS_IMETHOD SetAsUint32(uint32_t aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsUint32(aValue); } \
NS_IMETHOD SetAsUint64(uint64_t aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsUint64(aValue); } \
NS_IMETHOD SetAsFloat(float aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsFloat(aValue); } \
NS_IMETHOD SetAsDouble(double aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsDouble(aValue); } \
NS_IMETHOD SetAsBool(bool aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsBool(aValue); } \
NS_IMETHOD SetAsChar(char aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsChar(aValue); } \
NS_IMETHOD SetAsWChar(char16_t aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsWChar(aValue); } \
NS_IMETHOD SetAsID(const nsID & aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsID(aValue); } \
NS_IMETHOD SetAsAString(const nsAString & aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsAString(aValue); } \
NS_IMETHOD SetAsDOMString(const nsAString & aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsDOMString(aValue); } \
NS_IMETHOD SetAsACString(const nsACString & aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsACString(aValue); } \
NS_IMETHOD SetAsAUTF8String(const nsACString & aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsAUTF8String(aValue); } \
NS_IMETHOD SetAsString(const char * aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsString(aValue); } \
NS_IMETHOD SetAsWString(const char16_t * aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsWString(aValue); } \
NS_IMETHOD SetAsISupports(nsISupports *aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsISupports(aValue); } \
NS_IMETHOD SetAsInterface(const nsIID & iid, void *iface) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsInterface(iid, iface); } \
NS_IMETHOD SetAsArray(uint16_t type, const nsIID *iid, uint32_t count, void *ptr) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsArray(type, iid, count, ptr); } \
NS_IMETHOD SetAsStringWithSize(uint32_t size, const char * str) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsStringWithSize(size, str); } \
NS_IMETHOD SetAsWStringWithSize(uint32_t size, const char16_t * str) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsWStringWithSize(size, str); } \
NS_IMETHOD SetAsVoid(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsVoid(); } \
NS_IMETHOD SetAsEmpty(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsEmpty(); } \
NS_IMETHOD SetAsEmptyArray(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsEmptyArray(); } \
NS_IMETHOD SetFromVariant(nsIVariant *aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFromVariant(aValue); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsWritableVariant : public nsIWritableVariant
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIWRITABLEVARIANT
nsWritableVariant();
private:
~nsWritableVariant();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsWritableVariant, nsIWritableVariant)
nsWritableVariant::nsWritableVariant()
{
/* member initializers and constructor code */
}
nsWritableVariant::~nsWritableVariant()
{
/* destructor code */
}
/* attribute boolean writable; */
NS_IMETHODIMP nsWritableVariant::GetWritable(bool *aWritable)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsWritableVariant::SetWritable(bool aWritable)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAsInt8 (in uint8_t aValue); */
NS_IMETHODIMP nsWritableVariant::SetAsInt8(uint8_t aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAsInt16 (in int16_t aValue); */
NS_IMETHODIMP nsWritableVariant::SetAsInt16(int16_t aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAsInt32 (in int32_t aValue); */
NS_IMETHODIMP nsWritableVariant::SetAsInt32(int32_t aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAsInt64 (in int64_t aValue); */
NS_IMETHODIMP nsWritableVariant::SetAsInt64(int64_t aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAsUint8 (in uint8_t aValue); */
NS_IMETHODIMP nsWritableVariant::SetAsUint8(uint8_t aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAsUint16 (in uint16_t aValue); */
NS_IMETHODIMP nsWritableVariant::SetAsUint16(uint16_t aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAsUint32 (in uint32_t aValue); */
NS_IMETHODIMP nsWritableVariant::SetAsUint32(uint32_t aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAsUint64 (in uint64_t aValue); */
NS_IMETHODIMP nsWritableVariant::SetAsUint64(uint64_t aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAsFloat (in float aValue); */
NS_IMETHODIMP nsWritableVariant::SetAsFloat(float aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAsDouble (in double aValue); */
NS_IMETHODIMP nsWritableVariant::SetAsDouble(double aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAsBool (in boolean aValue); */
NS_IMETHODIMP nsWritableVariant::SetAsBool(bool aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAsChar (in char aValue); */
NS_IMETHODIMP nsWritableVariant::SetAsChar(char aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAsWChar (in wchar aValue); */
NS_IMETHODIMP nsWritableVariant::SetAsWChar(char16_t aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAsID (in nsIDRef aValue); */
NS_IMETHODIMP nsWritableVariant::SetAsID(const nsID & aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAsAString (in AString aValue); */
NS_IMETHODIMP nsWritableVariant::SetAsAString(const nsAString & aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAsDOMString (in DOMString aValue); */
NS_IMETHODIMP nsWritableVariant::SetAsDOMString(const nsAString & aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAsACString (in ACString aValue); */
NS_IMETHODIMP nsWritableVariant::SetAsACString(const nsACString & aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAsAUTF8String (in AUTF8String aValue); */
NS_IMETHODIMP nsWritableVariant::SetAsAUTF8String(const nsACString & aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAsString (in string aValue); */
NS_IMETHODIMP nsWritableVariant::SetAsString(const char * aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAsWString (in wstring aValue); */
NS_IMETHODIMP nsWritableVariant::SetAsWString(const char16_t * aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAsISupports (in nsISupports aValue); */
NS_IMETHODIMP nsWritableVariant::SetAsISupports(nsISupports *aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAsInterface (in nsIIDRef iid, [iid_is (iid)] in nsQIResult iface); */
NS_IMETHODIMP nsWritableVariant::SetAsInterface(const nsIID & iid, void *iface)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] void setAsArray (in uint16_t type, in nsIIDPtr iid, in uint32_t count, in voidPtr ptr); */
NS_IMETHODIMP nsWritableVariant::SetAsArray(uint16_t type, const nsIID *iid, uint32_t count, void *ptr)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAsStringWithSize (in uint32_t size, [size_is (size)] in string str); */
NS_IMETHODIMP nsWritableVariant::SetAsStringWithSize(uint32_t size, const char * str)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAsWStringWithSize (in uint32_t size, [size_is (size)] in wstring str); */
NS_IMETHODIMP nsWritableVariant::SetAsWStringWithSize(uint32_t size, const char16_t * str)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAsVoid (); */
NS_IMETHODIMP nsWritableVariant::SetAsVoid()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAsEmpty (); */
NS_IMETHODIMP nsWritableVariant::SetAsEmpty()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAsEmptyArray (); */
NS_IMETHODIMP nsWritableVariant::SetAsEmptyArray()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setFromVariant (in nsIVariant aValue); */
NS_IMETHODIMP nsWritableVariant::SetFromVariant(nsIVariant *aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
// The contractID for the generic implementation built in to xpcom.
#define NS_VARIANT_CONTRACTID "@mozilla.org/variant;1"
#endif /* __gen_nsIVariant_h__ */
|