/usr/include/thunderbird/nsITVService.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 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsITVService.idl
*/
#ifndef __gen_nsITVService_h__
#define __gen_nsITVService_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#include "mozilla/Assertions.h"
#include "mozilla/DebugOnly.h"
#include "mozilla/Assertions.h"
#include "mozilla/DebugOnly.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIArray; /* forward declaration */
#define TV_TUNER_DATA_CID \
{ 0x1f36be28, 0xf9fe, 0x2dc3, { 0xbf, 0x2a, 0x17, 0x97, 0x93, 0x40, 0xff, 0xe1 } }
#define TV_TUNER_DATA_CONTRACTID \
"@mozilla.org/tv/tvtunerdata;1"
/* starting interface: nsITVTunerData */
#define NS_ITVTUNERDATA_IID_STR "608d3f7e-f9f1-4b3c-82c2-3eb60b1d3de8"
#define NS_ITVTUNERDATA_IID \
{0x608d3f7e, 0xf9f1, 0x4b3c, \
{ 0x82, 0xc2, 0x3e, 0xb6, 0x0b, 0x1d, 0x3d, 0xe8 }}
class NS_NO_VTABLE nsITVTunerData : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITVTUNERDATA_IID)
/* attribute DOMString id; */
NS_IMETHOD GetId(nsAString & aId) = 0;
NS_IMETHOD SetId(const nsAString & aId) = 0;
/* void getSupportedSourceTypes ([optional] out unsigned long count, [array, size_is (count), retval] out string sourceTypes); */
NS_IMETHOD GetSupportedSourceTypes(uint32_t *count, char * **sourceTypes) = 0;
/* void setSupportedSourceTypes (in unsigned long count, [array, size_is (count)] in string sourceTypes); */
NS_IMETHOD SetSupportedSourceTypes(uint32_t count, const char * *sourceTypes) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsITVTunerData, NS_ITVTUNERDATA_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITVTUNERDATA \
NS_IMETHOD GetId(nsAString & aId) override; \
NS_IMETHOD SetId(const nsAString & aId) override; \
NS_IMETHOD GetSupportedSourceTypes(uint32_t *count, char * **sourceTypes) override; \
NS_IMETHOD SetSupportedSourceTypes(uint32_t count, const char * *sourceTypes) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITVTUNERDATA(_to) \
NS_IMETHOD GetId(nsAString & aId) override { return _to GetId(aId); } \
NS_IMETHOD SetId(const nsAString & aId) override { return _to SetId(aId); } \
NS_IMETHOD GetSupportedSourceTypes(uint32_t *count, char * **sourceTypes) override { return _to GetSupportedSourceTypes(count, sourceTypes); } \
NS_IMETHOD SetSupportedSourceTypes(uint32_t count, const char * *sourceTypes) override { return _to SetSupportedSourceTypes(count, sourceTypes); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITVTUNERDATA(_to) \
NS_IMETHOD GetId(nsAString & aId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \
NS_IMETHOD SetId(const nsAString & aId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetId(aId); } \
NS_IMETHOD GetSupportedSourceTypes(uint32_t *count, char * **sourceTypes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSupportedSourceTypes(count, sourceTypes); } \
NS_IMETHOD SetSupportedSourceTypes(uint32_t count, const char * *sourceTypes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSupportedSourceTypes(count, sourceTypes); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsTVTunerData : public nsITVTunerData
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSITVTUNERDATA
nsTVTunerData();
private:
~nsTVTunerData();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsTVTunerData, nsITVTunerData)
nsTVTunerData::nsTVTunerData()
{
/* member initializers and constructor code */
}
nsTVTunerData::~nsTVTunerData()
{
/* destructor code */
}
/* attribute DOMString id; */
NS_IMETHODIMP nsTVTunerData::GetId(nsAString & aId)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsTVTunerData::SetId(const nsAString & aId)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getSupportedSourceTypes ([optional] out unsigned long count, [array, size_is (count), retval] out string sourceTypes); */
NS_IMETHODIMP nsTVTunerData::GetSupportedSourceTypes(uint32_t *count, char * **sourceTypes)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setSupportedSourceTypes (in unsigned long count, [array, size_is (count)] in string sourceTypes); */
NS_IMETHODIMP nsTVTunerData::SetSupportedSourceTypes(uint32_t count, const char * *sourceTypes)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#define TV_CHANNEL_DATA_CID \
{ 0xdafe6881, 0x0964, 0xdb5b, { 0x59, 0xc6, 0x20, 0x0b, 0xa6, 0x59, 0xe6, 0x68 } }
#define TV_CHANNEL_DATA_CONTRACTID \
"@mozilla.org/tv/tvchanneldata;1"
/* starting interface: nsITVChannelData */
#define NS_ITVCHANNELDATA_IID_STR "5d01ea74-2db6-11e4-9dba-74d02b97e723"
#define NS_ITVCHANNELDATA_IID \
{0x5d01ea74, 0x2db6, 0x11e4, \
{ 0x9d, 0xba, 0x74, 0xd0, 0x2b, 0x97, 0xe7, 0x23 }}
class NS_NO_VTABLE nsITVChannelData : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITVCHANNELDATA_IID)
/* attribute DOMString networkId; */
NS_IMETHOD GetNetworkId(nsAString & aNetworkId) = 0;
NS_IMETHOD SetNetworkId(const nsAString & aNetworkId) = 0;
/* attribute DOMString transportStreamId; */
NS_IMETHOD GetTransportStreamId(nsAString & aTransportStreamId) = 0;
NS_IMETHOD SetTransportStreamId(const nsAString & aTransportStreamId) = 0;
/* attribute DOMString serviceId; */
NS_IMETHOD GetServiceId(nsAString & aServiceId) = 0;
NS_IMETHOD SetServiceId(const nsAString & aServiceId) = 0;
/* attribute DOMString type; */
NS_IMETHOD GetType(nsAString & aType) = 0;
NS_IMETHOD SetType(const nsAString & aType) = 0;
/* attribute DOMString number; */
NS_IMETHOD GetNumber(nsAString & aNumber) = 0;
NS_IMETHOD SetNumber(const nsAString & aNumber) = 0;
/* attribute DOMString name; */
NS_IMETHOD GetName(nsAString & aName) = 0;
NS_IMETHOD SetName(const nsAString & aName) = 0;
/* [infallible] attribute boolean isEmergency; */
NS_IMETHOD GetIsEmergency(bool *aIsEmergency) = 0;
inline bool GetIsEmergency()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetIsEmergency(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetIsEmergency(bool aIsEmergency) = 0;
/* [infallible] attribute boolean isFree; */
NS_IMETHOD GetIsFree(bool *aIsFree) = 0;
inline bool GetIsFree()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetIsFree(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetIsFree(bool aIsFree) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsITVChannelData, NS_ITVCHANNELDATA_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITVCHANNELDATA \
NS_IMETHOD GetNetworkId(nsAString & aNetworkId) override; \
NS_IMETHOD SetNetworkId(const nsAString & aNetworkId) override; \
NS_IMETHOD GetTransportStreamId(nsAString & aTransportStreamId) override; \
NS_IMETHOD SetTransportStreamId(const nsAString & aTransportStreamId) override; \
NS_IMETHOD GetServiceId(nsAString & aServiceId) override; \
NS_IMETHOD SetServiceId(const nsAString & aServiceId) override; \
NS_IMETHOD GetType(nsAString & aType) override; \
NS_IMETHOD SetType(const nsAString & aType) override; \
NS_IMETHOD GetNumber(nsAString & aNumber) override; \
NS_IMETHOD SetNumber(const nsAString & aNumber) override; \
NS_IMETHOD GetName(nsAString & aName) override; \
NS_IMETHOD SetName(const nsAString & aName) override; \
using nsITVChannelData::GetIsEmergency; \
NS_IMETHOD GetIsEmergency(bool *aIsEmergency) override; \
NS_IMETHOD SetIsEmergency(bool aIsEmergency) override; \
using nsITVChannelData::GetIsFree; \
NS_IMETHOD GetIsFree(bool *aIsFree) override; \
NS_IMETHOD SetIsFree(bool aIsFree) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITVCHANNELDATA(_to) \
NS_IMETHOD GetNetworkId(nsAString & aNetworkId) override { return _to GetNetworkId(aNetworkId); } \
NS_IMETHOD SetNetworkId(const nsAString & aNetworkId) override { return _to SetNetworkId(aNetworkId); } \
NS_IMETHOD GetTransportStreamId(nsAString & aTransportStreamId) override { return _to GetTransportStreamId(aTransportStreamId); } \
NS_IMETHOD SetTransportStreamId(const nsAString & aTransportStreamId) override { return _to SetTransportStreamId(aTransportStreamId); } \
NS_IMETHOD GetServiceId(nsAString & aServiceId) override { return _to GetServiceId(aServiceId); } \
NS_IMETHOD SetServiceId(const nsAString & aServiceId) override { return _to SetServiceId(aServiceId); } \
NS_IMETHOD GetType(nsAString & aType) override { return _to GetType(aType); } \
NS_IMETHOD SetType(const nsAString & aType) override { return _to SetType(aType); } \
NS_IMETHOD GetNumber(nsAString & aNumber) override { return _to GetNumber(aNumber); } \
NS_IMETHOD SetNumber(const nsAString & aNumber) override { return _to SetNumber(aNumber); } \
NS_IMETHOD GetName(nsAString & aName) override { return _to GetName(aName); } \
NS_IMETHOD SetName(const nsAString & aName) override { return _to SetName(aName); } \
using nsITVChannelData::GetIsEmergency; \
NS_IMETHOD GetIsEmergency(bool *aIsEmergency) override { return _to GetIsEmergency(aIsEmergency); } \
NS_IMETHOD SetIsEmergency(bool aIsEmergency) override { return _to SetIsEmergency(aIsEmergency); } \
using nsITVChannelData::GetIsFree; \
NS_IMETHOD GetIsFree(bool *aIsFree) override { return _to GetIsFree(aIsFree); } \
NS_IMETHOD SetIsFree(bool aIsFree) override { return _to SetIsFree(aIsFree); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITVCHANNELDATA(_to) \
NS_IMETHOD GetNetworkId(nsAString & aNetworkId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNetworkId(aNetworkId); } \
NS_IMETHOD SetNetworkId(const nsAString & aNetworkId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNetworkId(aNetworkId); } \
NS_IMETHOD GetTransportStreamId(nsAString & aTransportStreamId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTransportStreamId(aTransportStreamId); } \
NS_IMETHOD SetTransportStreamId(const nsAString & aTransportStreamId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTransportStreamId(aTransportStreamId); } \
NS_IMETHOD GetServiceId(nsAString & aServiceId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServiceId(aServiceId); } \
NS_IMETHOD SetServiceId(const nsAString & aServiceId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetServiceId(aServiceId); } \
NS_IMETHOD GetType(nsAString & aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
NS_IMETHOD SetType(const nsAString & aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetType(aType); } \
NS_IMETHOD GetNumber(nsAString & aNumber) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumber(aNumber); } \
NS_IMETHOD SetNumber(const nsAString & aNumber) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNumber(aNumber); } \
NS_IMETHOD GetName(nsAString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
NS_IMETHOD SetName(const nsAString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetName(aName); } \
NS_IMETHOD GetIsEmergency(bool *aIsEmergency) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsEmergency(aIsEmergency); } \
NS_IMETHOD SetIsEmergency(bool aIsEmergency) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsEmergency(aIsEmergency); } \
NS_IMETHOD GetIsFree(bool *aIsFree) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsFree(aIsFree); } \
NS_IMETHOD SetIsFree(bool aIsFree) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsFree(aIsFree); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsTVChannelData : public nsITVChannelData
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSITVCHANNELDATA
nsTVChannelData();
private:
~nsTVChannelData();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsTVChannelData, nsITVChannelData)
nsTVChannelData::nsTVChannelData()
{
/* member initializers and constructor code */
}
nsTVChannelData::~nsTVChannelData()
{
/* destructor code */
}
/* attribute DOMString networkId; */
NS_IMETHODIMP nsTVChannelData::GetNetworkId(nsAString & aNetworkId)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsTVChannelData::SetNetworkId(const nsAString & aNetworkId)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute DOMString transportStreamId; */
NS_IMETHODIMP nsTVChannelData::GetTransportStreamId(nsAString & aTransportStreamId)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsTVChannelData::SetTransportStreamId(const nsAString & aTransportStreamId)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute DOMString serviceId; */
NS_IMETHODIMP nsTVChannelData::GetServiceId(nsAString & aServiceId)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsTVChannelData::SetServiceId(const nsAString & aServiceId)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute DOMString type; */
NS_IMETHODIMP nsTVChannelData::GetType(nsAString & aType)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsTVChannelData::SetType(const nsAString & aType)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute DOMString number; */
NS_IMETHODIMP nsTVChannelData::GetNumber(nsAString & aNumber)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsTVChannelData::SetNumber(const nsAString & aNumber)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute DOMString name; */
NS_IMETHODIMP nsTVChannelData::GetName(nsAString & aName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsTVChannelData::SetName(const nsAString & aName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [infallible] attribute boolean isEmergency; */
NS_IMETHODIMP nsTVChannelData::GetIsEmergency(bool *aIsEmergency)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsTVChannelData::SetIsEmergency(bool aIsEmergency)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [infallible] attribute boolean isFree; */
NS_IMETHODIMP nsTVChannelData::GetIsFree(bool *aIsFree)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsTVChannelData::SetIsFree(bool aIsFree)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#define TV_PROGRAM_DATA_CID \
{ 0x11415eeb, 0x27a6, 0x1c04, { 0x91, 0x33, 0x3e, 0x0a, 0xdd, 0x48, 0x5d, 0xb3 } }
#define TV_PROGRAM_DATA_CONTRACTID \
"@mozilla.org/tv/tvprogramdata;1"
/* starting interface: nsITVProgramData */
#define NS_ITVPROGRAMDATA_IID_STR "ed65422e-2d97-11e4-89d6-74d02b97e723"
#define NS_ITVPROGRAMDATA_IID \
{0xed65422e, 0x2d97, 0x11e4, \
{ 0x89, 0xd6, 0x74, 0xd0, 0x2b, 0x97, 0xe7, 0x23 }}
class NS_NO_VTABLE nsITVProgramData : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITVPROGRAMDATA_IID)
/* attribute DOMString eventId; */
NS_IMETHOD GetEventId(nsAString & aEventId) = 0;
NS_IMETHOD SetEventId(const nsAString & aEventId) = 0;
/* attribute DOMString title; */
NS_IMETHOD GetTitle(nsAString & aTitle) = 0;
NS_IMETHOD SetTitle(const nsAString & aTitle) = 0;
/* [infallible] attribute unsigned long long startTime; */
NS_IMETHOD GetStartTime(uint64_t *aStartTime) = 0;
inline uint64_t GetStartTime()
{
uint64_t result;
mozilla::DebugOnly<nsresult> rv = GetStartTime(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetStartTime(uint64_t aStartTime) = 0;
/* [infallible] attribute unsigned long long duration; */
NS_IMETHOD GetDuration(uint64_t *aDuration) = 0;
inline uint64_t GetDuration()
{
uint64_t result;
mozilla::DebugOnly<nsresult> rv = GetDuration(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
NS_IMETHOD SetDuration(uint64_t aDuration) = 0;
/* attribute DOMString description; */
NS_IMETHOD GetDescription(nsAString & aDescription) = 0;
NS_IMETHOD SetDescription(const nsAString & aDescription) = 0;
/* attribute DOMString rating; */
NS_IMETHOD GetRating(nsAString & aRating) = 0;
NS_IMETHOD SetRating(const nsAString & aRating) = 0;
/* void getAudioLanguages ([optional] out unsigned long count, [array, size_is (count), retval] out string languages); */
NS_IMETHOD GetAudioLanguages(uint32_t *count, char * **languages) = 0;
/* void setAudioLanguages (in unsigned long count, [array, size_is (count)] in string languages); */
NS_IMETHOD SetAudioLanguages(uint32_t count, const char * *languages) = 0;
/* void getSubtitleLanguages ([optional] out unsigned long count, [array, size_is (count), retval] out string languages); */
NS_IMETHOD GetSubtitleLanguages(uint32_t *count, char * **languages) = 0;
/* void setSubtitleLanguages (in unsigned long count, [array, size_is (count)] in string languages); */
NS_IMETHOD SetSubtitleLanguages(uint32_t count, const char * *languages) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsITVProgramData, NS_ITVPROGRAMDATA_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITVPROGRAMDATA \
NS_IMETHOD GetEventId(nsAString & aEventId) override; \
NS_IMETHOD SetEventId(const nsAString & aEventId) override; \
NS_IMETHOD GetTitle(nsAString & aTitle) override; \
NS_IMETHOD SetTitle(const nsAString & aTitle) override; \
using nsITVProgramData::GetStartTime; \
NS_IMETHOD GetStartTime(uint64_t *aStartTime) override; \
NS_IMETHOD SetStartTime(uint64_t aStartTime) override; \
using nsITVProgramData::GetDuration; \
NS_IMETHOD GetDuration(uint64_t *aDuration) override; \
NS_IMETHOD SetDuration(uint64_t aDuration) override; \
NS_IMETHOD GetDescription(nsAString & aDescription) override; \
NS_IMETHOD SetDescription(const nsAString & aDescription) override; \
NS_IMETHOD GetRating(nsAString & aRating) override; \
NS_IMETHOD SetRating(const nsAString & aRating) override; \
NS_IMETHOD GetAudioLanguages(uint32_t *count, char * **languages) override; \
NS_IMETHOD SetAudioLanguages(uint32_t count, const char * *languages) override; \
NS_IMETHOD GetSubtitleLanguages(uint32_t *count, char * **languages) override; \
NS_IMETHOD SetSubtitleLanguages(uint32_t count, const char * *languages) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITVPROGRAMDATA(_to) \
NS_IMETHOD GetEventId(nsAString & aEventId) override { return _to GetEventId(aEventId); } \
NS_IMETHOD SetEventId(const nsAString & aEventId) override { return _to SetEventId(aEventId); } \
NS_IMETHOD GetTitle(nsAString & aTitle) override { return _to GetTitle(aTitle); } \
NS_IMETHOD SetTitle(const nsAString & aTitle) override { return _to SetTitle(aTitle); } \
using nsITVProgramData::GetStartTime; \
NS_IMETHOD GetStartTime(uint64_t *aStartTime) override { return _to GetStartTime(aStartTime); } \
NS_IMETHOD SetStartTime(uint64_t aStartTime) override { return _to SetStartTime(aStartTime); } \
using nsITVProgramData::GetDuration; \
NS_IMETHOD GetDuration(uint64_t *aDuration) override { return _to GetDuration(aDuration); } \
NS_IMETHOD SetDuration(uint64_t aDuration) override { return _to SetDuration(aDuration); } \
NS_IMETHOD GetDescription(nsAString & aDescription) override { return _to GetDescription(aDescription); } \
NS_IMETHOD SetDescription(const nsAString & aDescription) override { return _to SetDescription(aDescription); } \
NS_IMETHOD GetRating(nsAString & aRating) override { return _to GetRating(aRating); } \
NS_IMETHOD SetRating(const nsAString & aRating) override { return _to SetRating(aRating); } \
NS_IMETHOD GetAudioLanguages(uint32_t *count, char * **languages) override { return _to GetAudioLanguages(count, languages); } \
NS_IMETHOD SetAudioLanguages(uint32_t count, const char * *languages) override { return _to SetAudioLanguages(count, languages); } \
NS_IMETHOD GetSubtitleLanguages(uint32_t *count, char * **languages) override { return _to GetSubtitleLanguages(count, languages); } \
NS_IMETHOD SetSubtitleLanguages(uint32_t count, const char * *languages) override { return _to SetSubtitleLanguages(count, languages); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITVPROGRAMDATA(_to) \
NS_IMETHOD GetEventId(nsAString & aEventId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEventId(aEventId); } \
NS_IMETHOD SetEventId(const nsAString & aEventId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEventId(aEventId); } \
NS_IMETHOD GetTitle(nsAString & aTitle) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTitle(aTitle); } \
NS_IMETHOD SetTitle(const nsAString & aTitle) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTitle(aTitle); } \
NS_IMETHOD GetStartTime(uint64_t *aStartTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStartTime(aStartTime); } \
NS_IMETHOD SetStartTime(uint64_t aStartTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStartTime(aStartTime); } \
NS_IMETHOD GetDuration(uint64_t *aDuration) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDuration(aDuration); } \
NS_IMETHOD SetDuration(uint64_t aDuration) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDuration(aDuration); } \
NS_IMETHOD GetDescription(nsAString & aDescription) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDescription(aDescription); } \
NS_IMETHOD SetDescription(const nsAString & aDescription) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDescription(aDescription); } \
NS_IMETHOD GetRating(nsAString & aRating) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRating(aRating); } \
NS_IMETHOD SetRating(const nsAString & aRating) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRating(aRating); } \
NS_IMETHOD GetAudioLanguages(uint32_t *count, char * **languages) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAudioLanguages(count, languages); } \
NS_IMETHOD SetAudioLanguages(uint32_t count, const char * *languages) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAudioLanguages(count, languages); } \
NS_IMETHOD GetSubtitleLanguages(uint32_t *count, char * **languages) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSubtitleLanguages(count, languages); } \
NS_IMETHOD SetSubtitleLanguages(uint32_t count, const char * *languages) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSubtitleLanguages(count, languages); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsTVProgramData : public nsITVProgramData
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSITVPROGRAMDATA
nsTVProgramData();
private:
~nsTVProgramData();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsTVProgramData, nsITVProgramData)
nsTVProgramData::nsTVProgramData()
{
/* member initializers and constructor code */
}
nsTVProgramData::~nsTVProgramData()
{
/* destructor code */
}
/* attribute DOMString eventId; */
NS_IMETHODIMP nsTVProgramData::GetEventId(nsAString & aEventId)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsTVProgramData::SetEventId(const nsAString & aEventId)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute DOMString title; */
NS_IMETHODIMP nsTVProgramData::GetTitle(nsAString & aTitle)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsTVProgramData::SetTitle(const nsAString & aTitle)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [infallible] attribute unsigned long long startTime; */
NS_IMETHODIMP nsTVProgramData::GetStartTime(uint64_t *aStartTime)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsTVProgramData::SetStartTime(uint64_t aStartTime)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [infallible] attribute unsigned long long duration; */
NS_IMETHODIMP nsTVProgramData::GetDuration(uint64_t *aDuration)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsTVProgramData::SetDuration(uint64_t aDuration)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute DOMString description; */
NS_IMETHODIMP nsTVProgramData::GetDescription(nsAString & aDescription)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsTVProgramData::SetDescription(const nsAString & aDescription)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute DOMString rating; */
NS_IMETHODIMP nsTVProgramData::GetRating(nsAString & aRating)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsTVProgramData::SetRating(const nsAString & aRating)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getAudioLanguages ([optional] out unsigned long count, [array, size_is (count), retval] out string languages); */
NS_IMETHODIMP nsTVProgramData::GetAudioLanguages(uint32_t *count, char * **languages)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAudioLanguages (in unsigned long count, [array, size_is (count)] in string languages); */
NS_IMETHODIMP nsTVProgramData::SetAudioLanguages(uint32_t count, const char * *languages)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getSubtitleLanguages ([optional] out unsigned long count, [array, size_is (count), retval] out string languages); */
NS_IMETHODIMP nsTVProgramData::GetSubtitleLanguages(uint32_t *count, char * **languages)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setSubtitleLanguages (in unsigned long count, [array, size_is (count)] in string languages); */
NS_IMETHODIMP nsTVProgramData::SetSubtitleLanguages(uint32_t count, const char * *languages)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsITVSourceListener */
#define NS_ITVSOURCELISTENER_IID_STR "c3fd7a8c-21e4-11e4-97e8-74d02b97e723"
#define NS_ITVSOURCELISTENER_IID \
{0xc3fd7a8c, 0x21e4, 0x11e4, \
{ 0x97, 0xe8, 0x74, 0xd0, 0x2b, 0x97, 0xe7, 0x23 }}
class NS_NO_VTABLE nsITVSourceListener : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITVSOURCELISTENER_IID)
/* void notifyChannelScanned (in DOMString tunerId, in DOMString sourceType, in nsITVChannelData channelData); */
NS_IMETHOD NotifyChannelScanned(const nsAString & tunerId, const nsAString & sourceType, nsITVChannelData *channelData) = 0;
/* void notifyChannelScanComplete (in DOMString tunerId, in DOMString sourceType); */
NS_IMETHOD NotifyChannelScanComplete(const nsAString & tunerId, const nsAString & sourceType) = 0;
/* void notifyChannelScanStopped (in DOMString tunerId, in DOMString sourceType); */
NS_IMETHOD NotifyChannelScanStopped(const nsAString & tunerId, const nsAString & sourceType) = 0;
/* void notifyEITBroadcasted (in DOMString tunerId, in DOMString sourceType, in nsITVChannelData channelData, [array, size_is (count)] in nsITVProgramData programDataList, in unsigned long count); */
NS_IMETHOD NotifyEITBroadcasted(const nsAString & tunerId, const nsAString & sourceType, nsITVChannelData *channelData, nsITVProgramData **programDataList, uint32_t count) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsITVSourceListener, NS_ITVSOURCELISTENER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITVSOURCELISTENER \
NS_IMETHOD NotifyChannelScanned(const nsAString & tunerId, const nsAString & sourceType, nsITVChannelData *channelData) override; \
NS_IMETHOD NotifyChannelScanComplete(const nsAString & tunerId, const nsAString & sourceType) override; \
NS_IMETHOD NotifyChannelScanStopped(const nsAString & tunerId, const nsAString & sourceType) override; \
NS_IMETHOD NotifyEITBroadcasted(const nsAString & tunerId, const nsAString & sourceType, nsITVChannelData *channelData, nsITVProgramData **programDataList, uint32_t count) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITVSOURCELISTENER(_to) \
NS_IMETHOD NotifyChannelScanned(const nsAString & tunerId, const nsAString & sourceType, nsITVChannelData *channelData) override { return _to NotifyChannelScanned(tunerId, sourceType, channelData); } \
NS_IMETHOD NotifyChannelScanComplete(const nsAString & tunerId, const nsAString & sourceType) override { return _to NotifyChannelScanComplete(tunerId, sourceType); } \
NS_IMETHOD NotifyChannelScanStopped(const nsAString & tunerId, const nsAString & sourceType) override { return _to NotifyChannelScanStopped(tunerId, sourceType); } \
NS_IMETHOD NotifyEITBroadcasted(const nsAString & tunerId, const nsAString & sourceType, nsITVChannelData *channelData, nsITVProgramData **programDataList, uint32_t count) override { return _to NotifyEITBroadcasted(tunerId, sourceType, channelData, programDataList, count); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITVSOURCELISTENER(_to) \
NS_IMETHOD NotifyChannelScanned(const nsAString & tunerId, const nsAString & sourceType, nsITVChannelData *channelData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyChannelScanned(tunerId, sourceType, channelData); } \
NS_IMETHOD NotifyChannelScanComplete(const nsAString & tunerId, const nsAString & sourceType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyChannelScanComplete(tunerId, sourceType); } \
NS_IMETHOD NotifyChannelScanStopped(const nsAString & tunerId, const nsAString & sourceType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyChannelScanStopped(tunerId, sourceType); } \
NS_IMETHOD NotifyEITBroadcasted(const nsAString & tunerId, const nsAString & sourceType, nsITVChannelData *channelData, nsITVProgramData **programDataList, uint32_t count) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyEITBroadcasted(tunerId, sourceType, channelData, programDataList, count); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsTVSourceListener : public nsITVSourceListener
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSITVSOURCELISTENER
nsTVSourceListener();
private:
~nsTVSourceListener();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsTVSourceListener, nsITVSourceListener)
nsTVSourceListener::nsTVSourceListener()
{
/* member initializers and constructor code */
}
nsTVSourceListener::~nsTVSourceListener()
{
/* destructor code */
}
/* void notifyChannelScanned (in DOMString tunerId, in DOMString sourceType, in nsITVChannelData channelData); */
NS_IMETHODIMP nsTVSourceListener::NotifyChannelScanned(const nsAString & tunerId, const nsAString & sourceType, nsITVChannelData *channelData)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyChannelScanComplete (in DOMString tunerId, in DOMString sourceType); */
NS_IMETHODIMP nsTVSourceListener::NotifyChannelScanComplete(const nsAString & tunerId, const nsAString & sourceType)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyChannelScanStopped (in DOMString tunerId, in DOMString sourceType); */
NS_IMETHODIMP nsTVSourceListener::NotifyChannelScanStopped(const nsAString & tunerId, const nsAString & sourceType)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyEITBroadcasted (in DOMString tunerId, in DOMString sourceType, in nsITVChannelData channelData, [array, size_is (count)] in nsITVProgramData programDataList, in unsigned long count); */
NS_IMETHODIMP nsTVSourceListener::NotifyEITBroadcasted(const nsAString & tunerId, const nsAString & sourceType, nsITVChannelData *channelData, nsITVProgramData **programDataList, uint32_t count)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsITVServiceCallback */
#define NS_ITVSERVICECALLBACK_IID_STR "a19e6e7e-2293-11e4-b335-74d02b97e723"
#define NS_ITVSERVICECALLBACK_IID \
{0xa19e6e7e, 0x2293, 0x11e4, \
{ 0xb3, 0x35, 0x74, 0xd0, 0x2b, 0x97, 0xe7, 0x23 }}
class NS_NO_VTABLE nsITVServiceCallback : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITVSERVICECALLBACK_IID)
enum {
TV_ERROR_OK = 0U,
TV_ERROR_FAILURE = 1U,
TV_ERROR_INVALID_ARG = 2U,
TV_ERROR_NO_SIGNAL = 3U,
TV_ERROR_NOT_SUPPORTED = 4U
};
/* void notifyError (in unsigned short errorCode); */
NS_IMETHOD NotifyError(uint16_t errorCode) = 0;
/* void notifySuccess ([optional] in nsIArray dataList); */
NS_IMETHOD NotifySuccess(nsIArray *dataList) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsITVServiceCallback, NS_ITVSERVICECALLBACK_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITVSERVICECALLBACK \
NS_IMETHOD NotifyError(uint16_t errorCode) override; \
NS_IMETHOD NotifySuccess(nsIArray *dataList) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITVSERVICECALLBACK(_to) \
NS_IMETHOD NotifyError(uint16_t errorCode) override { return _to NotifyError(errorCode); } \
NS_IMETHOD NotifySuccess(nsIArray *dataList) override { return _to NotifySuccess(dataList); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITVSERVICECALLBACK(_to) \
NS_IMETHOD NotifyError(uint16_t errorCode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyError(errorCode); } \
NS_IMETHOD NotifySuccess(nsIArray *dataList) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifySuccess(dataList); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsTVServiceCallback : public nsITVServiceCallback
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSITVSERVICECALLBACK
nsTVServiceCallback();
private:
~nsTVServiceCallback();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsTVServiceCallback, nsITVServiceCallback)
nsTVServiceCallback::nsTVServiceCallback()
{
/* member initializers and constructor code */
}
nsTVServiceCallback::~nsTVServiceCallback()
{
/* destructor code */
}
/* void notifyError (in unsigned short errorCode); */
NS_IMETHODIMP nsTVServiceCallback::NotifyError(uint16_t errorCode)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifySuccess ([optional] in nsIArray dataList); */
NS_IMETHODIMP nsTVServiceCallback::NotifySuccess(nsIArray *dataList)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#define TV_SERVICE_CONTRACTID \
"@mozilla.org/tv/tvservice;1"
/* starting interface: nsITVService */
#define NS_ITVSERVICE_IID_STR "1b17e3cc-1c84-11e4-a4d4-74d02b97e723"
#define NS_ITVSERVICE_IID \
{0x1b17e3cc, 0x1c84, 0x11e4, \
{ 0xa4, 0xd4, 0x74, 0xd0, 0x2b, 0x97, 0xe7, 0x23 }}
class NS_NO_VTABLE nsITVService : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITVSERVICE_IID)
/* attribute nsITVSourceListener sourceListener; */
NS_IMETHOD GetSourceListener(nsITVSourceListener * *aSourceListener) = 0;
NS_IMETHOD SetSourceListener(nsITVSourceListener *aSourceListener) = 0;
/* void getTuners (in nsITVServiceCallback callback); */
NS_IMETHOD GetTuners(nsITVServiceCallback *callback) = 0;
/* void setSource (in DOMString tunerId, in DOMString sourceType, in nsITVServiceCallback callback); */
NS_IMETHOD SetSource(const nsAString & tunerId, const nsAString & sourceType, nsITVServiceCallback *callback) = 0;
/* void startScanningChannels (in DOMString tunerId, in DOMString sourceType, in nsITVServiceCallback callback); */
NS_IMETHOD StartScanningChannels(const nsAString & tunerId, const nsAString & sourceType, nsITVServiceCallback *callback) = 0;
/* void stopScanningChannels (in DOMString tunerId, in DOMString sourceType, in nsITVServiceCallback callback); */
NS_IMETHOD StopScanningChannels(const nsAString & tunerId, const nsAString & sourceType, nsITVServiceCallback *callback) = 0;
/* void clearScannedChannelsCache (); */
NS_IMETHOD ClearScannedChannelsCache(void) = 0;
/* void setChannel (in DOMString tunerId, in DOMString sourceType, in DOMString channelNumber, in nsITVServiceCallback callback); */
NS_IMETHOD SetChannel(const nsAString & tunerId, const nsAString & sourceType, const nsAString & channelNumber, nsITVServiceCallback *callback) = 0;
/* void getChannels (in DOMString tunerId, in DOMString sourceType, in nsITVServiceCallback callback); */
NS_IMETHOD GetChannels(const nsAString & tunerId, const nsAString & sourceType, nsITVServiceCallback *callback) = 0;
/* void getPrograms (in DOMString tunerId, in DOMString sourceType, in DOMString channelNumber, in unsigned long long startTime, in unsigned long long endTime, in nsITVServiceCallback callback); */
NS_IMETHOD GetPrograms(const nsAString & tunerId, const nsAString & sourceType, const nsAString & channelNumber, uint64_t startTime, uint64_t endTime, nsITVServiceCallback *callback) = 0;
/* void getOverlayId (in DOMString tunerId, in nsITVServiceCallback callback); */
NS_IMETHOD GetOverlayId(const nsAString & tunerId, nsITVServiceCallback *callback) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsITVService, NS_ITVSERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITVSERVICE \
NS_IMETHOD GetSourceListener(nsITVSourceListener * *aSourceListener) override; \
NS_IMETHOD SetSourceListener(nsITVSourceListener *aSourceListener) override; \
NS_IMETHOD GetTuners(nsITVServiceCallback *callback) override; \
NS_IMETHOD SetSource(const nsAString & tunerId, const nsAString & sourceType, nsITVServiceCallback *callback) override; \
NS_IMETHOD StartScanningChannels(const nsAString & tunerId, const nsAString & sourceType, nsITVServiceCallback *callback) override; \
NS_IMETHOD StopScanningChannels(const nsAString & tunerId, const nsAString & sourceType, nsITVServiceCallback *callback) override; \
NS_IMETHOD ClearScannedChannelsCache(void) override; \
NS_IMETHOD SetChannel(const nsAString & tunerId, const nsAString & sourceType, const nsAString & channelNumber, nsITVServiceCallback *callback) override; \
NS_IMETHOD GetChannels(const nsAString & tunerId, const nsAString & sourceType, nsITVServiceCallback *callback) override; \
NS_IMETHOD GetPrograms(const nsAString & tunerId, const nsAString & sourceType, const nsAString & channelNumber, uint64_t startTime, uint64_t endTime, nsITVServiceCallback *callback) override; \
NS_IMETHOD GetOverlayId(const nsAString & tunerId, nsITVServiceCallback *callback) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITVSERVICE(_to) \
NS_IMETHOD GetSourceListener(nsITVSourceListener * *aSourceListener) override { return _to GetSourceListener(aSourceListener); } \
NS_IMETHOD SetSourceListener(nsITVSourceListener *aSourceListener) override { return _to SetSourceListener(aSourceListener); } \
NS_IMETHOD GetTuners(nsITVServiceCallback *callback) override { return _to GetTuners(callback); } \
NS_IMETHOD SetSource(const nsAString & tunerId, const nsAString & sourceType, nsITVServiceCallback *callback) override { return _to SetSource(tunerId, sourceType, callback); } \
NS_IMETHOD StartScanningChannels(const nsAString & tunerId, const nsAString & sourceType, nsITVServiceCallback *callback) override { return _to StartScanningChannels(tunerId, sourceType, callback); } \
NS_IMETHOD StopScanningChannels(const nsAString & tunerId, const nsAString & sourceType, nsITVServiceCallback *callback) override { return _to StopScanningChannels(tunerId, sourceType, callback); } \
NS_IMETHOD ClearScannedChannelsCache(void) override { return _to ClearScannedChannelsCache(); } \
NS_IMETHOD SetChannel(const nsAString & tunerId, const nsAString & sourceType, const nsAString & channelNumber, nsITVServiceCallback *callback) override { return _to SetChannel(tunerId, sourceType, channelNumber, callback); } \
NS_IMETHOD GetChannels(const nsAString & tunerId, const nsAString & sourceType, nsITVServiceCallback *callback) override { return _to GetChannels(tunerId, sourceType, callback); } \
NS_IMETHOD GetPrograms(const nsAString & tunerId, const nsAString & sourceType, const nsAString & channelNumber, uint64_t startTime, uint64_t endTime, nsITVServiceCallback *callback) override { return _to GetPrograms(tunerId, sourceType, channelNumber, startTime, endTime, callback); } \
NS_IMETHOD GetOverlayId(const nsAString & tunerId, nsITVServiceCallback *callback) override { return _to GetOverlayId(tunerId, callback); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITVSERVICE(_to) \
NS_IMETHOD GetSourceListener(nsITVSourceListener * *aSourceListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSourceListener(aSourceListener); } \
NS_IMETHOD SetSourceListener(nsITVSourceListener *aSourceListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSourceListener(aSourceListener); } \
NS_IMETHOD GetTuners(nsITVServiceCallback *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTuners(callback); } \
NS_IMETHOD SetSource(const nsAString & tunerId, const nsAString & sourceType, nsITVServiceCallback *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSource(tunerId, sourceType, callback); } \
NS_IMETHOD StartScanningChannels(const nsAString & tunerId, const nsAString & sourceType, nsITVServiceCallback *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StartScanningChannels(tunerId, sourceType, callback); } \
NS_IMETHOD StopScanningChannels(const nsAString & tunerId, const nsAString & sourceType, nsITVServiceCallback *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StopScanningChannels(tunerId, sourceType, callback); } \
NS_IMETHOD ClearScannedChannelsCache(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearScannedChannelsCache(); } \
NS_IMETHOD SetChannel(const nsAString & tunerId, const nsAString & sourceType, const nsAString & channelNumber, nsITVServiceCallback *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetChannel(tunerId, sourceType, channelNumber, callback); } \
NS_IMETHOD GetChannels(const nsAString & tunerId, const nsAString & sourceType, nsITVServiceCallback *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChannels(tunerId, sourceType, callback); } \
NS_IMETHOD GetPrograms(const nsAString & tunerId, const nsAString & sourceType, const nsAString & channelNumber, uint64_t startTime, uint64_t endTime, nsITVServiceCallback *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrograms(tunerId, sourceType, channelNumber, startTime, endTime, callback); } \
NS_IMETHOD GetOverlayId(const nsAString & tunerId, nsITVServiceCallback *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOverlayId(tunerId, callback); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsTVService : public nsITVService
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSITVSERVICE
nsTVService();
private:
~nsTVService();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsTVService, nsITVService)
nsTVService::nsTVService()
{
/* member initializers and constructor code */
}
nsTVService::~nsTVService()
{
/* destructor code */
}
/* attribute nsITVSourceListener sourceListener; */
NS_IMETHODIMP nsTVService::GetSourceListener(nsITVSourceListener * *aSourceListener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsTVService::SetSourceListener(nsITVSourceListener *aSourceListener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getTuners (in nsITVServiceCallback callback); */
NS_IMETHODIMP nsTVService::GetTuners(nsITVServiceCallback *callback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setSource (in DOMString tunerId, in DOMString sourceType, in nsITVServiceCallback callback); */
NS_IMETHODIMP nsTVService::SetSource(const nsAString & tunerId, const nsAString & sourceType, nsITVServiceCallback *callback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void startScanningChannels (in DOMString tunerId, in DOMString sourceType, in nsITVServiceCallback callback); */
NS_IMETHODIMP nsTVService::StartScanningChannels(const nsAString & tunerId, const nsAString & sourceType, nsITVServiceCallback *callback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void stopScanningChannels (in DOMString tunerId, in DOMString sourceType, in nsITVServiceCallback callback); */
NS_IMETHODIMP nsTVService::StopScanningChannels(const nsAString & tunerId, const nsAString & sourceType, nsITVServiceCallback *callback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void clearScannedChannelsCache (); */
NS_IMETHODIMP nsTVService::ClearScannedChannelsCache()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setChannel (in DOMString tunerId, in DOMString sourceType, in DOMString channelNumber, in nsITVServiceCallback callback); */
NS_IMETHODIMP nsTVService::SetChannel(const nsAString & tunerId, const nsAString & sourceType, const nsAString & channelNumber, nsITVServiceCallback *callback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getChannels (in DOMString tunerId, in DOMString sourceType, in nsITVServiceCallback callback); */
NS_IMETHODIMP nsTVService::GetChannels(const nsAString & tunerId, const nsAString & sourceType, nsITVServiceCallback *callback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getPrograms (in DOMString tunerId, in DOMString sourceType, in DOMString channelNumber, in unsigned long long startTime, in unsigned long long endTime, in nsITVServiceCallback callback); */
NS_IMETHODIMP nsTVService::GetPrograms(const nsAString & tunerId, const nsAString & sourceType, const nsAString & channelNumber, uint64_t startTime, uint64_t endTime, nsITVServiceCallback *callback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getOverlayId (in DOMString tunerId, in nsITVServiceCallback callback); */
NS_IMETHODIMP nsTVService::GetOverlayId(const nsAString & tunerId, nsITVServiceCallback *callback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsITVService_h__ */
|