/usr/include/thunderbird/nsIMobileConnectionService.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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIMobileConnectionService.idl
*/
#ifndef __gen_nsIMobileConnectionService_h__
#define __gen_nsIMobileConnectionService_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
class nsICellInfoListCallback; /* forward declaration */
class nsIMobileCallForwardingOptions; /* forward declaration */
class nsIMobileConnection; /* forward declaration */
class nsIMobileConnectionInfo; /* forward declaration */
class nsIMobileNetworkInfo; /* forward declaration */
class nsINeighboringCellIdsCallback; /* forward declaration */
class nsIVariant; /* forward declaration */
/* starting interface: nsIMobileConnectionListener */
#define NS_IMOBILECONNECTIONLISTENER_IID_STR "d6827b51-61a7-4b7c-8454-42d0cffc1829"
#define NS_IMOBILECONNECTIONLISTENER_IID \
{0xd6827b51, 0x61a7, 0x4b7c, \
{ 0x84, 0x54, 0x42, 0xd0, 0xcf, 0xfc, 0x18, 0x29 }}
class NS_NO_VTABLE nsIMobileConnectionListener : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMOBILECONNECTIONLISTENER_IID)
/* void notifyVoiceChanged (); */
NS_IMETHOD NotifyVoiceChanged(void) = 0;
/* void notifyDataChanged (); */
NS_IMETHOD NotifyDataChanged(void) = 0;
/* void notifyDataError (in DOMString message); */
NS_IMETHOD NotifyDataError(const nsAString & message) = 0;
/* void notifyCFStateChanged (in unsigned short action, in unsigned short reason, in DOMString number, in unsigned short timeSeconds, in unsigned short serviceClass); */
NS_IMETHOD NotifyCFStateChanged(uint16_t action, uint16_t reason, const nsAString & number, uint16_t timeSeconds, uint16_t serviceClass) = 0;
/* void notifyEmergencyCbModeChanged (in boolean active, in unsigned long timeoutMs); */
NS_IMETHOD NotifyEmergencyCbModeChanged(bool active, uint32_t timeoutMs) = 0;
/* void notifyOtaStatusChanged (in DOMString status); */
NS_IMETHOD NotifyOtaStatusChanged(const nsAString & status) = 0;
/* void notifyRadioStateChanged (); */
NS_IMETHOD NotifyRadioStateChanged(void) = 0;
/* void notifyClirModeChanged (in unsigned long mode); */
NS_IMETHOD NotifyClirModeChanged(uint32_t mode) = 0;
/* void notifyLastKnownNetworkChanged (); */
NS_IMETHOD NotifyLastKnownNetworkChanged(void) = 0;
/* void notifyLastKnownHomeNetworkChanged (); */
NS_IMETHOD NotifyLastKnownHomeNetworkChanged(void) = 0;
/* void notifyNetworkSelectionModeChanged (); */
NS_IMETHOD NotifyNetworkSelectionModeChanged(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIMobileConnectionListener, NS_IMOBILECONNECTIONLISTENER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMOBILECONNECTIONLISTENER \
NS_IMETHOD NotifyVoiceChanged(void) override; \
NS_IMETHOD NotifyDataChanged(void) override; \
NS_IMETHOD NotifyDataError(const nsAString & message) override; \
NS_IMETHOD NotifyCFStateChanged(uint16_t action, uint16_t reason, const nsAString & number, uint16_t timeSeconds, uint16_t serviceClass) override; \
NS_IMETHOD NotifyEmergencyCbModeChanged(bool active, uint32_t timeoutMs) override; \
NS_IMETHOD NotifyOtaStatusChanged(const nsAString & status) override; \
NS_IMETHOD NotifyRadioStateChanged(void) override; \
NS_IMETHOD NotifyClirModeChanged(uint32_t mode) override; \
NS_IMETHOD NotifyLastKnownNetworkChanged(void) override; \
NS_IMETHOD NotifyLastKnownHomeNetworkChanged(void) override; \
NS_IMETHOD NotifyNetworkSelectionModeChanged(void) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMOBILECONNECTIONLISTENER(_to) \
NS_IMETHOD NotifyVoiceChanged(void) override { return _to NotifyVoiceChanged(); } \
NS_IMETHOD NotifyDataChanged(void) override { return _to NotifyDataChanged(); } \
NS_IMETHOD NotifyDataError(const nsAString & message) override { return _to NotifyDataError(message); } \
NS_IMETHOD NotifyCFStateChanged(uint16_t action, uint16_t reason, const nsAString & number, uint16_t timeSeconds, uint16_t serviceClass) override { return _to NotifyCFStateChanged(action, reason, number, timeSeconds, serviceClass); } \
NS_IMETHOD NotifyEmergencyCbModeChanged(bool active, uint32_t timeoutMs) override { return _to NotifyEmergencyCbModeChanged(active, timeoutMs); } \
NS_IMETHOD NotifyOtaStatusChanged(const nsAString & status) override { return _to NotifyOtaStatusChanged(status); } \
NS_IMETHOD NotifyRadioStateChanged(void) override { return _to NotifyRadioStateChanged(); } \
NS_IMETHOD NotifyClirModeChanged(uint32_t mode) override { return _to NotifyClirModeChanged(mode); } \
NS_IMETHOD NotifyLastKnownNetworkChanged(void) override { return _to NotifyLastKnownNetworkChanged(); } \
NS_IMETHOD NotifyLastKnownHomeNetworkChanged(void) override { return _to NotifyLastKnownHomeNetworkChanged(); } \
NS_IMETHOD NotifyNetworkSelectionModeChanged(void) override { return _to NotifyNetworkSelectionModeChanged(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMOBILECONNECTIONLISTENER(_to) \
NS_IMETHOD NotifyVoiceChanged(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyVoiceChanged(); } \
NS_IMETHOD NotifyDataChanged(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyDataChanged(); } \
NS_IMETHOD NotifyDataError(const nsAString & message) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyDataError(message); } \
NS_IMETHOD NotifyCFStateChanged(uint16_t action, uint16_t reason, const nsAString & number, uint16_t timeSeconds, uint16_t serviceClass) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyCFStateChanged(action, reason, number, timeSeconds, serviceClass); } \
NS_IMETHOD NotifyEmergencyCbModeChanged(bool active, uint32_t timeoutMs) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyEmergencyCbModeChanged(active, timeoutMs); } \
NS_IMETHOD NotifyOtaStatusChanged(const nsAString & status) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyOtaStatusChanged(status); } \
NS_IMETHOD NotifyRadioStateChanged(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyRadioStateChanged(); } \
NS_IMETHOD NotifyClirModeChanged(uint32_t mode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyClirModeChanged(mode); } \
NS_IMETHOD NotifyLastKnownNetworkChanged(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyLastKnownNetworkChanged(); } \
NS_IMETHOD NotifyLastKnownHomeNetworkChanged(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyLastKnownHomeNetworkChanged(); } \
NS_IMETHOD NotifyNetworkSelectionModeChanged(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyNetworkSelectionModeChanged(); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsMobileConnectionListener : public nsIMobileConnectionListener
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIMOBILECONNECTIONLISTENER
nsMobileConnectionListener();
private:
~nsMobileConnectionListener();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsMobileConnectionListener, nsIMobileConnectionListener)
nsMobileConnectionListener::nsMobileConnectionListener()
{
/* member initializers and constructor code */
}
nsMobileConnectionListener::~nsMobileConnectionListener()
{
/* destructor code */
}
/* void notifyVoiceChanged (); */
NS_IMETHODIMP nsMobileConnectionListener::NotifyVoiceChanged()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyDataChanged (); */
NS_IMETHODIMP nsMobileConnectionListener::NotifyDataChanged()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyDataError (in DOMString message); */
NS_IMETHODIMP nsMobileConnectionListener::NotifyDataError(const nsAString & message)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyCFStateChanged (in unsigned short action, in unsigned short reason, in DOMString number, in unsigned short timeSeconds, in unsigned short serviceClass); */
NS_IMETHODIMP nsMobileConnectionListener::NotifyCFStateChanged(uint16_t action, uint16_t reason, const nsAString & number, uint16_t timeSeconds, uint16_t serviceClass)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyEmergencyCbModeChanged (in boolean active, in unsigned long timeoutMs); */
NS_IMETHODIMP nsMobileConnectionListener::NotifyEmergencyCbModeChanged(bool active, uint32_t timeoutMs)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyOtaStatusChanged (in DOMString status); */
NS_IMETHODIMP nsMobileConnectionListener::NotifyOtaStatusChanged(const nsAString & status)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyRadioStateChanged (); */
NS_IMETHODIMP nsMobileConnectionListener::NotifyRadioStateChanged()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyClirModeChanged (in unsigned long mode); */
NS_IMETHODIMP nsMobileConnectionListener::NotifyClirModeChanged(uint32_t mode)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyLastKnownNetworkChanged (); */
NS_IMETHODIMP nsMobileConnectionListener::NotifyLastKnownNetworkChanged()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyLastKnownHomeNetworkChanged (); */
NS_IMETHODIMP nsMobileConnectionListener::NotifyLastKnownHomeNetworkChanged()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyNetworkSelectionModeChanged (); */
NS_IMETHODIMP nsMobileConnectionListener::NotifyNetworkSelectionModeChanged()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#define NO_ADDITIONAL_INFORMATION 0
/* starting interface: nsIMobileConnectionCallback */
#define NS_IMOBILECONNECTIONCALLBACK_IID_STR "14d66926-8434-11e4-8c3f-f724194bb5f1"
#define NS_IMOBILECONNECTIONCALLBACK_IID \
{0x14d66926, 0x8434, 0x11e4, \
{ 0x8c, 0x3f, 0xf7, 0x24, 0x19, 0x4b, 0xb5, 0xf1 }}
class NS_NO_VTABLE nsIMobileConnectionCallback : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMOBILECONNECTIONCALLBACK_IID)
/* void notifySuccess (); */
NS_IMETHOD NotifySuccess(void) = 0;
/* void notifySuccessWithBoolean (in boolean result); */
NS_IMETHOD NotifySuccessWithBoolean(bool result) = 0;
/* void notifyGetNetworksSuccess (in uint32_t count, [array, size_is (count)] in nsIMobileNetworkInfo networks); */
NS_IMETHOD NotifyGetNetworksSuccess(uint32_t count, nsIMobileNetworkInfo **networks) = 0;
/* void notifyGetCallForwardingSuccess (in uint32_t count, [array, size_is (count)] in nsIMobileCallForwardingOptions results); */
NS_IMETHOD NotifyGetCallForwardingSuccess(uint32_t count, nsIMobileCallForwardingOptions **results) = 0;
/* void notifyGetCallBarringSuccess (in unsigned short program, in boolean enabled, in unsigned short serviceClass); */
NS_IMETHOD NotifyGetCallBarringSuccess(uint16_t program, bool enabled, uint16_t serviceClass) = 0;
/* void notifyGetClirStatusSuccess (in unsigned short n, in unsigned short m); */
NS_IMETHOD NotifyGetClirStatusSuccess(uint16_t n, uint16_t m) = 0;
/* void notifyGetPreferredNetworkTypeSuccess (in long type); */
NS_IMETHOD NotifyGetPreferredNetworkTypeSuccess(int32_t type) = 0;
/* void notifyGetRoamingPreferenceSuccess (in long mode); */
NS_IMETHOD NotifyGetRoamingPreferenceSuccess(int32_t mode) = 0;
/* void notifyError (in DOMString name); */
NS_IMETHOD NotifyError(const nsAString & name) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIMobileConnectionCallback, NS_IMOBILECONNECTIONCALLBACK_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMOBILECONNECTIONCALLBACK \
NS_IMETHOD NotifySuccess(void) override; \
NS_IMETHOD NotifySuccessWithBoolean(bool result) override; \
NS_IMETHOD NotifyGetNetworksSuccess(uint32_t count, nsIMobileNetworkInfo **networks) override; \
NS_IMETHOD NotifyGetCallForwardingSuccess(uint32_t count, nsIMobileCallForwardingOptions **results) override; \
NS_IMETHOD NotifyGetCallBarringSuccess(uint16_t program, bool enabled, uint16_t serviceClass) override; \
NS_IMETHOD NotifyGetClirStatusSuccess(uint16_t n, uint16_t m) override; \
NS_IMETHOD NotifyGetPreferredNetworkTypeSuccess(int32_t type) override; \
NS_IMETHOD NotifyGetRoamingPreferenceSuccess(int32_t mode) override; \
NS_IMETHOD NotifyError(const nsAString & name) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMOBILECONNECTIONCALLBACK(_to) \
NS_IMETHOD NotifySuccess(void) override { return _to NotifySuccess(); } \
NS_IMETHOD NotifySuccessWithBoolean(bool result) override { return _to NotifySuccessWithBoolean(result); } \
NS_IMETHOD NotifyGetNetworksSuccess(uint32_t count, nsIMobileNetworkInfo **networks) override { return _to NotifyGetNetworksSuccess(count, networks); } \
NS_IMETHOD NotifyGetCallForwardingSuccess(uint32_t count, nsIMobileCallForwardingOptions **results) override { return _to NotifyGetCallForwardingSuccess(count, results); } \
NS_IMETHOD NotifyGetCallBarringSuccess(uint16_t program, bool enabled, uint16_t serviceClass) override { return _to NotifyGetCallBarringSuccess(program, enabled, serviceClass); } \
NS_IMETHOD NotifyGetClirStatusSuccess(uint16_t n, uint16_t m) override { return _to NotifyGetClirStatusSuccess(n, m); } \
NS_IMETHOD NotifyGetPreferredNetworkTypeSuccess(int32_t type) override { return _to NotifyGetPreferredNetworkTypeSuccess(type); } \
NS_IMETHOD NotifyGetRoamingPreferenceSuccess(int32_t mode) override { return _to NotifyGetRoamingPreferenceSuccess(mode); } \
NS_IMETHOD NotifyError(const nsAString & name) override { return _to NotifyError(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_NSIMOBILECONNECTIONCALLBACK(_to) \
NS_IMETHOD NotifySuccess(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifySuccess(); } \
NS_IMETHOD NotifySuccessWithBoolean(bool result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifySuccessWithBoolean(result); } \
NS_IMETHOD NotifyGetNetworksSuccess(uint32_t count, nsIMobileNetworkInfo **networks) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyGetNetworksSuccess(count, networks); } \
NS_IMETHOD NotifyGetCallForwardingSuccess(uint32_t count, nsIMobileCallForwardingOptions **results) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyGetCallForwardingSuccess(count, results); } \
NS_IMETHOD NotifyGetCallBarringSuccess(uint16_t program, bool enabled, uint16_t serviceClass) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyGetCallBarringSuccess(program, enabled, serviceClass); } \
NS_IMETHOD NotifyGetClirStatusSuccess(uint16_t n, uint16_t m) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyGetClirStatusSuccess(n, m); } \
NS_IMETHOD NotifyGetPreferredNetworkTypeSuccess(int32_t type) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyGetPreferredNetworkTypeSuccess(type); } \
NS_IMETHOD NotifyGetRoamingPreferenceSuccess(int32_t mode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyGetRoamingPreferenceSuccess(mode); } \
NS_IMETHOD NotifyError(const nsAString & name) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyError(name); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsMobileConnectionCallback : public nsIMobileConnectionCallback
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIMOBILECONNECTIONCALLBACK
nsMobileConnectionCallback();
private:
~nsMobileConnectionCallback();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsMobileConnectionCallback, nsIMobileConnectionCallback)
nsMobileConnectionCallback::nsMobileConnectionCallback()
{
/* member initializers and constructor code */
}
nsMobileConnectionCallback::~nsMobileConnectionCallback()
{
/* destructor code */
}
/* void notifySuccess (); */
NS_IMETHODIMP nsMobileConnectionCallback::NotifySuccess()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifySuccessWithBoolean (in boolean result); */
NS_IMETHODIMP nsMobileConnectionCallback::NotifySuccessWithBoolean(bool result)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyGetNetworksSuccess (in uint32_t count, [array, size_is (count)] in nsIMobileNetworkInfo networks); */
NS_IMETHODIMP nsMobileConnectionCallback::NotifyGetNetworksSuccess(uint32_t count, nsIMobileNetworkInfo **networks)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyGetCallForwardingSuccess (in uint32_t count, [array, size_is (count)] in nsIMobileCallForwardingOptions results); */
NS_IMETHODIMP nsMobileConnectionCallback::NotifyGetCallForwardingSuccess(uint32_t count, nsIMobileCallForwardingOptions **results)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyGetCallBarringSuccess (in unsigned short program, in boolean enabled, in unsigned short serviceClass); */
NS_IMETHODIMP nsMobileConnectionCallback::NotifyGetCallBarringSuccess(uint16_t program, bool enabled, uint16_t serviceClass)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyGetClirStatusSuccess (in unsigned short n, in unsigned short m); */
NS_IMETHODIMP nsMobileConnectionCallback::NotifyGetClirStatusSuccess(uint16_t n, uint16_t m)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyGetPreferredNetworkTypeSuccess (in long type); */
NS_IMETHODIMP nsMobileConnectionCallback::NotifyGetPreferredNetworkTypeSuccess(int32_t type)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyGetRoamingPreferenceSuccess (in long mode); */
NS_IMETHODIMP nsMobileConnectionCallback::NotifyGetRoamingPreferenceSuccess(int32_t mode)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyError (in DOMString name); */
NS_IMETHODIMP nsMobileConnectionCallback::NotifyError(const nsAString & name)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#define NS_MOBILE_CONNECTION_SERVICE_CID \
{ 0xc6f229d4, 0x16e2, 0x4600, \
{ 0x87, 0x2a, 0x3d, 0x3d, 0xc5, 0xb8, 0x55, 0x41 } }
#define NS_MOBILE_CONNECTION_SERVICE_CONTRACTID \
"@mozilla.org/mobileconnection/mobileconnectionservice;1"
/* starting interface: nsIMobileConnectionService */
#define NS_IMOBILECONNECTIONSERVICE_IID_STR "eaba3c4a-0dd5-4919-b1a2-7812e49dbbcb"
#define NS_IMOBILECONNECTIONSERVICE_IID \
{0xeaba3c4a, 0x0dd5, 0x4919, \
{ 0xb1, 0xa2, 0x78, 0x12, 0xe4, 0x9d, 0xbb, 0xcb }}
class NS_NO_VTABLE nsIMobileConnectionService : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMOBILECONNECTIONSERVICE_IID)
/* readonly attribute unsigned long numItems; */
NS_IMETHOD GetNumItems(uint32_t *aNumItems) = 0;
/* nsIMobileConnection getItemByServiceId (in unsigned long serviceId); */
NS_IMETHOD GetItemByServiceId(uint32_t serviceId, nsIMobileConnection * *_retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIMobileConnectionService, NS_IMOBILECONNECTIONSERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMOBILECONNECTIONSERVICE \
NS_IMETHOD GetNumItems(uint32_t *aNumItems) override; \
NS_IMETHOD GetItemByServiceId(uint32_t serviceId, nsIMobileConnection * *_retval) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMOBILECONNECTIONSERVICE(_to) \
NS_IMETHOD GetNumItems(uint32_t *aNumItems) override { return _to GetNumItems(aNumItems); } \
NS_IMETHOD GetItemByServiceId(uint32_t serviceId, nsIMobileConnection * *_retval) override { return _to GetItemByServiceId(serviceId, _retval); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMOBILECONNECTIONSERVICE(_to) \
NS_IMETHOD GetNumItems(uint32_t *aNumItems) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumItems(aNumItems); } \
NS_IMETHOD GetItemByServiceId(uint32_t serviceId, nsIMobileConnection * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetItemByServiceId(serviceId, _retval); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsMobileConnectionService : public nsIMobileConnectionService
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIMOBILECONNECTIONSERVICE
nsMobileConnectionService();
private:
~nsMobileConnectionService();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsMobileConnectionService, nsIMobileConnectionService)
nsMobileConnectionService::nsMobileConnectionService()
{
/* member initializers and constructor code */
}
nsMobileConnectionService::~nsMobileConnectionService()
{
/* destructor code */
}
/* readonly attribute unsigned long numItems; */
NS_IMETHODIMP nsMobileConnectionService::GetNumItems(uint32_t *aNumItems)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIMobileConnection getItemByServiceId (in unsigned long serviceId); */
NS_IMETHODIMP nsMobileConnectionService::GetItemByServiceId(uint32_t serviceId, nsIMobileConnection * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
template<typename T> struct already_AddRefed;
already_AddRefed<nsIMobileConnectionService>
NS_CreateMobileConnectionService();
/* starting interface: nsIMobileConnection */
#define NS_IMOBILECONNECTION_IID_STR "b9845f09-7cbb-46d0-b713-773d80844e0d"
#define NS_IMOBILECONNECTION_IID \
{0xb9845f09, 0x7cbb, 0x46d0, \
{ 0xb7, 0x13, 0x77, 0x3d, 0x80, 0x84, 0x4e, 0x0d }}
class NS_NO_VTABLE nsIMobileConnection : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMOBILECONNECTION_IID)
enum {
ICC_SERVICE_CLASS_NONE = 0,
ICC_SERVICE_CLASS_VOICE = 1,
ICC_SERVICE_CLASS_DATA = 2,
ICC_SERVICE_CLASS_FAX = 4,
ICC_SERVICE_CLASS_SMS = 8,
ICC_SERVICE_CLASS_DATA_SYNC = 16,
ICC_SERVICE_CLASS_DATA_ASYNC = 32,
ICC_SERVICE_CLASS_PACKET = 64,
ICC_SERVICE_CLASS_PAD = 128,
ICC_SERVICE_CLASS_MAX = 128,
CALL_FORWARD_ACTION_UNKNOWN = -1,
CALL_FORWARD_ACTION_DISABLE = 0,
CALL_FORWARD_ACTION_ENABLE = 1,
CALL_FORWARD_ACTION_QUERY_STATUS = 2,
CALL_FORWARD_ACTION_REGISTRATION = 3,
CALL_FORWARD_ACTION_ERASURE = 4,
CALL_FORWARD_REASON_UNKNOWN = -1,
CALL_FORWARD_REASON_UNCONDITIONAL = 0,
CALL_FORWARD_REASON_MOBILE_BUSY = 1,
CALL_FORWARD_REASON_NO_REPLY = 2,
CALL_FORWARD_REASON_NOT_REACHABLE = 3,
CALL_FORWARD_REASON_ALL_CALL_FORWARDING = 4,
CALL_FORWARD_REASON_ALL_CONDITIONAL_CALL_FORWARDING = 5,
CALL_BARRING_PROGRAM_UNKNOWN = -1,
CALL_BARRING_PROGRAM_ALL_OUTGOING = 0,
CALL_BARRING_PROGRAM_OUTGOING_INTERNATIONAL = 1,
CALL_BARRING_PROGRAM_OUTGOING_INTERNATIONAL_EXCEPT_HOME = 2,
CALL_BARRING_PROGRAM_ALL_INCOMING = 3,
CALL_BARRING_PROGRAM_INCOMING_ROAMING = 4,
CLIR_DEFAULT = 0,
CLIR_INVOCATION = 1,
CLIR_SUPPRESSION = 2,
NETWORK_SELECTION_MODE_UNKNOWN = -1,
NETWORK_SELECTION_MODE_AUTOMATIC = 0,
NETWORK_SELECTION_MODE_MANUAL = 1,
MOBILE_RADIO_STATE_UNKNOWN = -1,
MOBILE_RADIO_STATE_ENABLING = 0,
MOBILE_RADIO_STATE_ENABLED = 1,
MOBILE_RADIO_STATE_DISABLING = 2,
MOBILE_RADIO_STATE_DISABLED = 3,
PREFERRED_NETWORK_TYPE_WCDMA_GSM = 0,
PREFERRED_NETWORK_TYPE_GSM_ONLY = 1,
PREFERRED_NETWORK_TYPE_WCDMA_ONLY = 2,
PREFERRED_NETWORK_TYPE_WCDMA_GSM_AUTO = 3,
PREFERRED_NETWORK_TYPE_CDMA_EVDO = 4,
PREFERRED_NETWORK_TYPE_CDMA_ONLY = 5,
PREFERRED_NETWORK_TYPE_EVDO_ONLY = 6,
PREFERRED_NETWORK_TYPE_WCDMA_GSM_CDMA_EVDO = 7,
PREFERRED_NETWORK_TYPE_LTE_CDMA_EVDO = 8,
PREFERRED_NETWORK_TYPE_LTE_WCDMA_GSM = 9,
PREFERRED_NETWORK_TYPE_LTE_WCDMA_GSM_CDMA_EVDO = 10,
PREFERRED_NETWORK_TYPE_LTE_ONLY = 11,
CDMA_ROAMING_PREFERENCE_HOME = 0,
CDMA_ROAMING_PREFERENCE_AFFILIATED = 1,
CDMA_ROAMING_PREFERENCE_ANY = 2,
MOBILE_NETWORK_TYPE_GSM = 0,
MOBILE_NETWORK_TYPE_WCDMA = 1,
MOBILE_NETWORK_TYPE_CDMA = 2,
MOBILE_NETWORK_TYPE_EVDO = 3,
MOBILE_NETWORK_TYPE_LTE = 4
};
/* readonly attribute unsigned long serviceId; */
NS_IMETHOD GetServiceId(uint32_t *aServiceId) = 0;
/* void registerListener (in nsIMobileConnectionListener listener); */
NS_IMETHOD RegisterListener(nsIMobileConnectionListener *listener) = 0;
/* void unregisterListener (in nsIMobileConnectionListener listener); */
NS_IMETHOD UnregisterListener(nsIMobileConnectionListener *listener) = 0;
/* readonly attribute DOMString lastKnownNetwork; */
NS_IMETHOD GetLastKnownNetwork(nsAString & aLastKnownNetwork) = 0;
/* readonly attribute DOMString lastKnownHomeNetwork; */
NS_IMETHOD GetLastKnownHomeNetwork(nsAString & aLastKnownHomeNetwork) = 0;
/* readonly attribute nsIMobileConnectionInfo voice; */
NS_IMETHOD GetVoice(nsIMobileConnectionInfo * *aVoice) = 0;
/* readonly attribute nsIMobileConnectionInfo data; */
NS_IMETHOD GetData(nsIMobileConnectionInfo * *aData) = 0;
/* readonly attribute long networkSelectionMode; */
NS_IMETHOD GetNetworkSelectionMode(int32_t *aNetworkSelectionMode) = 0;
/* readonly attribute long radioState; */
NS_IMETHOD GetRadioState(int32_t *aRadioState) = 0;
/* void getSupportedNetworkTypes ([array, size_is (length)] out long types, [retval] out unsigned long length); */
NS_IMETHOD GetSupportedNetworkTypes(int32_t **types, uint32_t *length) = 0;
/* void getNetworks (in nsIMobileConnectionCallback requestCallback); */
NS_IMETHOD GetNetworks(nsIMobileConnectionCallback *requestCallback) = 0;
/* void selectNetwork (in nsIMobileNetworkInfo network, in nsIMobileConnectionCallback requestCallback); */
NS_IMETHOD SelectNetwork(nsIMobileNetworkInfo *network, nsIMobileConnectionCallback *requestCallback) = 0;
/* void selectNetworkAutomatically (in nsIMobileConnectionCallback requestCallback); */
NS_IMETHOD SelectNetworkAutomatically(nsIMobileConnectionCallback *requestCallback) = 0;
/* void setPreferredNetworkType (in long type, in nsIMobileConnectionCallback requestCallback); */
NS_IMETHOD SetPreferredNetworkType(int32_t type, nsIMobileConnectionCallback *requestCallback) = 0;
/* void getPreferredNetworkType (in nsIMobileConnectionCallback requestCallback); */
NS_IMETHOD GetPreferredNetworkType(nsIMobileConnectionCallback *requestCallback) = 0;
/* void setRoamingPreference (in long mode, in nsIMobileConnectionCallback requestCallback); */
NS_IMETHOD SetRoamingPreference(int32_t mode, nsIMobileConnectionCallback *requestCallback) = 0;
/* void getRoamingPreference (in nsIMobileConnectionCallback requestCallback); */
NS_IMETHOD GetRoamingPreference(nsIMobileConnectionCallback *requestCallback) = 0;
/* void setVoicePrivacyMode (in bool enabled, in nsIMobileConnectionCallback requestCallback); */
NS_IMETHOD SetVoicePrivacyMode(bool enabled, nsIMobileConnectionCallback *requestCallback) = 0;
/* void getVoicePrivacyMode (in nsIMobileConnectionCallback requestCallback); */
NS_IMETHOD GetVoicePrivacyMode(nsIMobileConnectionCallback *requestCallback) = 0;
/* void getCallForwarding (in unsigned short reason, in nsIMobileConnectionCallback requestCallback); */
NS_IMETHOD GetCallForwarding(uint16_t reason, nsIMobileConnectionCallback *requestCallback) = 0;
/* void setCallForwarding (in unsigned short action, in unsigned short reason, in DOMString number, in unsigned short timeSeconds, in unsigned short serviceClass, in nsIMobileConnectionCallback requestCallback); */
NS_IMETHOD SetCallForwarding(uint16_t action, uint16_t reason, const nsAString & number, uint16_t timeSeconds, uint16_t serviceClass, nsIMobileConnectionCallback *requestCallback) = 0;
/* void getCallBarring (in unsigned short program, in DOMString password, in unsigned short serviceClass, in nsIMobileConnectionCallback requestCallback); */
NS_IMETHOD GetCallBarring(uint16_t program, const nsAString & password, uint16_t serviceClass, nsIMobileConnectionCallback *requestCallback) = 0;
/* void setCallBarring (in unsigned short program, in bool enabled, in DOMString password, in unsigned short serviceClass, in nsIMobileConnectionCallback requestCallback); */
NS_IMETHOD SetCallBarring(uint16_t program, bool enabled, const nsAString & password, uint16_t serviceClass, nsIMobileConnectionCallback *requestCallback) = 0;
/* void changeCallBarringPassword (in DOMString pin, in DOMString newPin, in nsIMobileConnectionCallback requestCallback); */
NS_IMETHOD ChangeCallBarringPassword(const nsAString & pin, const nsAString & newPin, nsIMobileConnectionCallback *requestCallback) = 0;
/* void setCallWaiting (in bool enabled, in nsIMobileConnectionCallback requestCallback); */
NS_IMETHOD SetCallWaiting(bool enabled, nsIMobileConnectionCallback *requestCallback) = 0;
/* void getCallWaiting (in nsIMobileConnectionCallback requestCallback); */
NS_IMETHOD GetCallWaiting(nsIMobileConnectionCallback *requestCallback) = 0;
/* void setCallingLineIdRestriction (in unsigned short clirMode, in nsIMobileConnectionCallback requestCallback); */
NS_IMETHOD SetCallingLineIdRestriction(uint16_t clirMode, nsIMobileConnectionCallback *requestCallback) = 0;
/* void getCallingLineIdRestriction (in nsIMobileConnectionCallback requestCallback); */
NS_IMETHOD GetCallingLineIdRestriction(nsIMobileConnectionCallback *requestCallback) = 0;
/* void exitEmergencyCbMode (in nsIMobileConnectionCallback requestCallback); */
NS_IMETHOD ExitEmergencyCbMode(nsIMobileConnectionCallback *requestCallback) = 0;
/* void setRadioEnabled (in bool enabled, in nsIMobileConnectionCallback requestCallback); */
NS_IMETHOD SetRadioEnabled(bool enabled, nsIMobileConnectionCallback *requestCallback) = 0;
/* void getNeighboringCellIds (in nsINeighboringCellIdsCallback callback); */
NS_IMETHOD GetNeighboringCellIds(nsINeighboringCellIdsCallback *callback) = 0;
/* void getCellInfoList (in nsICellInfoListCallback callback); */
NS_IMETHOD GetCellInfoList(nsICellInfoListCallback *callback) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIMobileConnection, NS_IMOBILECONNECTION_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMOBILECONNECTION \
NS_IMETHOD GetServiceId(uint32_t *aServiceId) override; \
NS_IMETHOD RegisterListener(nsIMobileConnectionListener *listener) override; \
NS_IMETHOD UnregisterListener(nsIMobileConnectionListener *listener) override; \
NS_IMETHOD GetLastKnownNetwork(nsAString & aLastKnownNetwork) override; \
NS_IMETHOD GetLastKnownHomeNetwork(nsAString & aLastKnownHomeNetwork) override; \
NS_IMETHOD GetVoice(nsIMobileConnectionInfo * *aVoice) override; \
NS_IMETHOD GetData(nsIMobileConnectionInfo * *aData) override; \
NS_IMETHOD GetNetworkSelectionMode(int32_t *aNetworkSelectionMode) override; \
NS_IMETHOD GetRadioState(int32_t *aRadioState) override; \
NS_IMETHOD GetSupportedNetworkTypes(int32_t **types, uint32_t *length) override; \
NS_IMETHOD GetNetworks(nsIMobileConnectionCallback *requestCallback) override; \
NS_IMETHOD SelectNetwork(nsIMobileNetworkInfo *network, nsIMobileConnectionCallback *requestCallback) override; \
NS_IMETHOD SelectNetworkAutomatically(nsIMobileConnectionCallback *requestCallback) override; \
NS_IMETHOD SetPreferredNetworkType(int32_t type, nsIMobileConnectionCallback *requestCallback) override; \
NS_IMETHOD GetPreferredNetworkType(nsIMobileConnectionCallback *requestCallback) override; \
NS_IMETHOD SetRoamingPreference(int32_t mode, nsIMobileConnectionCallback *requestCallback) override; \
NS_IMETHOD GetRoamingPreference(nsIMobileConnectionCallback *requestCallback) override; \
NS_IMETHOD SetVoicePrivacyMode(bool enabled, nsIMobileConnectionCallback *requestCallback) override; \
NS_IMETHOD GetVoicePrivacyMode(nsIMobileConnectionCallback *requestCallback) override; \
NS_IMETHOD GetCallForwarding(uint16_t reason, nsIMobileConnectionCallback *requestCallback) override; \
NS_IMETHOD SetCallForwarding(uint16_t action, uint16_t reason, const nsAString & number, uint16_t timeSeconds, uint16_t serviceClass, nsIMobileConnectionCallback *requestCallback) override; \
NS_IMETHOD GetCallBarring(uint16_t program, const nsAString & password, uint16_t serviceClass, nsIMobileConnectionCallback *requestCallback) override; \
NS_IMETHOD SetCallBarring(uint16_t program, bool enabled, const nsAString & password, uint16_t serviceClass, nsIMobileConnectionCallback *requestCallback) override; \
NS_IMETHOD ChangeCallBarringPassword(const nsAString & pin, const nsAString & newPin, nsIMobileConnectionCallback *requestCallback) override; \
NS_IMETHOD SetCallWaiting(bool enabled, nsIMobileConnectionCallback *requestCallback) override; \
NS_IMETHOD GetCallWaiting(nsIMobileConnectionCallback *requestCallback) override; \
NS_IMETHOD SetCallingLineIdRestriction(uint16_t clirMode, nsIMobileConnectionCallback *requestCallback) override; \
NS_IMETHOD GetCallingLineIdRestriction(nsIMobileConnectionCallback *requestCallback) override; \
NS_IMETHOD ExitEmergencyCbMode(nsIMobileConnectionCallback *requestCallback) override; \
NS_IMETHOD SetRadioEnabled(bool enabled, nsIMobileConnectionCallback *requestCallback) override; \
NS_IMETHOD GetNeighboringCellIds(nsINeighboringCellIdsCallback *callback) override; \
NS_IMETHOD GetCellInfoList(nsICellInfoListCallback *callback) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMOBILECONNECTION(_to) \
NS_IMETHOD GetServiceId(uint32_t *aServiceId) override { return _to GetServiceId(aServiceId); } \
NS_IMETHOD RegisterListener(nsIMobileConnectionListener *listener) override { return _to RegisterListener(listener); } \
NS_IMETHOD UnregisterListener(nsIMobileConnectionListener *listener) override { return _to UnregisterListener(listener); } \
NS_IMETHOD GetLastKnownNetwork(nsAString & aLastKnownNetwork) override { return _to GetLastKnownNetwork(aLastKnownNetwork); } \
NS_IMETHOD GetLastKnownHomeNetwork(nsAString & aLastKnownHomeNetwork) override { return _to GetLastKnownHomeNetwork(aLastKnownHomeNetwork); } \
NS_IMETHOD GetVoice(nsIMobileConnectionInfo * *aVoice) override { return _to GetVoice(aVoice); } \
NS_IMETHOD GetData(nsIMobileConnectionInfo * *aData) override { return _to GetData(aData); } \
NS_IMETHOD GetNetworkSelectionMode(int32_t *aNetworkSelectionMode) override { return _to GetNetworkSelectionMode(aNetworkSelectionMode); } \
NS_IMETHOD GetRadioState(int32_t *aRadioState) override { return _to GetRadioState(aRadioState); } \
NS_IMETHOD GetSupportedNetworkTypes(int32_t **types, uint32_t *length) override { return _to GetSupportedNetworkTypes(types, length); } \
NS_IMETHOD GetNetworks(nsIMobileConnectionCallback *requestCallback) override { return _to GetNetworks(requestCallback); } \
NS_IMETHOD SelectNetwork(nsIMobileNetworkInfo *network, nsIMobileConnectionCallback *requestCallback) override { return _to SelectNetwork(network, requestCallback); } \
NS_IMETHOD SelectNetworkAutomatically(nsIMobileConnectionCallback *requestCallback) override { return _to SelectNetworkAutomatically(requestCallback); } \
NS_IMETHOD SetPreferredNetworkType(int32_t type, nsIMobileConnectionCallback *requestCallback) override { return _to SetPreferredNetworkType(type, requestCallback); } \
NS_IMETHOD GetPreferredNetworkType(nsIMobileConnectionCallback *requestCallback) override { return _to GetPreferredNetworkType(requestCallback); } \
NS_IMETHOD SetRoamingPreference(int32_t mode, nsIMobileConnectionCallback *requestCallback) override { return _to SetRoamingPreference(mode, requestCallback); } \
NS_IMETHOD GetRoamingPreference(nsIMobileConnectionCallback *requestCallback) override { return _to GetRoamingPreference(requestCallback); } \
NS_IMETHOD SetVoicePrivacyMode(bool enabled, nsIMobileConnectionCallback *requestCallback) override { return _to SetVoicePrivacyMode(enabled, requestCallback); } \
NS_IMETHOD GetVoicePrivacyMode(nsIMobileConnectionCallback *requestCallback) override { return _to GetVoicePrivacyMode(requestCallback); } \
NS_IMETHOD GetCallForwarding(uint16_t reason, nsIMobileConnectionCallback *requestCallback) override { return _to GetCallForwarding(reason, requestCallback); } \
NS_IMETHOD SetCallForwarding(uint16_t action, uint16_t reason, const nsAString & number, uint16_t timeSeconds, uint16_t serviceClass, nsIMobileConnectionCallback *requestCallback) override { return _to SetCallForwarding(action, reason, number, timeSeconds, serviceClass, requestCallback); } \
NS_IMETHOD GetCallBarring(uint16_t program, const nsAString & password, uint16_t serviceClass, nsIMobileConnectionCallback *requestCallback) override { return _to GetCallBarring(program, password, serviceClass, requestCallback); } \
NS_IMETHOD SetCallBarring(uint16_t program, bool enabled, const nsAString & password, uint16_t serviceClass, nsIMobileConnectionCallback *requestCallback) override { return _to SetCallBarring(program, enabled, password, serviceClass, requestCallback); } \
NS_IMETHOD ChangeCallBarringPassword(const nsAString & pin, const nsAString & newPin, nsIMobileConnectionCallback *requestCallback) override { return _to ChangeCallBarringPassword(pin, newPin, requestCallback); } \
NS_IMETHOD SetCallWaiting(bool enabled, nsIMobileConnectionCallback *requestCallback) override { return _to SetCallWaiting(enabled, requestCallback); } \
NS_IMETHOD GetCallWaiting(nsIMobileConnectionCallback *requestCallback) override { return _to GetCallWaiting(requestCallback); } \
NS_IMETHOD SetCallingLineIdRestriction(uint16_t clirMode, nsIMobileConnectionCallback *requestCallback) override { return _to SetCallingLineIdRestriction(clirMode, requestCallback); } \
NS_IMETHOD GetCallingLineIdRestriction(nsIMobileConnectionCallback *requestCallback) override { return _to GetCallingLineIdRestriction(requestCallback); } \
NS_IMETHOD ExitEmergencyCbMode(nsIMobileConnectionCallback *requestCallback) override { return _to ExitEmergencyCbMode(requestCallback); } \
NS_IMETHOD SetRadioEnabled(bool enabled, nsIMobileConnectionCallback *requestCallback) override { return _to SetRadioEnabled(enabled, requestCallback); } \
NS_IMETHOD GetNeighboringCellIds(nsINeighboringCellIdsCallback *callback) override { return _to GetNeighboringCellIds(callback); } \
NS_IMETHOD GetCellInfoList(nsICellInfoListCallback *callback) override { return _to GetCellInfoList(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_NSIMOBILECONNECTION(_to) \
NS_IMETHOD GetServiceId(uint32_t *aServiceId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServiceId(aServiceId); } \
NS_IMETHOD RegisterListener(nsIMobileConnectionListener *listener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterListener(listener); } \
NS_IMETHOD UnregisterListener(nsIMobileConnectionListener *listener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterListener(listener); } \
NS_IMETHOD GetLastKnownNetwork(nsAString & aLastKnownNetwork) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastKnownNetwork(aLastKnownNetwork); } \
NS_IMETHOD GetLastKnownHomeNetwork(nsAString & aLastKnownHomeNetwork) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastKnownHomeNetwork(aLastKnownHomeNetwork); } \
NS_IMETHOD GetVoice(nsIMobileConnectionInfo * *aVoice) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVoice(aVoice); } \
NS_IMETHOD GetData(nsIMobileConnectionInfo * *aData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
NS_IMETHOD GetNetworkSelectionMode(int32_t *aNetworkSelectionMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNetworkSelectionMode(aNetworkSelectionMode); } \
NS_IMETHOD GetRadioState(int32_t *aRadioState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRadioState(aRadioState); } \
NS_IMETHOD GetSupportedNetworkTypes(int32_t **types, uint32_t *length) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSupportedNetworkTypes(types, length); } \
NS_IMETHOD GetNetworks(nsIMobileConnectionCallback *requestCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNetworks(requestCallback); } \
NS_IMETHOD SelectNetwork(nsIMobileNetworkInfo *network, nsIMobileConnectionCallback *requestCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SelectNetwork(network, requestCallback); } \
NS_IMETHOD SelectNetworkAutomatically(nsIMobileConnectionCallback *requestCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SelectNetworkAutomatically(requestCallback); } \
NS_IMETHOD SetPreferredNetworkType(int32_t type, nsIMobileConnectionCallback *requestCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPreferredNetworkType(type, requestCallback); } \
NS_IMETHOD GetPreferredNetworkType(nsIMobileConnectionCallback *requestCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPreferredNetworkType(requestCallback); } \
NS_IMETHOD SetRoamingPreference(int32_t mode, nsIMobileConnectionCallback *requestCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRoamingPreference(mode, requestCallback); } \
NS_IMETHOD GetRoamingPreference(nsIMobileConnectionCallback *requestCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRoamingPreference(requestCallback); } \
NS_IMETHOD SetVoicePrivacyMode(bool enabled, nsIMobileConnectionCallback *requestCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetVoicePrivacyMode(enabled, requestCallback); } \
NS_IMETHOD GetVoicePrivacyMode(nsIMobileConnectionCallback *requestCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVoicePrivacyMode(requestCallback); } \
NS_IMETHOD GetCallForwarding(uint16_t reason, nsIMobileConnectionCallback *requestCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCallForwarding(reason, requestCallback); } \
NS_IMETHOD SetCallForwarding(uint16_t action, uint16_t reason, const nsAString & number, uint16_t timeSeconds, uint16_t serviceClass, nsIMobileConnectionCallback *requestCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCallForwarding(action, reason, number, timeSeconds, serviceClass, requestCallback); } \
NS_IMETHOD GetCallBarring(uint16_t program, const nsAString & password, uint16_t serviceClass, nsIMobileConnectionCallback *requestCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCallBarring(program, password, serviceClass, requestCallback); } \
NS_IMETHOD SetCallBarring(uint16_t program, bool enabled, const nsAString & password, uint16_t serviceClass, nsIMobileConnectionCallback *requestCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCallBarring(program, enabled, password, serviceClass, requestCallback); } \
NS_IMETHOD ChangeCallBarringPassword(const nsAString & pin, const nsAString & newPin, nsIMobileConnectionCallback *requestCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ChangeCallBarringPassword(pin, newPin, requestCallback); } \
NS_IMETHOD SetCallWaiting(bool enabled, nsIMobileConnectionCallback *requestCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCallWaiting(enabled, requestCallback); } \
NS_IMETHOD GetCallWaiting(nsIMobileConnectionCallback *requestCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCallWaiting(requestCallback); } \
NS_IMETHOD SetCallingLineIdRestriction(uint16_t clirMode, nsIMobileConnectionCallback *requestCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCallingLineIdRestriction(clirMode, requestCallback); } \
NS_IMETHOD GetCallingLineIdRestriction(nsIMobileConnectionCallback *requestCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCallingLineIdRestriction(requestCallback); } \
NS_IMETHOD ExitEmergencyCbMode(nsIMobileConnectionCallback *requestCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ExitEmergencyCbMode(requestCallback); } \
NS_IMETHOD SetRadioEnabled(bool enabled, nsIMobileConnectionCallback *requestCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRadioEnabled(enabled, requestCallback); } \
NS_IMETHOD GetNeighboringCellIds(nsINeighboringCellIdsCallback *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNeighboringCellIds(callback); } \
NS_IMETHOD GetCellInfoList(nsICellInfoListCallback *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCellInfoList(callback); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsMobileConnection : public nsIMobileConnection
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIMOBILECONNECTION
nsMobileConnection();
private:
~nsMobileConnection();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsMobileConnection, nsIMobileConnection)
nsMobileConnection::nsMobileConnection()
{
/* member initializers and constructor code */
}
nsMobileConnection::~nsMobileConnection()
{
/* destructor code */
}
/* readonly attribute unsigned long serviceId; */
NS_IMETHODIMP nsMobileConnection::GetServiceId(uint32_t *aServiceId)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void registerListener (in nsIMobileConnectionListener listener); */
NS_IMETHODIMP nsMobileConnection::RegisterListener(nsIMobileConnectionListener *listener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void unregisterListener (in nsIMobileConnectionListener listener); */
NS_IMETHODIMP nsMobileConnection::UnregisterListener(nsIMobileConnectionListener *listener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute DOMString lastKnownNetwork; */
NS_IMETHODIMP nsMobileConnection::GetLastKnownNetwork(nsAString & aLastKnownNetwork)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute DOMString lastKnownHomeNetwork; */
NS_IMETHODIMP nsMobileConnection::GetLastKnownHomeNetwork(nsAString & aLastKnownHomeNetwork)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIMobileConnectionInfo voice; */
NS_IMETHODIMP nsMobileConnection::GetVoice(nsIMobileConnectionInfo * *aVoice)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIMobileConnectionInfo data; */
NS_IMETHODIMP nsMobileConnection::GetData(nsIMobileConnectionInfo * *aData)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute long networkSelectionMode; */
NS_IMETHODIMP nsMobileConnection::GetNetworkSelectionMode(int32_t *aNetworkSelectionMode)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute long radioState; */
NS_IMETHODIMP nsMobileConnection::GetRadioState(int32_t *aRadioState)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getSupportedNetworkTypes ([array, size_is (length)] out long types, [retval] out unsigned long length); */
NS_IMETHODIMP nsMobileConnection::GetSupportedNetworkTypes(int32_t **types, uint32_t *length)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getNetworks (in nsIMobileConnectionCallback requestCallback); */
NS_IMETHODIMP nsMobileConnection::GetNetworks(nsIMobileConnectionCallback *requestCallback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void selectNetwork (in nsIMobileNetworkInfo network, in nsIMobileConnectionCallback requestCallback); */
NS_IMETHODIMP nsMobileConnection::SelectNetwork(nsIMobileNetworkInfo *network, nsIMobileConnectionCallback *requestCallback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void selectNetworkAutomatically (in nsIMobileConnectionCallback requestCallback); */
NS_IMETHODIMP nsMobileConnection::SelectNetworkAutomatically(nsIMobileConnectionCallback *requestCallback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setPreferredNetworkType (in long type, in nsIMobileConnectionCallback requestCallback); */
NS_IMETHODIMP nsMobileConnection::SetPreferredNetworkType(int32_t type, nsIMobileConnectionCallback *requestCallback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getPreferredNetworkType (in nsIMobileConnectionCallback requestCallback); */
NS_IMETHODIMP nsMobileConnection::GetPreferredNetworkType(nsIMobileConnectionCallback *requestCallback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setRoamingPreference (in long mode, in nsIMobileConnectionCallback requestCallback); */
NS_IMETHODIMP nsMobileConnection::SetRoamingPreference(int32_t mode, nsIMobileConnectionCallback *requestCallback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getRoamingPreference (in nsIMobileConnectionCallback requestCallback); */
NS_IMETHODIMP nsMobileConnection::GetRoamingPreference(nsIMobileConnectionCallback *requestCallback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setVoicePrivacyMode (in bool enabled, in nsIMobileConnectionCallback requestCallback); */
NS_IMETHODIMP nsMobileConnection::SetVoicePrivacyMode(bool enabled, nsIMobileConnectionCallback *requestCallback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getVoicePrivacyMode (in nsIMobileConnectionCallback requestCallback); */
NS_IMETHODIMP nsMobileConnection::GetVoicePrivacyMode(nsIMobileConnectionCallback *requestCallback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getCallForwarding (in unsigned short reason, in nsIMobileConnectionCallback requestCallback); */
NS_IMETHODIMP nsMobileConnection::GetCallForwarding(uint16_t reason, nsIMobileConnectionCallback *requestCallback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setCallForwarding (in unsigned short action, in unsigned short reason, in DOMString number, in unsigned short timeSeconds, in unsigned short serviceClass, in nsIMobileConnectionCallback requestCallback); */
NS_IMETHODIMP nsMobileConnection::SetCallForwarding(uint16_t action, uint16_t reason, const nsAString & number, uint16_t timeSeconds, uint16_t serviceClass, nsIMobileConnectionCallback *requestCallback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getCallBarring (in unsigned short program, in DOMString password, in unsigned short serviceClass, in nsIMobileConnectionCallback requestCallback); */
NS_IMETHODIMP nsMobileConnection::GetCallBarring(uint16_t program, const nsAString & password, uint16_t serviceClass, nsIMobileConnectionCallback *requestCallback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setCallBarring (in unsigned short program, in bool enabled, in DOMString password, in unsigned short serviceClass, in nsIMobileConnectionCallback requestCallback); */
NS_IMETHODIMP nsMobileConnection::SetCallBarring(uint16_t program, bool enabled, const nsAString & password, uint16_t serviceClass, nsIMobileConnectionCallback *requestCallback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void changeCallBarringPassword (in DOMString pin, in DOMString newPin, in nsIMobileConnectionCallback requestCallback); */
NS_IMETHODIMP nsMobileConnection::ChangeCallBarringPassword(const nsAString & pin, const nsAString & newPin, nsIMobileConnectionCallback *requestCallback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setCallWaiting (in bool enabled, in nsIMobileConnectionCallback requestCallback); */
NS_IMETHODIMP nsMobileConnection::SetCallWaiting(bool enabled, nsIMobileConnectionCallback *requestCallback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getCallWaiting (in nsIMobileConnectionCallback requestCallback); */
NS_IMETHODIMP nsMobileConnection::GetCallWaiting(nsIMobileConnectionCallback *requestCallback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setCallingLineIdRestriction (in unsigned short clirMode, in nsIMobileConnectionCallback requestCallback); */
NS_IMETHODIMP nsMobileConnection::SetCallingLineIdRestriction(uint16_t clirMode, nsIMobileConnectionCallback *requestCallback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getCallingLineIdRestriction (in nsIMobileConnectionCallback requestCallback); */
NS_IMETHODIMP nsMobileConnection::GetCallingLineIdRestriction(nsIMobileConnectionCallback *requestCallback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void exitEmergencyCbMode (in nsIMobileConnectionCallback requestCallback); */
NS_IMETHODIMP nsMobileConnection::ExitEmergencyCbMode(nsIMobileConnectionCallback *requestCallback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setRadioEnabled (in bool enabled, in nsIMobileConnectionCallback requestCallback); */
NS_IMETHODIMP nsMobileConnection::SetRadioEnabled(bool enabled, nsIMobileConnectionCallback *requestCallback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getNeighboringCellIds (in nsINeighboringCellIdsCallback callback); */
NS_IMETHODIMP nsMobileConnection::GetNeighboringCellIds(nsINeighboringCellIdsCallback *callback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getCellInfoList (in nsICellInfoListCallback callback); */
NS_IMETHODIMP nsMobileConnection::GetCellInfoList(nsICellInfoListCallback *callback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIMobileConnectionService_h__ */
|