/usr/share/gtk-doc/html/goa/GoaOAuth2Based.html is in libgoa-1.0-doc 3.4.0-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 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GoaOAuth2Based</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GNOME Online Accounts Reference Manual">
<link rel="up" href="ref-library-generated.html" title="Generated Code">
<link rel="prev" href="GoaOAuthBased.html" title="GoaOAuthBased">
<link rel="next" href="GoaMail.html" title="GoaMail">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="GoaOAuthBased.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ref-library-generated.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GNOME Online Accounts Reference Manual</th>
<td><a accesskey="n" href="GoaMail.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#GoaOAuth2Based.synopsis" class="shortcut">Top</a>
|
<a href="#GoaOAuth2Based.description" class="shortcut">Description</a>
|
<a href="#GoaOAuth2Based.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
<a href="#GoaOAuth2Based.prerequisites" class="shortcut">Prerequisites</a>
|
<a href="#GoaOAuth2Based.properties" class="shortcut">Properties</a>
|
<a href="#GoaOAuth2Based.signals" class="shortcut">Signals</a>
</td></tr>
</table>
<div class="refentry">
<a name="GoaOAuth2Based"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GoaOAuth2Based.top_of_page"></a>GoaOAuth2Based</span></h2>
<p>GoaOAuth2Based — Generated C code for the org.gnome.OnlineAccounts.OAuth2Based D-Bus interface</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="GoaOAuth2Based.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis"> <a class="link" href="GoaOAuth2Based.html#GoaOAuth2Based-struct" title="GoaOAuth2Based">GoaOAuth2Based</a>;
struct <a class="link" href="GoaOAuth2Based.html#GoaOAuth2BasedIface" title="struct GoaOAuth2BasedIface">GoaOAuth2BasedIface</a>;
<a href="/usr/share/gtk-doc/html/gio/gio-D-Bus-Introspection-Data.html#GDBusInterfaceInfo"><span class="returnvalue">GDBusInterfaceInfo</span></a> * <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-interface-info" title="goa_oauth2_based_interface_info ()">goa_oauth2_based_interface_info</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-override-properties" title="goa_oauth2_based_override_properties ()">goa_oauth2_based_override_properties</a>
(<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a> *klass</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> property_id_begin</code></em>);
const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-get-client-id" title="goa_oauth2_based_get_client_id ()">goa_oauth2_based_get_client_id</a> (<em class="parameter"><code><a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="type">GoaOAuth2Based</span></a> *object</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-set-client-id" title="goa_oauth2_based_set_client_id ()">goa_oauth2_based_set_client_id</a> (<em class="parameter"><code><a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="type">GoaOAuth2Based</span></a> *object</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-dup-client-id" title="goa_oauth2_based_dup_client_id ()">goa_oauth2_based_dup_client_id</a> (<em class="parameter"><code><a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="type">GoaOAuth2Based</span></a> *object</code></em>);
const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-get-client-secret" title="goa_oauth2_based_get_client_secret ()">goa_oauth2_based_get_client_secret</a> (<em class="parameter"><code><a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="type">GoaOAuth2Based</span></a> *object</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-set-client-secret" title="goa_oauth2_based_set_client_secret ()">goa_oauth2_based_set_client_secret</a> (<em class="parameter"><code><a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="type">GoaOAuth2Based</span></a> *object</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-dup-client-secret" title="goa_oauth2_based_dup_client_secret ()">goa_oauth2_based_dup_client_secret</a> (<em class="parameter"><code><a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="type">GoaOAuth2Based</span></a> *object</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-call-get-access-token" title="goa_oauth2_based_call_get_access_token ()">goa_oauth2_based_call_get_access_token</a>
(<em class="parameter"><code><a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="type">GoaOAuth2Based</span></a> *proxy</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-call-get-access-token-finish" title="goa_oauth2_based_call_get_access_token_finish ()">goa_oauth2_based_call_get_access_token_finish</a>
(<em class="parameter"><code><a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="type">GoaOAuth2Based</span></a> *proxy</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **out_access_token</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *out_expires_in</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-call-get-access-token-sync" title="goa_oauth2_based_call_get_access_token_sync ()">goa_oauth2_based_call_get_access_token_sync</a>
(<em class="parameter"><code><a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="type">GoaOAuth2Based</span></a> *proxy</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **out_access_token</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *out_expires_in</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-complete-get-access-token" title="goa_oauth2_based_complete_get_access_token ()">goa_oauth2_based_complete_get_access_token</a>
(<em class="parameter"><code><a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="type">GoaOAuth2Based</span></a> *object</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GDBusMethodInvocation.html"><span class="type">GDBusMethodInvocation</span></a> *invocation</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *access_token</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> expires_in</code></em>);
struct <a class="link" href="GoaOAuth2Based.html#GoaOAuth2BasedProxy" title="struct GoaOAuth2BasedProxy">GoaOAuth2BasedProxy</a>;
struct <a class="link" href="GoaOAuth2Based.html#GoaOAuth2BasedProxyClass" title="struct GoaOAuth2BasedProxyClass">GoaOAuth2BasedProxyClass</a>;
<span class="returnvalue">void</span> <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-proxy-new" title="goa_oauth2_based_proxy_new ()">goa_oauth2_based_proxy_new</a> (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GDBusConnection.html"><span class="type">GDBusConnection</span></a> *connection</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GDBusProxy.html#GDBusProxyFlags"><span class="type">GDBusProxyFlags</span></a> flags</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *object_path</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
<a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="returnvalue">GoaOAuth2Based</span></a> * <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-proxy-new-finish" title="goa_oauth2_based_proxy_new_finish ()">goa_oauth2_based_proxy_new_finish</a> (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="returnvalue">GoaOAuth2Based</span></a> * <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-proxy-new-sync" title="goa_oauth2_based_proxy_new_sync ()">goa_oauth2_based_proxy_new_sync</a> (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GDBusConnection.html"><span class="type">GDBusConnection</span></a> *connection</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GDBusProxy.html#GDBusProxyFlags"><span class="type">GDBusProxyFlags</span></a> flags</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *object_path</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-proxy-new-for-bus" title="goa_oauth2_based_proxy_new_for_bus ()">goa_oauth2_based_proxy_new_for_bus</a> (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GDBusConnection.html#GBusType"><span class="type">GBusType</span></a> bus_type</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GDBusProxy.html#GDBusProxyFlags"><span class="type">GDBusProxyFlags</span></a> flags</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *object_path</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
<a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="returnvalue">GoaOAuth2Based</span></a> * <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-proxy-new-for-bus-finish" title="goa_oauth2_based_proxy_new_for_bus_finish ()">goa_oauth2_based_proxy_new_for_bus_finish</a>
(<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="returnvalue">GoaOAuth2Based</span></a> * <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-proxy-new-for-bus-sync" title="goa_oauth2_based_proxy_new_for_bus_sync ()">goa_oauth2_based_proxy_new_for_bus_sync</a>
(<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GDBusConnection.html#GBusType"><span class="type">GBusType</span></a> bus_type</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GDBusProxy.html#GDBusProxyFlags"><span class="type">GDBusProxyFlags</span></a> flags</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *object_path</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
struct <a class="link" href="GoaOAuth2Based.html#GoaOAuth2BasedSkeleton" title="struct GoaOAuth2BasedSkeleton">GoaOAuth2BasedSkeleton</a>;
struct <a class="link" href="GoaOAuth2Based.html#GoaOAuth2BasedSkeletonClass" title="struct GoaOAuth2BasedSkeletonClass">GoaOAuth2BasedSkeletonClass</a>;
<a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="returnvalue">GoaOAuth2Based</span></a> * <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-skeleton-new" title="goa_oauth2_based_skeleton_new ()">goa_oauth2_based_skeleton_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
</pre>
</div>
<div class="refsect1">
<a name="GoaOAuth2Based.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
GInterface
+----GoaOAuth2Based
</pre>
</div>
<div class="refsect1">
<a name="GoaOAuth2Based.prerequisites"></a><h2>Prerequisites</h2>
<p>
GoaOAuth2Based requires
<a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>.</p>
</div>
<div class="refsect1">
<a name="GoaOAuth2Based.properties"></a><h2>Properties</h2>
<pre class="synopsis">
"<a class="link" href="GoaOAuth2Based.html#GoaOAuth2Based--client-id" title='The "client-id" property'>client-id</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write
"<a class="link" href="GoaOAuth2Based.html#GoaOAuth2Based--client-secret" title='The "client-secret" property'>client-secret</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write
</pre>
</div>
<div class="refsect1">
<a name="GoaOAuth2Based.signals"></a><h2>Signals</h2>
<pre class="synopsis">
"<a class="link" href="GoaOAuth2Based.html#GoaOAuth2Based-handle-get-access-token" title='The "handle-get-access-token" signal'>handle-get-access-token</a>" : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
</pre>
</div>
<div class="refsect1">
<a name="GoaOAuth2Based.description"></a><h2>Description</h2>
<p>
This section contains code for working with the <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuth2Based.html#gdbus-interface-org-gnome-OnlineAccounts-OAuth2Based.top_of_page">org.gnome.OnlineAccounts.OAuth2Based</a> D-Bus interface in C.
</p>
</div>
<div class="refsect1">
<a name="GoaOAuth2Based.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GoaOAuth2Based-struct"></a><h3>GoaOAuth2Based</h3>
<pre class="programlisting">typedef struct _GoaOAuth2Based GoaOAuth2Based;</pre>
<p>
Abstract interface type for the D-Bus interface <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuth2Based.html#gdbus-interface-org-gnome-OnlineAccounts-OAuth2Based.top_of_page">org.gnome.OnlineAccounts.OAuth2Based</a>.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GoaOAuth2BasedIface"></a><h3>struct GoaOAuth2BasedIface</h3>
<pre class="programlisting">struct GoaOAuth2BasedIface {
GTypeInterface parent_iface;
gboolean (*handle_get_access_token) (
GoaOAuth2Based *object,
GDBusMethodInvocation *invocation);
const gchar * (*get_client_id) (GoaOAuth2Based *object);
const gchar * (*get_client_secret) (GoaOAuth2Based *object);
};
</pre>
<p>
Virtual table for the D-Bus interface <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuth2Based.html#gdbus-interface-org-gnome-OnlineAccounts-OAuth2Based.top_of_page">org.gnome.OnlineAccounts.OAuth2Based</a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><a href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GTypeInterface"><span class="type">GTypeInterface</span></a> <em class="structfield"><code><a name="GoaOAuth2BasedIface.parent-iface"></a>parent_iface</code></em>;</span></p></td>
<td>The parent interface.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GoaOAuth2BasedIface.handle-get-access-token"></a>handle_get_access_token</code></em> ()</span></p></td>
<td>Handler for the <a class="link" href="GoaOAuth2Based.html#GoaOAuth2Based-handle-get-access-token" title='The "handle-get-access-token" signal'><span class="type">"handle-get-access-token"</span></a> signal.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GoaOAuth2BasedIface.get-client-id"></a>get_client_id</code></em> ()</span></p></td>
<td>Getter for the <a class="link" href="GoaOAuth2Based.html#GoaOAuth2Based--client-id" title='The "client-id" property'><span class="type">"client-id"</span></a> property.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GoaOAuth2BasedIface.get-client-secret"></a>get_client_secret</code></em> ()</span></p></td>
<td>Getter for the <a class="link" href="GoaOAuth2Based.html#GoaOAuth2Based--client-secret" title='The "client-secret" property'><span class="type">"client-secret"</span></a> property.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goa-oauth2-based-interface-info"></a><h3>goa_oauth2_based_interface_info ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gio/gio-D-Bus-Introspection-Data.html#GDBusInterfaceInfo"><span class="returnvalue">GDBusInterfaceInfo</span></a> * goa_oauth2_based_interface_info (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Gets a machine-readable description of the <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuth2Based.html#gdbus-interface-org-gnome-OnlineAccounts-OAuth2Based.top_of_page">org.gnome.OnlineAccounts.OAuth2Based</a> D-Bus interface.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A <a href="/usr/share/gtk-doc/html/gio/gio-D-Bus-Introspection-Data.html#GDBusInterfaceInfo"><span class="type">GDBusInterfaceInfo</span></a>. Do not free. <span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goa-oauth2-based-override-properties"></a><h3>goa_oauth2_based_override_properties ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> goa_oauth2_based_override_properties
(<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a> *klass</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> property_id_begin</code></em>);</pre>
<p>
Overrides all <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> properties in the <a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="type">GoaOAuth2Based</span></a> interface for a concrete class.
The properties are overridden in the order they are defined.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>klass</code></em> :</span></p></td>
<td>The class structure for a <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a>-derived class.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>property_id_begin</code></em> :</span></p></td>
<td>The property id to assign to the first overridden property.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The last property id.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goa-oauth2-based-get-client-id"></a><h3>goa_oauth2_based_get_client_id ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * goa_oauth2_based_get_client_id (<em class="parameter"><code><a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="type">GoaOAuth2Based</span></a> *object</code></em>);</pre>
<p>
Gets the value of the <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuth2Based.html#gdbus-property-org-gnome-OnlineAccounts-OAuth2Based.ClientId" title='The "ClientId" property'>"ClientId"</a> D-Bus property.
</p>
<p>
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
</p>
<p>
</p>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where <em class="parameter"><code>object</code></em> was constructed. Use <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-dup-client-id" title="goa_oauth2_based_dup_client_id ()"><code class="function">goa_oauth2_based_dup_client_id()</code></a> if on another thread.</div>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
<td>A <a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="type">GoaOAuth2Based</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The property value or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the property is not set. Do not free the returned value, it belongs to <em class="parameter"><code>object</code></em>. <span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goa-oauth2-based-set-client-id"></a><h3>goa_oauth2_based_set_client_id ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> goa_oauth2_based_set_client_id (<em class="parameter"><code><a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="type">GoaOAuth2Based</span></a> *object</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>);</pre>
<p>
Sets the <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuth2Based.html#gdbus-property-org-gnome-OnlineAccounts-OAuth2Based.ClientId" title='The "ClientId" property'>"ClientId"</a> D-Bus property to <em class="parameter"><code>value</code></em>.
</p>
<p>
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
<td>A <a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="type">GoaOAuth2Based</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>The value to set.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goa-oauth2-based-dup-client-id"></a><h3>goa_oauth2_based_dup_client_id ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * goa_oauth2_based_dup_client_id (<em class="parameter"><code><a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="type">GoaOAuth2Based</span></a> *object</code></em>);</pre>
<p>
Gets a copy of the <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuth2Based.html#gdbus-property-org-gnome-OnlineAccounts-OAuth2Based.ClientId" title='The "ClientId" property'>"ClientId"</a> D-Bus property.
</p>
<p>
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
<td>A <a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="type">GoaOAuth2Based</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The property value or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the property is not set. The returned value should be freed with <a href="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>. <span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goa-oauth2-based-get-client-secret"></a><h3>goa_oauth2_based_get_client_secret ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * goa_oauth2_based_get_client_secret (<em class="parameter"><code><a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="type">GoaOAuth2Based</span></a> *object</code></em>);</pre>
<p>
Gets the value of the <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuth2Based.html#gdbus-property-org-gnome-OnlineAccounts-OAuth2Based.ClientSecret" title='The "ClientSecret" property'>"ClientSecret"</a> D-Bus property.
</p>
<p>
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
</p>
<p>
</p>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where <em class="parameter"><code>object</code></em> was constructed. Use <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-dup-client-secret" title="goa_oauth2_based_dup_client_secret ()"><code class="function">goa_oauth2_based_dup_client_secret()</code></a> if on another thread.</div>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
<td>A <a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="type">GoaOAuth2Based</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The property value or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the property is not set. Do not free the returned value, it belongs to <em class="parameter"><code>object</code></em>. <span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goa-oauth2-based-set-client-secret"></a><h3>goa_oauth2_based_set_client_secret ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> goa_oauth2_based_set_client_secret (<em class="parameter"><code><a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="type">GoaOAuth2Based</span></a> *object</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>);</pre>
<p>
Sets the <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuth2Based.html#gdbus-property-org-gnome-OnlineAccounts-OAuth2Based.ClientSecret" title='The "ClientSecret" property'>"ClientSecret"</a> D-Bus property to <em class="parameter"><code>value</code></em>.
</p>
<p>
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
<td>A <a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="type">GoaOAuth2Based</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>The value to set.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goa-oauth2-based-dup-client-secret"></a><h3>goa_oauth2_based_dup_client_secret ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * goa_oauth2_based_dup_client_secret (<em class="parameter"><code><a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="type">GoaOAuth2Based</span></a> *object</code></em>);</pre>
<p>
Gets a copy of the <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuth2Based.html#gdbus-property-org-gnome-OnlineAccounts-OAuth2Based.ClientSecret" title='The "ClientSecret" property'>"ClientSecret"</a> D-Bus property.
</p>
<p>
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
<td>A <a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="type">GoaOAuth2Based</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The property value or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the property is not set. The returned value should be freed with <a href="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>. <span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goa-oauth2-based-call-get-access-token"></a><h3>goa_oauth2_based_call_get_access_token ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> goa_oauth2_based_call_get_access_token
(<em class="parameter"><code><a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="type">GoaOAuth2Based</span></a> *proxy</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
<p>
Asynchronously invokes the <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuth2Based.html#gdbus-method-org-gnome-OnlineAccounts-OAuth2Based.GetAccessToken" title="The GetAccessToken() method"><code class="function">GetAccessToken()</code></a> D-Bus method on <em class="parameter"><code>proxy</code></em>.
When the operation is finished, <em class="parameter"><code>callback</code></em> will be invoked in the <a href="/usr/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html#g-main-context-push-thread-default">thread-default main loop</a> of the thread you are calling this method from.
You can then call <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-call-get-access-token-finish" title="goa_oauth2_based_call_get_access_token_finish ()"><code class="function">goa_oauth2_based_call_get_access_token_finish()</code></a> to get the result of the operation.
</p>
<p>
See <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-call-get-access-token-sync" title="goa_oauth2_based_call_get_access_token_sync ()"><code class="function">goa_oauth2_based_call_get_access_token_sync()</code></a> for the synchronous, blocking version of this method.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>A <a class="link" href="GoaOAuth2Based.html#GoaOAuth2BasedProxy" title="struct GoaOAuth2BasedProxy"><span class="type">GoaOAuth2BasedProxy</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
<td>A <a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
<td>A <a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> to call when the request is satisfied or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>User data to pass to <em class="parameter"><code>callback</code></em>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goa-oauth2-based-call-get-access-token-finish"></a><h3>goa_oauth2_based_call_get_access_token_finish ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> goa_oauth2_based_call_get_access_token_finish
(<em class="parameter"><code><a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="type">GoaOAuth2Based</span></a> *proxy</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **out_access_token</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *out_expires_in</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Finishes an operation started with <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-call-get-access-token" title="goa_oauth2_based_call_get_access_token ()"><code class="function">goa_oauth2_based_call_get_access_token()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>A <a class="link" href="GoaOAuth2Based.html#GoaOAuth2BasedProxy" title="struct GoaOAuth2BasedProxy"><span class="type">GoaOAuth2BasedProxy</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>out_access_token</code></em> :</span></p></td>
<td>Return location for return parameter or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. <span class="annotation">[<a href="http://foldoc.org/out"><span class="acronym">out</span></a>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>out_expires_in</code></em> :</span></p></td>
<td>Return location for return parameter or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. <span class="annotation">[<a href="http://foldoc.org/out"><span class="acronym">out</span></a>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>res</code></em> :</span></p></td>
<td>The <a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a> obtained from the <a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> passed to <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-call-get-access-token" title="goa_oauth2_based_call_get_access_token ()"><code class="function">goa_oauth2_based_call_get_access_token()</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>Return location for error or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the call succeded, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if <em class="parameter"><code>error</code></em> is set. <span class="annotation">[skip]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goa-oauth2-based-call-get-access-token-sync"></a><h3>goa_oauth2_based_call_get_access_token_sync ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> goa_oauth2_based_call_get_access_token_sync
(<em class="parameter"><code><a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="type">GoaOAuth2Based</span></a> *proxy</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **out_access_token</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *out_expires_in</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Synchronously invokes the <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuth2Based.html#gdbus-method-org-gnome-OnlineAccounts-OAuth2Based.GetAccessToken" title="The GetAccessToken() method"><code class="function">GetAccessToken()</code></a> D-Bus method on <em class="parameter"><code>proxy</code></em>. The calling thread is blocked until a reply is received.
</p>
<p>
See <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-call-get-access-token" title="goa_oauth2_based_call_get_access_token ()"><code class="function">goa_oauth2_based_call_get_access_token()</code></a> for the asynchronous version of this method.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>A <a class="link" href="GoaOAuth2Based.html#GoaOAuth2BasedProxy" title="struct GoaOAuth2BasedProxy"><span class="type">GoaOAuth2BasedProxy</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>out_access_token</code></em> :</span></p></td>
<td>Return location for return parameter or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. <span class="annotation">[<a href="http://foldoc.org/out"><span class="acronym">out</span></a>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>out_expires_in</code></em> :</span></p></td>
<td>Return location for return parameter or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. <span class="annotation">[<a href="http://foldoc.org/out"><span class="acronym">out</span></a>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
<td>A <a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>Return location for error or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the call succeded, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if <em class="parameter"><code>error</code></em> is set. <span class="annotation">[skip]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goa-oauth2-based-complete-get-access-token"></a><h3>goa_oauth2_based_complete_get_access_token ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> goa_oauth2_based_complete_get_access_token
(<em class="parameter"><code><a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="type">GoaOAuth2Based</span></a> *object</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GDBusMethodInvocation.html"><span class="type">GDBusMethodInvocation</span></a> *invocation</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *access_token</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> expires_in</code></em>);</pre>
<p>
Helper function used in service implementations to finish handling invocations of the <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuth2Based.html#gdbus-method-org-gnome-OnlineAccounts-OAuth2Based.GetAccessToken" title="The GetAccessToken() method"><code class="function">GetAccessToken()</code></a> D-Bus method. If you instead want to finish handling an invocation by returning an error, use <a href="/usr/share/gtk-doc/html/gio/GDBusMethodInvocation.html#g-dbus-method-invocation-return-error"><code class="function">g_dbus_method_invocation_return_error()</code></a> or similar.
</p>
<p>
This method will free <em class="parameter"><code>invocation</code></em>, you cannot use it afterwards.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
<td>A <a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="type">GoaOAuth2Based</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>invocation</code></em> :</span></p></td>
<td>A <a href="/usr/share/gtk-doc/html/gio/GDBusMethodInvocation.html"><span class="type">GDBusMethodInvocation</span></a>. <span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>access_token</code></em> :</span></p></td>
<td>Parameter to return.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>expires_in</code></em> :</span></p></td>
<td>Parameter to return.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GoaOAuth2BasedProxy"></a><h3>struct GoaOAuth2BasedProxy</h3>
<pre class="programlisting">struct GoaOAuth2BasedProxy {
};
</pre>
<p>
The <a class="link" href="GoaOAuth2Based.html#GoaOAuth2BasedProxy" title="struct GoaOAuth2BasedProxy"><span class="type">GoaOAuth2BasedProxy</span></a> structure contains only private data and should only be accessed using the provided API.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GoaOAuth2BasedProxyClass"></a><h3>struct GoaOAuth2BasedProxyClass</h3>
<pre class="programlisting">struct GoaOAuth2BasedProxyClass {
GDBusProxyClass parent_class;
};
</pre>
<p>
Class structure for <a class="link" href="GoaOAuth2Based.html#GoaOAuth2BasedProxy" title="struct GoaOAuth2BasedProxy"><span class="type">GoaOAuth2BasedProxy</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><a href="/usr/share/gtk-doc/html/gio/GDBusProxy.html#GDBusProxyClass"><span class="type">GDBusProxyClass</span></a> <em class="structfield"><code><a name="GoaOAuth2BasedProxyClass.parent-class"></a>parent_class</code></em>;</span></p></td>
<td>The parent class.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goa-oauth2-based-proxy-new"></a><h3>goa_oauth2_based_proxy_new ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> goa_oauth2_based_proxy_new (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GDBusConnection.html"><span class="type">GDBusConnection</span></a> *connection</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GDBusProxy.html#GDBusProxyFlags"><span class="type">GDBusProxyFlags</span></a> flags</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *object_path</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
<p>
Asynchronously creates a proxy for the D-Bus interface <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuth2Based.html#gdbus-interface-org-gnome-OnlineAccounts-OAuth2Based.top_of_page">org.gnome.OnlineAccounts.OAuth2Based</a>. See <a href="/usr/share/gtk-doc/html/gio/GDBusProxy.html#g-dbus-proxy-new"><code class="function">g_dbus_proxy_new()</code></a> for more details.
</p>
<p>
When the operation is finished, <em class="parameter"><code>callback</code></em> will be invoked in the <a href="/usr/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html#g-main-context-push-thread-default">thread-default main loop</a> of the thread you are calling this method from.
You can then call <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-proxy-new-finish" title="goa_oauth2_based_proxy_new_finish ()"><code class="function">goa_oauth2_based_proxy_new_finish()</code></a> to get the result of the operation.
</p>
<p>
See <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-proxy-new-sync" title="goa_oauth2_based_proxy_new_sync ()"><code class="function">goa_oauth2_based_proxy_new_sync()</code></a> for the synchronous, blocking version of this constructor.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>connection</code></em> :</span></p></td>
<td>A <a href="/usr/share/gtk-doc/html/gio/GDBusConnection.html"><span class="type">GDBusConnection</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
<td>Flags from the <a href="/usr/share/gtk-doc/html/gio/GDBusProxy.html#GDBusProxyFlags"><span class="type">GDBusProxyFlags</span></a> enumeration.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>A bus name (well-known or unique) or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>connection</code></em> is not a message bus connection. <span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>object_path</code></em> :</span></p></td>
<td>An object path.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
<td>A <a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
<td>A <a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> to call when the request is satisfied.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>User data to pass to <em class="parameter"><code>callback</code></em>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goa-oauth2-based-proxy-new-finish"></a><h3>goa_oauth2_based_proxy_new_finish ()</h3>
<pre class="programlisting"><a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="returnvalue">GoaOAuth2Based</span></a> * goa_oauth2_based_proxy_new_finish (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Finishes an operation started with <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-proxy-new" title="goa_oauth2_based_proxy_new ()"><code class="function">goa_oauth2_based_proxy_new()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>res</code></em> :</span></p></td>
<td>The <a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a> obtained from the <a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> passed to <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-proxy-new" title="goa_oauth2_based_proxy_new ()"><code class="function">goa_oauth2_based_proxy_new()</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>Return location for error or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The constructed proxy object or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>error</code></em> is set. <span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>][<a href="http://foldoc.org/type"><span class="acronym">type</span></a> GoaOAuth2BasedProxy]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goa-oauth2-based-proxy-new-sync"></a><h3>goa_oauth2_based_proxy_new_sync ()</h3>
<pre class="programlisting"><a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="returnvalue">GoaOAuth2Based</span></a> * goa_oauth2_based_proxy_new_sync (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GDBusConnection.html"><span class="type">GDBusConnection</span></a> *connection</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GDBusProxy.html#GDBusProxyFlags"><span class="type">GDBusProxyFlags</span></a> flags</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *object_path</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Synchronously creates a proxy for the D-Bus interface <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuth2Based.html#gdbus-interface-org-gnome-OnlineAccounts-OAuth2Based.top_of_page">org.gnome.OnlineAccounts.OAuth2Based</a>. See <a href="/usr/share/gtk-doc/html/gio/GDBusProxy.html#g-dbus-proxy-new-sync"><code class="function">g_dbus_proxy_new_sync()</code></a> for more details.
</p>
<p>
The calling thread is blocked until a reply is received.
</p>
<p>
See <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-proxy-new" title="goa_oauth2_based_proxy_new ()"><code class="function">goa_oauth2_based_proxy_new()</code></a> for the asynchronous version of this constructor.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>connection</code></em> :</span></p></td>
<td>A <a href="/usr/share/gtk-doc/html/gio/GDBusConnection.html"><span class="type">GDBusConnection</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
<td>Flags from the <a href="/usr/share/gtk-doc/html/gio/GDBusProxy.html#GDBusProxyFlags"><span class="type">GDBusProxyFlags</span></a> enumeration.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>A bus name (well-known or unique) or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>connection</code></em> is not a message bus connection. <span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>object_path</code></em> :</span></p></td>
<td>An object path.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
<td>A <a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>Return location for error or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The constructed proxy object or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>error</code></em> is set. <span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>][<a href="http://foldoc.org/type"><span class="acronym">type</span></a> GoaOAuth2BasedProxy]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goa-oauth2-based-proxy-new-for-bus"></a><h3>goa_oauth2_based_proxy_new_for_bus ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> goa_oauth2_based_proxy_new_for_bus (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GDBusConnection.html#GBusType"><span class="type">GBusType</span></a> bus_type</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GDBusProxy.html#GDBusProxyFlags"><span class="type">GDBusProxyFlags</span></a> flags</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *object_path</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
<p>
Like <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-proxy-new" title="goa_oauth2_based_proxy_new ()"><code class="function">goa_oauth2_based_proxy_new()</code></a> but takes a <a href="/usr/share/gtk-doc/html/gio/GDBusConnection.html#GBusType"><span class="type">GBusType</span></a> instead of a <a href="/usr/share/gtk-doc/html/gio/GDBusConnection.html"><span class="type">GDBusConnection</span></a>.
</p>
<p>
When the operation is finished, <em class="parameter"><code>callback</code></em> will be invoked in the <a href="/usr/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html#g-main-context-push-thread-default">thread-default main loop</a> of the thread you are calling this method from.
You can then call <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-proxy-new-for-bus-finish" title="goa_oauth2_based_proxy_new_for_bus_finish ()"><code class="function">goa_oauth2_based_proxy_new_for_bus_finish()</code></a> to get the result of the operation.
</p>
<p>
See <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-proxy-new-for-bus-sync" title="goa_oauth2_based_proxy_new_for_bus_sync ()"><code class="function">goa_oauth2_based_proxy_new_for_bus_sync()</code></a> for the synchronous, blocking version of this constructor.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bus_type</code></em> :</span></p></td>
<td>A <a href="/usr/share/gtk-doc/html/gio/GDBusConnection.html#GBusType"><span class="type">GBusType</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
<td>Flags from the <a href="/usr/share/gtk-doc/html/gio/GDBusProxy.html#GDBusProxyFlags"><span class="type">GDBusProxyFlags</span></a> enumeration.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>A bus name (well-known or unique).</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>object_path</code></em> :</span></p></td>
<td>An object path.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
<td>A <a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
<td>A <a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> to call when the request is satisfied.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>User data to pass to <em class="parameter"><code>callback</code></em>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goa-oauth2-based-proxy-new-for-bus-finish"></a><h3>goa_oauth2_based_proxy_new_for_bus_finish ()</h3>
<pre class="programlisting"><a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="returnvalue">GoaOAuth2Based</span></a> * goa_oauth2_based_proxy_new_for_bus_finish
(<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Finishes an operation started with <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-proxy-new-for-bus" title="goa_oauth2_based_proxy_new_for_bus ()"><code class="function">goa_oauth2_based_proxy_new_for_bus()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>res</code></em> :</span></p></td>
<td>The <a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a> obtained from the <a href="/usr/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> passed to <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-proxy-new-for-bus" title="goa_oauth2_based_proxy_new_for_bus ()"><code class="function">goa_oauth2_based_proxy_new_for_bus()</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>Return location for error or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The constructed proxy object or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>error</code></em> is set. <span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>][<a href="http://foldoc.org/type"><span class="acronym">type</span></a> GoaOAuth2BasedProxy]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goa-oauth2-based-proxy-new-for-bus-sync"></a><h3>goa_oauth2_based_proxy_new_for_bus_sync ()</h3>
<pre class="programlisting"><a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="returnvalue">GoaOAuth2Based</span></a> * goa_oauth2_based_proxy_new_for_bus_sync
(<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GDBusConnection.html#GBusType"><span class="type">GBusType</span></a> bus_type</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GDBusProxy.html#GDBusProxyFlags"><span class="type">GDBusProxyFlags</span></a> flags</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *object_path</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Like <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-proxy-new-sync" title="goa_oauth2_based_proxy_new_sync ()"><code class="function">goa_oauth2_based_proxy_new_sync()</code></a> but takes a <a href="/usr/share/gtk-doc/html/gio/GDBusConnection.html#GBusType"><span class="type">GBusType</span></a> instead of a <a href="/usr/share/gtk-doc/html/gio/GDBusConnection.html"><span class="type">GDBusConnection</span></a>.
</p>
<p>
The calling thread is blocked until a reply is received.
</p>
<p>
See <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-proxy-new-for-bus" title="goa_oauth2_based_proxy_new_for_bus ()"><code class="function">goa_oauth2_based_proxy_new_for_bus()</code></a> for the asynchronous version of this constructor.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bus_type</code></em> :</span></p></td>
<td>A <a href="/usr/share/gtk-doc/html/gio/GDBusConnection.html#GBusType"><span class="type">GBusType</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
<td>Flags from the <a href="/usr/share/gtk-doc/html/gio/GDBusProxy.html#GDBusProxyFlags"><span class="type">GDBusProxyFlags</span></a> enumeration.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>A bus name (well-known or unique).</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>object_path</code></em> :</span></p></td>
<td>An object path.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
<td>A <a href="/usr/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>Return location for error or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The constructed proxy object or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>error</code></em> is set. <span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>][<a href="http://foldoc.org/type"><span class="acronym">type</span></a> GoaOAuth2BasedProxy]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GoaOAuth2BasedSkeleton"></a><h3>struct GoaOAuth2BasedSkeleton</h3>
<pre class="programlisting">struct GoaOAuth2BasedSkeleton {
};
</pre>
<p>
The <a class="link" href="GoaOAuth2Based.html#GoaOAuth2BasedSkeleton" title="struct GoaOAuth2BasedSkeleton"><span class="type">GoaOAuth2BasedSkeleton</span></a> structure contains only private data and should only be accessed using the provided API.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GoaOAuth2BasedSkeletonClass"></a><h3>struct GoaOAuth2BasedSkeletonClass</h3>
<pre class="programlisting">struct GoaOAuth2BasedSkeletonClass {
GDBusInterfaceSkeletonClass parent_class;
};
</pre>
<p>
Class structure for <a class="link" href="GoaOAuth2Based.html#GoaOAuth2BasedSkeleton" title="struct GoaOAuth2BasedSkeleton"><span class="type">GoaOAuth2BasedSkeleton</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><a href="/usr/share/gtk-doc/html/gio/GDBusInterfaceSkeleton.html#GDBusInterfaceSkeletonClass"><span class="type">GDBusInterfaceSkeletonClass</span></a> <em class="structfield"><code><a name="GoaOAuth2BasedSkeletonClass.parent-class"></a>parent_class</code></em>;</span></p></td>
<td>The parent class.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="goa-oauth2-based-skeleton-new"></a><h3>goa_oauth2_based_skeleton_new ()</h3>
<pre class="programlisting"><a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="returnvalue">GoaOAuth2Based</span></a> * goa_oauth2_based_skeleton_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Creates a skeleton object for the D-Bus interface <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuth2Based.html#gdbus-interface-org-gnome-OnlineAccounts-OAuth2Based.top_of_page">org.gnome.OnlineAccounts.OAuth2Based</a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The skeleton object. <span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>][<a href="http://foldoc.org/type"><span class="acronym">type</span></a> GoaOAuth2BasedSkeleton]</span>
</td>
</tr></tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="GoaOAuth2Based.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="GoaOAuth2Based--client-id"></a><h3>The <code class="literal">"client-id"</code> property</h3>
<pre class="programlisting"> "client-id" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write</pre>
<p>
Represents the D-Bus property <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuth2Based.html#gdbus-property-org-gnome-OnlineAccounts-OAuth2Based.ClientId" title='The "ClientId" property'>"ClientId"</a>.
</p>
<p>
Since the D-Bus property for this <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2">
<a name="GoaOAuth2Based--client-secret"></a><h3>The <code class="literal">"client-secret"</code> property</h3>
<pre class="programlisting"> "client-secret" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write</pre>
<p>
Represents the D-Bus property <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuth2Based.html#gdbus-property-org-gnome-OnlineAccounts-OAuth2Based.ClientSecret" title='The "ClientSecret" property'>"ClientSecret"</a>.
</p>
<p>
Since the D-Bus property for this <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
</p>
<p>Default value: NULL</p>
</div>
</div>
<div class="refsect1">
<a name="GoaOAuth2Based.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2">
<a name="GoaOAuth2Based-handle-get-access-token"></a><h3>The <code class="literal">"handle-get-access-token"</code> signal</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> user_function (<a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="type">GoaOAuth2Based</span></a> *object,
<a href="/usr/share/gtk-doc/html/gio/GDBusMethodInvocation.html"><span class="type">GDBusMethodInvocation</span></a> *invocation,
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
<p>
Signal emitted when a remote caller is invoking the <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuth2Based.html#gdbus-method-org-gnome-OnlineAccounts-OAuth2Based.GetAccessToken" title="The GetAccessToken() method"><code class="function">GetAccessToken()</code></a> D-Bus method.
</p>
<p>
If a signal handler returns <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, it means the signal handler will handle the invocation (e.g. take a reference to <em class="parameter"><code>invocation</code></em> and eventually call <a class="link" href="GoaOAuth2Based.html#goa-oauth2-based-complete-get-access-token" title="goa_oauth2_based_complete_get_access_token ()"><code class="function">goa_oauth2_based_complete_get_access_token()</code></a> or e.g. <a href="/usr/share/gtk-doc/html/gio/GDBusMethodInvocation.html#g-dbus-method-invocation-return-error"><code class="function">g_dbus_method_invocation_return_error()</code></a> on it) and no order signal handlers will run. If no signal handler handles the invocation, the <a href="/usr/share/gtk-doc/html/gio/gio-GDBusError.html#G-DBUS-ERROR-UNKNOWN-METHOD:CAPS"><code class="literal">G_DBUS_ERROR_UNKNOWN_METHOD</code></a> error is returned.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
<td>A <a class="link" href="GoaOAuth2Based.html" title="GoaOAuth2Based"><span class="type">GoaOAuth2Based</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>invocation</code></em> :</span></p></td>
<td>A <a href="/usr/share/gtk-doc/html/gio/GDBusMethodInvocation.html"><span class="type">GDBusMethodInvocation</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the invocation was handled, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> to let other signal handlers run.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.18</div>
</body>
</html>
|