/usr/share/gir-1.0/EDataServerUI-1.2.gir is in libedataserverui1.2-dev 3.28.1-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 | <?xml version="1.0"?>
<!-- This file was automatically generated from C sources - DO NOT EDIT!
To affect the contents of this file, edit the original C definitions,
and/or use gtk-doc annotations. -->
<repository version="1.2"
xmlns="http://www.gtk.org/introspection/core/1.0"
xmlns:c="http://www.gtk.org/introspection/c/1.0"
xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
<include name="Camel" version="1.2"/>
<include name="EDataServer" version="1.2"/>
<include name="GObject" version="2.0"/>
<include name="Gio" version="2.0"/>
<include name="Gtk" version="3.0"/>
<include name="Soup" version="2.4"/>
<package name="libedataserverui-1.2"/>
<c:include name="libedataserverui/libedataserverui.h"/>
<namespace name="EDataServerUI"
version="1.2"
shared-library="libcamel-1.2.so.61,libedataserver-1.2.so.23,libedataserverui-1.2.so.2"
c:identifier-prefixes="E"
c:symbol-prefixes="e">
<class name="CellRendererColor"
c:symbol-prefix="cell_renderer_color"
c:type="ECellRendererColor"
version="2.22"
parent="Gtk.CellRenderer"
glib:type-name="ECellRendererColor"
glib:get-type="e_cell_renderer_color_get_type"
glib:type-struct="CellRendererColorClass">
<constructor name="new"
c:identifier="e_cell_renderer_color_new"
version="2.22">
<return-value transfer-ownership="none">
<type name="Gtk.CellRenderer" c:type="GtkCellRenderer*"/>
</return-value>
</constructor>
<property name="rgba" writable="1" transfer-ownership="none">
<type name="Gdk.RGBA"/>
</property>
<field name="parent">
<type name="Gtk.CellRenderer" c:type="GtkCellRenderer"/>
</field>
<field name="priv">
<type name="CellRendererColorPrivate"
c:type="ECellRendererColorPrivate*"/>
</field>
</class>
<record name="CellRendererColorClass"
c:type="ECellRendererColorClass"
glib:is-gtype-struct-for="CellRendererColor">
<field name="parent_class">
<type name="Gtk.CellRendererClass" c:type="GtkCellRendererClass"/>
</field>
<field name="_gtk_reserved1" introspectable="0">
<callback name="_gtk_reserved1">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="_gtk_reserved2" introspectable="0">
<callback name="_gtk_reserved2">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="_gtk_reserved3" introspectable="0">
<callback name="_gtk_reserved3">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="_gtk_reserved4" introspectable="0">
<callback name="_gtk_reserved4">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
</record>
<record name="CellRendererColorPrivate"
c:type="ECellRendererColorPrivate"
disguised="1">
</record>
<class name="CredentialsPrompter"
c:symbol-prefix="credentials_prompter"
c:type="ECredentialsPrompter"
version="3.16"
parent="GObject.Object"
glib:type-name="ECredentialsPrompter"
glib:get-type="e_credentials_prompter_get_type"
glib:type-struct="CredentialsPrompterClass">
<doc xml:space="preserve">Contains only private data that should be read and manipulated using the
functions below.</doc>
<implements name="EDataServer.Extensible"/>
<constructor name="new"
c:identifier="e_credentials_prompter_new"
version="3.16">
<doc xml:space="preserve">Creates a new #ECredentialsPrompter, which listens for credential requests
from @registry.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new #ECredentialsPrompter</doc>
<type name="CredentialsPrompter" c:type="ECredentialsPrompter*"/>
</return-value>
<parameters>
<parameter name="registry" transfer-ownership="none">
<doc xml:space="preserve">an #ESourceRegistry to have the prompter listen to</doc>
<type name="EDataServer.SourceRegistry" c:type="ESourceRegistry*"/>
</parameter>
</parameters>
</constructor>
<virtual-method name="get_dialog_parent"
invoker="get_dialog_parent"
version="3.16">
<doc xml:space="preserve">Returns a #GtkWindow, which should be used as a dialog parent. This is determined
by an ECredentialsPrompter::get-dialog-parent signal emission. If there is no callback
registered or the current callbacks don't have any suitable window, then there's
chosen the last active window from the default GApplication, if any available.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">a #GtkWindow, to be used as a dialog parent, or %NULL.</doc>
<type name="Gtk.Window" c:type="GtkWindow*"/>
</return-value>
<parameters>
<instance-parameter name="prompter" transfer-ownership="none">
<doc xml:space="preserve">an #ECredentialsPrompter</doc>
<type name="CredentialsPrompter" c:type="ECredentialsPrompter*"/>
</instance-parameter>
</parameters>
</virtual-method>
<method name="complete_prompt_call"
c:identifier="e_credentials_prompter_complete_prompt_call"
version="3.16">
<doc xml:space="preserve">Completes an ongoing credentials prompt on idle, by finishing the @async_result.
This function is meant to be used by an #ECredentialsPrompterImpl implementation.
To actually finish the credentials prompt previously started with
e_credentials_prompter_prompt(), the e_credentials_prompter_prompt_finish() should
be called from the provided callback.
Using %NULL @credentials will result in a G_IO_ERROR_CANCELLED error, if
no other @error is provided.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="prompter" transfer-ownership="none">
<doc xml:space="preserve">an #ECredentialsPrompter</doc>
<type name="CredentialsPrompter" c:type="ECredentialsPrompter*"/>
</instance-parameter>
<parameter name="async_result" transfer-ownership="none">
<doc xml:space="preserve">a #GSimpleAsyncResult</doc>
<type name="Gio.SimpleAsyncResult" c:type="GSimpleAsyncResult*"/>
</parameter>
<parameter name="source" transfer-ownership="none">
<doc xml:space="preserve">an #ESource, on which the prompt was started</doc>
<type name="EDataServer.Source" c:type="ESource*"/>
</parameter>
<parameter name="credentials"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">credentials, as provided by a user, on %NULL, when the prompt was cancelled</doc>
<type name="EDataServer.NamedParameters"
c:type="const ENamedParameters*"/>
</parameter>
<parameter name="error"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">a resulting #GError, or %NULL</doc>
<type name="GLib.Error" c:type="const GError*"/>
</parameter>
</parameters>
</method>
<method name="get_auto_prompt"
c:identifier="e_credentials_prompter_get_auto_prompt"
version="3.16">
<doc xml:space="preserve">Returns, whether can respond to credential prompts automatically.
Default value is %TRUE.
This property does not influence direct calls of e_credentials_prompter_prompt().</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">Whether can respond to credential prompts automatically.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="prompter" transfer-ownership="none">
<doc xml:space="preserve">an #ECredentialsPrompter</doc>
<type name="CredentialsPrompter" c:type="ECredentialsPrompter*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_auto_prompt_disabled_for"
c:identifier="e_credentials_prompter_get_auto_prompt_disabled_for"
version="3.16">
<doc xml:space="preserve">Returns whether the auto-prompt is disabled for the given @source.
All sources can be auto-prompted by default. This is a complementary
value for the ECredentialsPrompter::auto-prompt property.
This value does not influence direct calls of e_credentials_prompter_prompt().</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">Whether the auto-prompt is disabled for the given @source</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="prompter" transfer-ownership="none">
<doc xml:space="preserve">an #ECredentialsPrompter</doc>
<type name="CredentialsPrompter" c:type="ECredentialsPrompter*"/>
</instance-parameter>
<parameter name="source" transfer-ownership="none">
<doc xml:space="preserve">an #ESource</doc>
<type name="EDataServer.Source" c:type="ESource*"/>
</parameter>
</parameters>
</method>
<method name="get_dialog_parent"
c:identifier="e_credentials_prompter_get_dialog_parent"
version="3.16">
<doc xml:space="preserve">Returns a #GtkWindow, which should be used as a dialog parent. This is determined
by an ECredentialsPrompter::get-dialog-parent signal emission. If there is no callback
registered or the current callbacks don't have any suitable window, then there's
chosen the last active window from the default GApplication, if any available.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">a #GtkWindow, to be used as a dialog parent, or %NULL.</doc>
<type name="Gtk.Window" c:type="GtkWindow*"/>
</return-value>
<parameters>
<instance-parameter name="prompter" transfer-ownership="none">
<doc xml:space="preserve">an #ECredentialsPrompter</doc>
<type name="CredentialsPrompter" c:type="ECredentialsPrompter*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_provider"
c:identifier="e_credentials_prompter_get_provider"
version="3.16">
<doc xml:space="preserve">Returns an #ESourceCredentialsProvider, which the @prompter uses.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">an #ESourceCredentialsProvider, which the @prompter uses.</doc>
<type name="EDataServer.SourceCredentialsProvider"
c:type="ESourceCredentialsProvider*"/>
</return-value>
<parameters>
<instance-parameter name="prompter" transfer-ownership="none">
<doc xml:space="preserve">an #ECredentialsPrompter</doc>
<type name="CredentialsPrompter" c:type="ECredentialsPrompter*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_registry"
c:identifier="e_credentials_prompter_get_registry"
version="3.16">
<doc xml:space="preserve">Returns an #ESourceRegistry, to which the @prompter listens.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">an #ESourceRegistry, to which the @prompter listens.</doc>
<type name="EDataServer.SourceRegistry" c:type="ESourceRegistry*"/>
</return-value>
<parameters>
<instance-parameter name="prompter" transfer-ownership="none">
<doc xml:space="preserve">an #ECredentialsPrompter</doc>
<type name="CredentialsPrompter" c:type="ECredentialsPrompter*"/>
</instance-parameter>
</parameters>
</method>
<method name="loop_prompt_sync"
c:identifier="e_credentials_prompter_loop_prompt_sync"
version="3.16"
throws="1">
<doc xml:space="preserve">Runs a credentials prompt loop for @source, as long as the @func doesn't
indicate that the provided credentials can be used to successfully
authenticate against @source<!-- -->'s server, or that the @func
returns %FALSE. The loop is also teminated when a used cancels
the credentials prompt or the @cancellable is cancelled, though
not sooner than the credentials prompt dialog is closed.
Note: The function doesn't return until the loop is terminated, either
successfully or unsuccessfully. The function can be called from any
thread, though a dedicated thread is preferred.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE, when the credentials were provided sucessfully and they
can be used to authenticate the @source; %FALSE otherwise.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="prompter" transfer-ownership="none">
<doc xml:space="preserve">an #ECredentialsPrompter</doc>
<type name="CredentialsPrompter" c:type="ECredentialsPrompter*"/>
</instance-parameter>
<parameter name="source" transfer-ownership="none">
<doc xml:space="preserve">an #ESource to be prompted credentials for</doc>
<type name="EDataServer.Source" c:type="ESource*"/>
</parameter>
<parameter name="flags" transfer-ownership="none">
<doc xml:space="preserve">a bit-or of #ECredentialsPrompterPromptFlags initial flags</doc>
<type name="CredentialsPrompterPromptFlags"
c:type="ECredentialsPrompterPromptFlags"/>
</parameter>
<parameter name="func"
transfer-ownership="none"
scope="call"
closure="3">
<doc xml:space="preserve">an #ECredentialsPrompterLoopPromptFunc user function to call to check provided credentials</doc>
<type name="CredentialsPrompterLoopPromptFunc"
c:type="ECredentialsPrompterLoopPromptFunc"/>
</parameter>
<parameter name="user_data"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">user data to pass to @func</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
<parameter name="cancellable"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">an optional #GCancellable, or %NULL</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
</method>
<method name="process_awaiting_credentials"
c:identifier="e_credentials_prompter_process_awaiting_credentials"
version="3.16">
<doc xml:space="preserve">Process all enabled sources with connection state #E_SOURCE_CONNECTION_STATUS_AWAITING_CREDENTIALS,
like if they just asked for its credentials for the first time.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="prompter" transfer-ownership="none">
<doc xml:space="preserve">an #ECredentialsPrompter</doc>
<type name="CredentialsPrompter" c:type="ECredentialsPrompter*"/>
</instance-parameter>
</parameters>
</method>
<method name="process_source"
c:identifier="e_credentials_prompter_process_source"
version="3.16">
<doc xml:space="preserve">Continues a credential prompt for @source. Returns, whether anything wil be done.
The %FALSE either means that the @source<!-- -->'s connection status is not
the %E_SOURCE_CONNECTION_STATUS_AWAITING_CREDENTIALS.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">Whether continues with the credentials prompt.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="prompter" transfer-ownership="none">
<doc xml:space="preserve">an #ECredentialsPrompter</doc>
<type name="CredentialsPrompter" c:type="ECredentialsPrompter*"/>
</instance-parameter>
<parameter name="source" transfer-ownership="none">
<doc xml:space="preserve">an #ESource</doc>
<type name="EDataServer.Source" c:type="ESource*"/>
</parameter>
</parameters>
</method>
<method name="prompt"
c:identifier="e_credentials_prompter_prompt"
version="3.16">
<doc xml:space="preserve">Asks the @prompter to prompt for credentials, which are returned
to the caller through @callback, when available.The @flags are ignored,
when the @callback is %NULL; the credentials are passed to the @source
with e_source_invoke_authenticate() directly, in this case.
Call e_credentials_prompter_prompt_finish() in @callback to get to
the provided credentials.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="prompter" transfer-ownership="none">
<doc xml:space="preserve">an #ECredentialsPrompter</doc>
<type name="CredentialsPrompter" c:type="ECredentialsPrompter*"/>
</instance-parameter>
<parameter name="source" transfer-ownership="none">
<doc xml:space="preserve">an #ESource, which prompt the credentials for</doc>
<type name="EDataServer.Source" c:type="ESource*"/>
</parameter>
<parameter name="error_text"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">Additional error text to show to a user, or %NULL</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="flags" transfer-ownership="none">
<doc xml:space="preserve">a bit-or of #ECredentialsPrompterPromptFlags</doc>
<type name="CredentialsPrompterPromptFlags"
c:type="ECredentialsPrompterPromptFlags"/>
</parameter>
<parameter name="callback"
transfer-ownership="none"
nullable="1"
allow-none="1"
scope="async"
closure="4">
<doc xml:space="preserve">a callback to call when the credentials are ready, or %NULL</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">user data passed into @callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</method>
<method name="prompt_finish"
c:identifier="e_credentials_prompter_prompt_finish"
version="3.16"
throws="1">
<doc xml:space="preserve">Finishes a credentials prompt previously started with e_credentials_prompter_prompt().
The @out_source will have set a referenced #ESource, for which the prompt
was started. Unref it, when no longer needed. Similarly the @out_credentials
will have set a newly allocated #ENamedParameters structure with provided credentials,
which should be freed with e_named_credentials_free() when no longer needed.
Both output arguments will be set to %NULL on error and %FALSE will be returned.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success, %FALSE otherwise.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="prompter" transfer-ownership="none">
<doc xml:space="preserve">an #ECredentialsPrompter</doc>
<type name="CredentialsPrompter" c:type="ECredentialsPrompter*"/>
</instance-parameter>
<parameter name="result" transfer-ownership="none">
<doc xml:space="preserve">a #GAsyncResult</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
<parameter name="out_source" transfer-ownership="full">
<doc xml:space="preserve">(allow-none): optionally set to an #ESource, on which the prompt was started; can be %NULL</doc>
<type name="EDataServer.Source" c:type="ESource**"/>
</parameter>
<parameter name="out_credentials" transfer-ownership="full">
<doc xml:space="preserve">set to an #ENamedParameters with provied credentials</doc>
<type name="EDataServer.NamedParameters"
c:type="ENamedParameters**"/>
</parameter>
</parameters>
</method>
<method name="register_impl"
c:identifier="e_credentials_prompter_register_impl"
version="3.16">
<doc xml:space="preserve">Registers a prompter implementation for a given authentication method. If there is
registered a prompter for the same @authentication_method, then the function does
nothing, otherwise it adds its own reference on the @prompter_impl, and uses it
for that authentication method. One @prompter_impl can be registered for multiple
authentication methods.
A special value %NULL can be used for the @authentication_method, which means
a default credentials prompter, that is to be used when there is no prompter
registered for the exact authentication method.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success, %FALSE on failure or when there was another prompter
implementation registered for the given authentication method.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="prompter" transfer-ownership="none">
<doc xml:space="preserve">an #ECredentialsPrompter</doc>
<type name="CredentialsPrompter" c:type="ECredentialsPrompter*"/>
</instance-parameter>
<parameter name="authentication_method"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">an authentication method to registr @prompter_impl for; or %NULL</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="prompter_impl" transfer-ownership="none">
<doc xml:space="preserve">an #ECredentialsPrompterImpl</doc>
<type name="CredentialsPrompterImpl"
c:type="ECredentialsPrompterImpl*"/>
</parameter>
</parameters>
</method>
<method name="set_auto_prompt"
c:identifier="e_credentials_prompter_set_auto_prompt"
version="3.16">
<doc xml:space="preserve">Sets whether can respond to credential prompts automatically. That means that
whenever any ESource will ask for credentials, it'll try to provide them.
Use e_credentials_prompter_set_auto_prompt_disabled_for() to influence
auto-prompt per an #ESource.
This property does not influence direct calls of e_credentials_prompter_prompt().</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="prompter" transfer-ownership="none">
<doc xml:space="preserve">an #ECredentialsPrompter</doc>
<type name="CredentialsPrompter" c:type="ECredentialsPrompter*"/>
</instance-parameter>
<parameter name="auto_prompt" transfer-ownership="none">
<doc xml:space="preserve">new value of the auto-prompt property</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</method>
<method name="set_auto_prompt_disabled_for"
c:identifier="e_credentials_prompter_set_auto_prompt_disabled_for"
version="3.16">
<doc xml:space="preserve">Sets whether the auto-prompt should be disabled for the given @source.
All sources can be auto-prompted by default. This is a complementary
value for the ECredentialsPrompter::auto-prompt property.
This value does not influence direct calls of e_credentials_prompter_prompt().</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="prompter" transfer-ownership="none">
<doc xml:space="preserve">an #ECredentialsPrompter</doc>
<type name="CredentialsPrompter" c:type="ECredentialsPrompter*"/>
</instance-parameter>
<parameter name="source" transfer-ownership="none">
<doc xml:space="preserve">an #ESource</doc>
<type name="EDataServer.Source" c:type="ESource*"/>
</parameter>
<parameter name="is_disabled" transfer-ownership="none">
<doc xml:space="preserve">whether the auto-prompt should be disabled for this @source</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</method>
<method name="unregister_impl"
c:identifier="e_credentials_prompter_unregister_impl"
version="3.16">
<doc xml:space="preserve">Unregisters previously registered @prompter_impl for the given @autnetication_method with
e_credentials_prompter_register_impl(). Function does nothing, if no such authentication
method is registered or if it has set a different prompter implementation.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="prompter" transfer-ownership="none">
<doc xml:space="preserve">an #ECredentialsPrompter</doc>
<type name="CredentialsPrompter" c:type="ECredentialsPrompter*"/>
</instance-parameter>
<parameter name="authentication_method"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">an authentication method to registr @prompter_impl for; or %NULL</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="prompter_impl" transfer-ownership="none">
<doc xml:space="preserve">an #ECredentialsPrompterImpl</doc>
<type name="CredentialsPrompterImpl"
c:type="ECredentialsPrompterImpl*"/>
</parameter>
</parameters>
</method>
<property name="auto-prompt"
version="3.16"
writable="1"
construct="1"
transfer-ownership="none">
<doc xml:space="preserve">Whether the #ECredentialsPrompter can response to credential
requests automatically.</doc>
<type name="gboolean" c:type="gboolean"/>
</property>
<property name="provider" version="3.16" transfer-ownership="none">
<doc xml:space="preserve">The #ESourceCredentialsProvider object, which the prompter uses.</doc>
<type name="EDataServer.SourceCredentialsProvider"/>
</property>
<property name="registry"
version="3.16"
writable="1"
construct-only="1"
transfer-ownership="none">
<doc xml:space="preserve">The #ESourceRegistry object, to whose credential requests the prompter listens.</doc>
<type name="EDataServer.SourceRegistry"/>
</property>
<field name="parent">
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="priv">
<type name="CredentialsPrompterPrivate"
c:type="ECredentialsPrompterPrivate*"/>
</field>
<glib:signal name="get-dialog-parent" when="last" version="3.16">
<doc xml:space="preserve">Emitted when a new dialog will be shown, to get the right parent
window for it. If the result of the call is %NULL, then it tries
to get the window from the default GtkApplication.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">a #GtkWindow, to be used as a dialog parent,
or %NULL.</doc>
<type name="Gtk.Window"/>
</return-value>
</glib:signal>
</class>
<record name="CredentialsPrompterClass"
c:type="ECredentialsPrompterClass"
glib:is-gtype-struct-for="CredentialsPrompter">
<field name="parent_class">
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
<field name="get_dialog_parent">
<callback name="get_dialog_parent">
<return-value transfer-ownership="none">
<doc xml:space="preserve">a #GtkWindow, to be used as a dialog parent, or %NULL.</doc>
<type name="Gtk.Window" c:type="GtkWindow*"/>
</return-value>
<parameters>
<parameter name="prompter" transfer-ownership="none">
<doc xml:space="preserve">an #ECredentialsPrompter</doc>
<type name="CredentialsPrompter" c:type="ECredentialsPrompter*"/>
</parameter>
</parameters>
</callback>
</field>
</record>
<class name="CredentialsPrompterImpl"
c:symbol-prefix="credentials_prompter_impl"
c:type="ECredentialsPrompterImpl"
version="3.16"
parent="EDataServer.Extension"
abstract="1"
glib:type-name="ECredentialsPrompterImpl"
glib:get-type="e_credentials_prompter_impl_get_type"
glib:type-struct="CredentialsPrompterImplClass">
<doc xml:space="preserve">Credentials prompter implementation base structure. The descendants
implement ECredentialsPrompterImpl::prompt(), which is used to
prompt for credentials. The descendants are automatically registered
into an #ECredentialsPrompter.</doc>
<virtual-method name="cancel_prompt"
invoker="cancel_prompt"
version="3.16">
<doc xml:space="preserve">Asks the @prompt_impl to cancel current prompt, which should have ID @prompt_id.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="prompter_impl" transfer-ownership="none">
<doc xml:space="preserve">an #ECredentialsPrompterImpl</doc>
<type name="CredentialsPrompterImpl"
c:type="ECredentialsPrompterImpl*"/>
</instance-parameter>
<parameter name="prompt_id"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">a prompt ID to cancel</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="process_prompt">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="prompter_impl" transfer-ownership="none">
<type name="CredentialsPrompterImpl"
c:type="ECredentialsPrompterImpl*"/>
</instance-parameter>
<parameter name="prompt_id"
transfer-ownership="none"
nullable="1"
allow-none="1">
<type name="gpointer" c:type="gpointer"/>
</parameter>
<parameter name="auth_source" transfer-ownership="none">
<type name="EDataServer.Source" c:type="ESource*"/>
</parameter>
<parameter name="cred_source" transfer-ownership="none">
<type name="EDataServer.Source" c:type="ESource*"/>
</parameter>
<parameter name="error_text" transfer-ownership="none">
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="credentials" transfer-ownership="none">
<type name="EDataServer.NamedParameters"
c:type="const ENamedParameters*"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="prompt_finished">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="prompter_impl" transfer-ownership="none">
<type name="CredentialsPrompterImpl"
c:type="ECredentialsPrompterImpl*"/>
</instance-parameter>
<parameter name="prompt_id"
transfer-ownership="none"
nullable="1"
allow-none="1">
<type name="gpointer" c:type="gpointer"/>
</parameter>
<parameter name="credentials" transfer-ownership="none">
<type name="EDataServer.NamedParameters"
c:type="const ENamedParameters*"/>
</parameter>
</parameters>
</virtual-method>
<method name="cancel_prompt"
c:identifier="e_credentials_prompter_impl_cancel_prompt"
version="3.16">
<doc xml:space="preserve">Asks the @prompt_impl to cancel current prompt, which should have ID @prompt_id.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="prompter_impl" transfer-ownership="none">
<doc xml:space="preserve">an #ECredentialsPrompterImpl</doc>
<type name="CredentialsPrompterImpl"
c:type="ECredentialsPrompterImpl*"/>
</instance-parameter>
<parameter name="prompt_id"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">a prompt ID to cancel</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</method>
<method name="get_credentials_prompter"
c:identifier="e_credentials_prompter_impl_get_credentials_prompter"
version="3.16">
<doc xml:space="preserve">Returns an #ECredentialsPrompter with which the @prompter_impl is associated.</doc>
<return-value transfer-ownership="none" nullable="1">
<doc xml:space="preserve">an #ECredentialsPrompter</doc>
<type name="gpointer" c:type="_ECredentialsPrompter*"/>
</return-value>
<parameters>
<instance-parameter name="prompter_impl" transfer-ownership="none">
<doc xml:space="preserve">an #ECredentialsPrompterImpl</doc>
<type name="CredentialsPrompterImpl"
c:type="ECredentialsPrompterImpl*"/>
</instance-parameter>
</parameters>
</method>
<method name="prompt"
c:identifier="e_credentials_prompter_impl_prompt"
version="3.16">
<doc xml:space="preserve">Runs a credentials prompt for the @prompter_impl. The actual prompter implementation
receives the prompt through ECredentialsPrompterImplClass::process_prompt(), where the given
@prompt_id is used for an identification. The prompt is left 'active' as long as it is
not finished with a call of e_credentials_prompter_impl_prompt_finish(). This should be
called even for cancelled prompts. The prompt can be cancelled before it's processed,
using the e_credentials_prompter_impl_cancel_prompt().
The @auth_source can be the same as @cred_source, in case the credentials
are stored only for that particular source. If the sources share credentials,
which can be a case when the @auth_source is part of a collection, then
the @cred_stource can be that collection source.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="prompter_impl" transfer-ownership="none">
<doc xml:space="preserve">an #ECredentialsPrompterImpl</doc>
<type name="CredentialsPrompterImpl"
c:type="ECredentialsPrompterImpl*"/>
</instance-parameter>
<parameter name="prompt_id"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">a prompt ID to be passed to e_credentials_prompter_impl_prompt_finish()</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
<parameter name="auth_source" transfer-ownership="none">
<doc xml:space="preserve">an #ESource, to prompt the credentials for (the source which asked for credentials)</doc>
<type name="EDataServer.Source" c:type="ESource*"/>
</parameter>
<parameter name="cred_source" transfer-ownership="none">
<doc xml:space="preserve">a parent #ESource, from which credentials were taken, or should be stored to</doc>
<type name="EDataServer.Source" c:type="ESource*"/>
</parameter>
<parameter name="error_text"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">an optional error text from the previous credentials prompt; can be %NULL</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="credentials" transfer-ownership="none">
<doc xml:space="preserve">credentials, as saved in keyring; can be empty, but not %NULL</doc>
<type name="EDataServer.NamedParameters"
c:type="const ENamedParameters*"/>
</parameter>
</parameters>
</method>
<method name="prompt_finish"
c:identifier="e_credentials_prompter_impl_prompt_finish"
version="3.16">
<doc xml:space="preserve">The actual credentials prompt implementation finishes a previously started
credentials prompt @prompt_id with ECredentialsPrompterImplClass::process_prompt()
by a call to this function. This function should be called regardless the prompt
was or was not cancelled with e_credentials_prompter_impl_cancel_prompt().
Once the prompt is finished another queued is started, if any pending exists.
Use %NULL @credentials for cancelled prompts, otherwise the credentials are used
for authentication of the associated #ESource.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="prompter_impl" transfer-ownership="none">
<doc xml:space="preserve">an #ECredentialsPrompterImpl</doc>
<type name="CredentialsPrompterImpl"
c:type="ECredentialsPrompterImpl*"/>
</instance-parameter>
<parameter name="prompt_id"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">a prompt ID</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
<parameter name="credentials"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">credentials to use; can be %NULL for cancelled prompts</doc>
<type name="EDataServer.NamedParameters"
c:type="const ENamedParameters*"/>
</parameter>
</parameters>
</method>
<field name="parent">
<type name="EDataServer.Extension" c:type="EExtension"/>
</field>
<field name="priv">
<type name="CredentialsPrompterImplPrivate"
c:type="ECredentialsPrompterImplPrivate*"/>
</field>
<glib:signal name="prompt-finished" when="last" version="3.16">
<doc xml:space="preserve">Emitted when a prompt of ID @prompt_id is finished.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="prompt_id"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">an ID of the prompt which was finished</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
<parameter name="credentials"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">entered credentials, or %NULL for cancelled prompts</doc>
<type name="EDataServer.NamedParameters"/>
</parameter>
</parameters>
</glib:signal>
</class>
<record name="CredentialsPrompterImplClass"
c:type="ECredentialsPrompterImplClass"
glib:is-gtype-struct-for="CredentialsPrompterImpl">
<field name="parent_class">
<type name="EDataServer.ExtensionClass" c:type="EExtensionClass"/>
</field>
<field name="authentication_methods">
<type name="utf8" c:type="const gchar* const*"/>
</field>
<field name="process_prompt">
<callback name="process_prompt">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="prompter_impl" transfer-ownership="none">
<type name="CredentialsPrompterImpl"
c:type="ECredentialsPrompterImpl*"/>
</parameter>
<parameter name="prompt_id"
transfer-ownership="none"
nullable="1"
allow-none="1">
<type name="gpointer" c:type="gpointer"/>
</parameter>
<parameter name="auth_source" transfer-ownership="none">
<type name="EDataServer.Source" c:type="ESource*"/>
</parameter>
<parameter name="cred_source" transfer-ownership="none">
<type name="EDataServer.Source" c:type="ESource*"/>
</parameter>
<parameter name="error_text" transfer-ownership="none">
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="credentials" transfer-ownership="none">
<type name="EDataServer.NamedParameters"
c:type="const ENamedParameters*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="cancel_prompt">
<callback name="cancel_prompt">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="prompter_impl" transfer-ownership="none">
<doc xml:space="preserve">an #ECredentialsPrompterImpl</doc>
<type name="CredentialsPrompterImpl"
c:type="ECredentialsPrompterImpl*"/>
</parameter>
<parameter name="prompt_id"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">a prompt ID to cancel</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</callback>
</field>
<field name="prompt_finished">
<callback name="prompt_finished">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="prompter_impl" transfer-ownership="none">
<type name="CredentialsPrompterImpl"
c:type="ECredentialsPrompterImpl*"/>
</parameter>
<parameter name="prompt_id"
transfer-ownership="none"
nullable="1"
allow-none="1">
<type name="gpointer" c:type="gpointer"/>
</parameter>
<parameter name="credentials" transfer-ownership="none">
<type name="EDataServer.NamedParameters"
c:type="const ENamedParameters*"/>
</parameter>
</parameters>
</callback>
</field>
</record>
<class name="CredentialsPrompterImplOAuth2"
c:symbol-prefix="credentials_prompter_impl_oauth2"
c:type="ECredentialsPrompterImplOAuth2"
version="3.28"
parent="CredentialsPrompterImpl"
glib:type-name="ECredentialsPrompterImplOAuth2"
glib:get-type="e_credentials_prompter_impl_oauth2_get_type"
glib:type-struct="CredentialsPrompterImplOAuth2Class">
<doc xml:space="preserve">Contains only private data that should be read and manipulated using the
functions below.</doc>
<constructor name="new"
c:identifier="e_credentials_prompter_impl_oauth2_new"
version="3.28">
<doc xml:space="preserve">Creates a new instance of an #ECredentialsPrompterImplOAuth2.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a newly created #ECredentialsPrompterImplOAuth2,
which should be freed with g_object_unref() when no longer needed.</doc>
<type name="CredentialsPrompterImpl"
c:type="ECredentialsPrompterImpl*"/>
</return-value>
</constructor>
<field name="parent">
<type name="CredentialsPrompterImpl"
c:type="ECredentialsPrompterImpl"/>
</field>
<field name="priv">
<type name="CredentialsPrompterImplOAuth2Private"
c:type="ECredentialsPrompterImplOAuth2Private*"/>
</field>
</class>
<record name="CredentialsPrompterImplOAuth2Class"
c:type="ECredentialsPrompterImplOAuth2Class"
glib:is-gtype-struct-for="CredentialsPrompterImplOAuth2">
<field name="parent_class">
<type name="CredentialsPrompterImplClass"
c:type="ECredentialsPrompterImplClass"/>
</field>
</record>
<record name="CredentialsPrompterImplOAuth2Private"
c:type="ECredentialsPrompterImplOAuth2Private"
disguised="1">
</record>
<class name="CredentialsPrompterImplPassword"
c:symbol-prefix="credentials_prompter_impl_password"
c:type="ECredentialsPrompterImplPassword"
version="3.16"
parent="CredentialsPrompterImpl"
glib:type-name="ECredentialsPrompterImplPassword"
glib:get-type="e_credentials_prompter_impl_password_get_type"
glib:type-struct="CredentialsPrompterImplPasswordClass">
<doc xml:space="preserve">Contains only private data that should be read and manipulated using the
functions below.</doc>
<constructor name="new"
c:identifier="e_credentials_prompter_impl_password_new"
version="3.16">
<doc xml:space="preserve">Creates a new instance of an #ECredentialsPrompterImplPassword.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a newly created #ECredentialsPrompterImplPassword,
which should be freed with g_object_unref() when no longer needed.</doc>
<type name="CredentialsPrompterImpl"
c:type="ECredentialsPrompterImpl*"/>
</return-value>
</constructor>
<field name="parent">
<type name="CredentialsPrompterImpl"
c:type="ECredentialsPrompterImpl"/>
</field>
<field name="priv">
<type name="CredentialsPrompterImplPasswordPrivate"
c:type="ECredentialsPrompterImplPasswordPrivate*"/>
</field>
</class>
<record name="CredentialsPrompterImplPasswordClass"
c:type="ECredentialsPrompterImplPasswordClass"
glib:is-gtype-struct-for="CredentialsPrompterImplPassword">
<field name="parent_class">
<type name="CredentialsPrompterImplClass"
c:type="ECredentialsPrompterImplClass"/>
</field>
</record>
<record name="CredentialsPrompterImplPasswordPrivate"
c:type="ECredentialsPrompterImplPasswordPrivate"
disguised="1">
</record>
<record name="CredentialsPrompterImplPrivate"
c:type="ECredentialsPrompterImplPrivate"
disguised="1">
</record>
<callback name="CredentialsPrompterLoopPromptFunc"
c:type="ECredentialsPrompterLoopPromptFunc"
throws="1">
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE to continue the loop (reprompt credentials), unless @authenticated is
also set to %TRUE, or %FALSE on error, as an indication that the loop should
be terminated.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="prompter" transfer-ownership="none">
<doc xml:space="preserve">an #ECredentialsPrompter</doc>
<type name="CredentialsPrompter" c:type="ECredentialsPrompter*"/>
</parameter>
<parameter name="source" transfer-ownership="none">
<doc xml:space="preserve">an #ESource, as passed to e_credentials_prompter_loop_prompt_sync()</doc>
<type name="EDataServer.Source" c:type="ESource*"/>
</parameter>
<parameter name="credentials" transfer-ownership="none">
<doc xml:space="preserve">an #ENamedParameters with provided credentials</doc>
<type name="EDataServer.NamedParameters"
c:type="const ENamedParameters*"/>
</parameter>
<parameter name="out_authenticated"
direction="out"
caller-allocates="0"
transfer-ownership="full">
<doc xml:space="preserve">set to %TRUE, when the authentication was successful</doc>
<type name="gboolean" c:type="gboolean*"/>
</parameter>
<parameter name="user_data"
transfer-ownership="none"
nullable="1"
allow-none="1"
closure="4">
<doc xml:space="preserve">user data, as passed to e_credentials_prompter_loop_prompt_sync()</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
<parameter name="cancellable"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">a #GCancellable, as passed to e_credentials_prompter_loop_prompt_sync()</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
</callback>
<record name="CredentialsPrompterPrivate"
c:type="ECredentialsPrompterPrivate"
disguised="1">
</record>
<bitfield name="CredentialsPrompterPromptFlags"
version="3.16"
c:type="ECredentialsPrompterPromptFlags">
<doc xml:space="preserve">An #ECredentialsPrompter prompt flags, influencing behaviour
of the e_credentials_prompter_prompt().</doc>
<member name="none"
value="0"
c:identifier="E_CREDENTIALS_PROMPTER_PROMPT_FLAG_NONE">
<doc xml:space="preserve">No flag is set.</doc>
</member>
<member name="allow_source_save"
value="1"
c:identifier="E_CREDENTIALS_PROMPTER_PROMPT_FLAG_ALLOW_SOURCE_SAVE">
<doc xml:space="preserve">If set, any source changes during the credentials prompts, like
the "remember-password" or user name changes, will be automatically
stored in the source (written on the disk).</doc>
</member>
<member name="allow_stored_credentials"
value="2"
c:identifier="E_CREDENTIALS_PROMPTER_PROMPT_FLAG_ALLOW_STORED_CREDENTIALS">
<doc xml:space="preserve">If set, the stored credentials will be returned first. If there are no
credentials saved, then the user will be asked. Any credentials
reprompt should not have set this flag.</doc>
</member>
</bitfield>
<function name="trust_prompt_describe_certificate_errors"
c:identifier="e_trust_prompt_describe_certificate_errors"
version="3.16">
<doc xml:space="preserve">Converts @flags into a localized text description of the set bits, one
bit description per line. If no bit is set, then an empty string is
returned.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">A newly allocated string with text description
of @flags. Free the returned pointer with g_free() when no longer needed.</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<parameter name="flags" transfer-ownership="none">
<doc xml:space="preserve">a #GTlsCertificateFlags to describe</doc>
<type name="Gio.TlsCertificateFlags" c:type="GTlsCertificateFlags"/>
</parameter>
</parameters>
</function>
<function name="trust_prompt_run_for_source"
c:identifier="e_trust_prompt_run_for_source"
version="3.16">
<doc xml:space="preserve">Similar to e_trust_prompt_run_modal(), except it also manages all the necessary things
around the @source<!-- -->'s SSL/TLS trust properties when it also contains %E_SOURCE_EXTENSION_WEBDAV,
thus the SSL/TLS trust on the WebDAV @source is properly updated based on the user's choice.
The call is finished with e_trust_prompt_run_for_source_finish(),
which also returns the user's choice. The finish happens in the @callback.
This is necessary, because the @source can be also saved.
The function fails, if the @source doesn't contain the %E_SOURCE_EXTENSION_AUTHENTICATION.
Note: The dialog is not shown when the stored certificate trust in the WebDAV @source
matches the @certificate_pem and the stored result is #E_TRUST_PROMPT_RESPONSE_REJECT.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="parent" transfer-ownership="none">
<doc xml:space="preserve">A #GtkWindow to use as a parent for the trust prompt dialog</doc>
<type name="Gtk.Window" c:type="GtkWindow*"/>
</parameter>
<parameter name="source" transfer-ownership="none">
<doc xml:space="preserve">an #ESource, with %E_SOURCE_EXTENSION_AUTHENTICATION</doc>
<type name="EDataServer.Source" c:type="ESource*"/>
</parameter>
<parameter name="certificate_pem" transfer-ownership="none">
<doc xml:space="preserve">a PEM-encoded certificate for which to show the trust prompt</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="certificate_errors" transfer-ownership="none">
<doc xml:space="preserve">errors of the @certificate_pem</doc>
<type name="Gio.TlsCertificateFlags" c:type="GTlsCertificateFlags"/>
</parameter>
<parameter name="error_text"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">an optional error text to show in the dialog; can be %NULL</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="allow_source_save" transfer-ownership="none">
<doc xml:space="preserve">whether can also save any @source changes</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
<parameter name="cancellable"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">a #GCancellable, or %NULL</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback"
transfer-ownership="none"
nullable="1"
allow-none="1"
scope="async"
closure="8">
<doc xml:space="preserve">a callback to call, when the prompt (an @source save) is done</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">user data passed into @callback</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</function>
<function name="trust_prompt_run_for_source_finish"
c:identifier="e_trust_prompt_run_for_source_finish"
version="3.16"
throws="1">
<doc xml:space="preserve">Finishes the operation started with e_trust_prompt_run_for_source().
The @response will contain a code of the user's choice.
The #E_TRUST_PROMPT_RESPONSE_UNKNOWN is used, when the user cancelled the trust
prompt dialog and no changes are made with the @source.
If an error occurs, the function sets @error and returns %FALSE.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success, %FALSE on error</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="source" transfer-ownership="none">
<doc xml:space="preserve">an #ESource which was used with e_trust_prompt_run_for_source()</doc>
<type name="EDataServer.Source" c:type="ESource*"/>
</parameter>
<parameter name="result" transfer-ownership="none">
<doc xml:space="preserve">a #GAsyncResult</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
<parameter name="response" transfer-ownership="none">
<doc xml:space="preserve">an output argument, user's response to the trust prompt</doc>
<type name="EDataServer.TrustPromptResponse"
c:type="ETrustPromptResponse*"/>
</parameter>
</parameters>
</function>
<function name="trust_prompt_run_modal"
c:identifier="e_trust_prompt_run_modal"
version="3.16">
<doc xml:space="preserve">Runs modal (doesn't return until the dialog is closed) a trust prompt dialog,
it is a prompt whether a user wants to accept or reject the @certificate_pem
for the @host due to the @certificate_errors errors.
The pair @source_extension and @source_display_name influences the trust prompt message.
If both are set, then the message also contains which source failed to connect according
to these two arguments.
The dialog can contain a custom error text, passed in as @error_text.
The error might be a detailed error string returned by the server. If set,
it is prefixed with "Detailed error:" string.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">A code of the user's choice. The #E_TRUST_PROMPT_RESPONSE_UNKNOWN
is returned, when the user cancelled the trust prompt dialog.</doc>
<type name="EDataServer.TrustPromptResponse"
c:type="ETrustPromptResponse"/>
</return-value>
<parameters>
<parameter name="parent" transfer-ownership="none">
<doc xml:space="preserve">A #GtkWindow to use as a parent for the trust prompt dialog</doc>
<type name="Gtk.Window" c:type="GtkWindow*"/>
</parameter>
<parameter name="source_extension"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">an #ESource extension, to identify a kind of the source; or %NULL</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="source_display_name"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">an #ESource display name, to identify what prompts; or %NULL</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="host" transfer-ownership="none">
<doc xml:space="preserve">a host name to which the certificate belongs</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="certificate_pem" transfer-ownership="none">
<doc xml:space="preserve">a PEM-encoded certificate for which to show the trust prompt</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="certificate_errors" transfer-ownership="none">
<doc xml:space="preserve">errors of the @certificate_pem</doc>
<type name="Gio.TlsCertificateFlags" c:type="GTlsCertificateFlags"/>
</parameter>
<parameter name="error_text"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">an optional error text to show in the dialog; can be %NULL</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</function>
<function name="webdav_discover_content_get_base_url"
c:identifier="e_webdav_discover_content_get_base_url"
version="3.18">
<doc xml:space="preserve">Returns currently set base URL for the @content. This is used to overwrite the one
set on the #ESource from the creation time. The URL can be either a full URL, a path
or even a %NULL.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">currently set base URL for the @content.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<parameter name="content" transfer-ownership="none">
<doc xml:space="preserve">a WebDAV discovery content, created by e_webdav_discover_content_new()</doc>
<type name="Gtk.Widget" c:type="GtkWidget*"/>
</parameter>
</parameters>
</function>
<function name="webdav_discover_content_get_multiselect"
c:identifier="e_webdav_discover_content_get_multiselect"
version="3.18">
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether multiselect is allowed for the @content.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="content" transfer-ownership="none">
<doc xml:space="preserve">a WebDAV discovery content, created by e_webdav_discover_content_new()</doc>
<type name="Gtk.Widget" c:type="GtkWidget*"/>
</parameter>
</parameters>
</function>
<function name="webdav_discover_content_get_selected"
c:identifier="e_webdav_discover_content_get_selected"
version="3.18">
<doc xml:space="preserve">Returns information about selected source at index @index. The function can be called
multiple times, with the index starting at zero and as long as it doesn't return %FALSE.
If the @content doesn't have allowed multiselection, then the only valid @index is 0.
All the @out_href, @out_display_name and @out_color are newly allocated strings, which should
be freed with g_free(), when no longer needed.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE, when a selected source of index @index exists, %FALSE otherwise.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="content" transfer-ownership="none">
<doc xml:space="preserve">a WebDAV discovery content, created by e_webdav_discover_content_new()</doc>
<type name="Gtk.Widget" c:type="GtkWidget*"/>
</parameter>
<parameter name="index" transfer-ownership="none">
<doc xml:space="preserve">an index of the selected source; counts from 0</doc>
<type name="gint" c:type="gint"/>
</parameter>
<parameter name="out_href"
direction="out"
caller-allocates="0"
transfer-ownership="full">
<doc xml:space="preserve">an output location for the URL of the selected source</doc>
<type name="utf8" c:type="gchar**"/>
</parameter>
<parameter name="out_supports"
direction="out"
caller-allocates="0"
transfer-ownership="full">
<doc xml:space="preserve">an output location of a bit-or of #EWebDAVDiscoverSupports, the set
of source types this server source location supports</doc>
<type name="guint" c:type="guint*"/>
</parameter>
<parameter name="out_display_name"
direction="out"
caller-allocates="0"
transfer-ownership="full">
<doc xml:space="preserve">an output location of the sources display name</doc>
<type name="utf8" c:type="gchar**"/>
</parameter>
<parameter name="out_color"
direction="out"
caller-allocates="0"
transfer-ownership="full">
<doc xml:space="preserve">an output location of the string representation of the color
for the source, as set on the server</doc>
<type name="utf8" c:type="gchar**"/>
</parameter>
</parameters>
</function>
<function name="webdav_discover_content_get_tree_selection"
c:identifier="e_webdav_discover_content_get_tree_selection"
version="3.18">
<doc xml:space="preserve">Returns inner #GtkTreeViewSelection. This is meant to be able to connect
to its "changed" signal and update other parts of the parent widgets accordingly.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">inner #GtkTreeViewSelection</doc>
<type name="Gtk.TreeSelection" c:type="GtkTreeSelection*"/>
</return-value>
<parameters>
<parameter name="content" transfer-ownership="none">
<doc xml:space="preserve">a WebDAV discovery content, created by e_webdav_discover_content_new()</doc>
<type name="Gtk.Widget" c:type="GtkWidget*"/>
</parameter>
</parameters>
</function>
<function name="webdav_discover_content_get_user_address"
c:identifier="e_webdav_discover_content_get_user_address"
version="3.18">
<doc xml:space="preserve">Get currently selected user address in the @content, if the server returned any.
This value has meaning only with calendar sources.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">currently selected user address. The returned string
is newly allocated and should be freed with g_free() when no longer needed.
If there are none addresses provided by the server, or no calendar sources
were found, then %NULL is returned instead.</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<parameter name="content" transfer-ownership="none">
<doc xml:space="preserve">a WebDAV discovery content, created by e_webdav_discover_content_new()</doc>
<type name="Gtk.Widget" c:type="GtkWidget*"/>
</parameter>
</parameters>
</function>
<function name="webdav_discover_content_new"
c:identifier="e_webdav_discover_content_new"
version="3.18">
<doc xml:space="preserve">Creates a new WebDAV discovery content, which is a #GtkGrid containing necessary
widgets to provide a UI interface for a user to search and select for available
WebDAV (CalDAV or CardDAV) sources provided by the given server. Do not pack
anything into this content, its content can be changed dynamically.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new WebDAV discovery content widget.</doc>
<type name="Gtk.Widget" c:type="GtkWidget*"/>
</return-value>
<parameters>
<parameter name="credentials_prompter" transfer-ownership="none">
<doc xml:space="preserve">an #ECredentialsPrompter to use to ask for credentials</doc>
<type name="CredentialsPrompter" c:type="ECredentialsPrompter*"/>
</parameter>
<parameter name="source"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">optional #ESource to use for authentication, or %NULL</doc>
<type name="EDataServer.Source" c:type="ESource*"/>
</parameter>
<parameter name="base_url"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">optional base URL to use for discovery, or %NULL</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="supports_filter" transfer-ownership="none">
<doc xml:space="preserve">a bit-or of #EWebDAVDiscoverSupports, a filter to limit what source
types will be shown in the dialog content; use %E_WEBDAV_DISCOVER_SUPPORTS_NONE
to show all</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</function>
<function name="webdav_discover_content_refresh"
c:identifier="e_webdav_discover_content_refresh"
version="3.18">
<doc xml:space="preserve">Asynchronously starts refresh of the @content. This means to access the server
and search it for available sources. The @content shows a feedback and a Cancel
button during the operation.
The @display_name is used only if the @content wasn't created with an #ESource and
it's shown in the password prompts, if there are required any.
When the operation is finished, @callback will be called. You can then
call e_webdav_discover_content_refresh_finish() to get the result of the operation.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="content" transfer-ownership="none">
<doc xml:space="preserve">a WebDAV discovery content, created by e_webdav_discover_content_new()</doc>
<type name="Gtk.Widget" c:type="GtkWidget*"/>
</parameter>
<parameter name="display_name"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">optional display name to use for scratch sources</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="cancellable"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">optional #GCancellable object, or %NULL</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback"
transfer-ownership="none"
nullable="1"
allow-none="1"
scope="async"
closure="4">
<doc xml:space="preserve">a #GAsyncReadyCallback to call when the request
is satisfied</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">data to pass to the callback function</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</function>
<function name="webdav_discover_content_refresh_finish"
c:identifier="e_webdav_discover_content_refresh_finish"
version="3.18"
throws="1">
<doc xml:space="preserve">Finishes the operation started with e_webdav_discover_content_refresh(). If an
error occurred, the function will set @error and return %FALSE. There is
available e_webdav_discover_content_show_error() for convenience, which
shows the error within @content and takes care of it when refreshing
the content.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success, %FALSE on failure</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="content" transfer-ownership="none">
<doc xml:space="preserve">a WebDAV discovery content, created by e_webdav_discover_content_new()</doc>
<type name="Gtk.Widget" c:type="GtkWidget*"/>
</parameter>
<parameter name="result" transfer-ownership="none">
<doc xml:space="preserve">a #GAsyncResult</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
</function>
<function name="webdav_discover_content_set_base_url"
c:identifier="e_webdav_discover_content_set_base_url"
version="3.18">
<doc xml:space="preserve">Sets base URL for the @content. This is used to overwrite the one set on
the #ESource from the creation time. The URL can be either a full URL, a path
or even a %NULL.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="content" transfer-ownership="none">
<doc xml:space="preserve">a WebDAV discovery content, created by e_webdav_discover_content_new()</doc>
<type name="Gtk.Widget" c:type="GtkWidget*"/>
</parameter>
<parameter name="base_url" transfer-ownership="none">
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</function>
<function name="webdav_discover_content_set_multiselect"
c:identifier="e_webdav_discover_content_set_multiselect"
version="3.18">
<doc xml:space="preserve">Sets whether the WebDAV discovery content allows multiselect.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="content" transfer-ownership="none">
<doc xml:space="preserve">a WebDAV discovery content, created by e_webdav_discover_content_new()</doc>
<type name="Gtk.Widget" c:type="GtkWidget*"/>
</parameter>
<parameter name="multiselect" transfer-ownership="none">
<doc xml:space="preserve">whether multiselect is allowed</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</function>
<function name="webdav_discover_content_show_error"
c:identifier="e_webdav_discover_content_show_error"
version="3.18">
<doc xml:space="preserve">Shows the @error within @content, unless it's a #G_IO_ERROR_CANCELLED, or %NULL,
which are safely ignored. The advantage of this function is that the error
message is removed when the refresh operation is started.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="content" transfer-ownership="none">
<doc xml:space="preserve">a WebDAV discovery content, created by e_webdav_discover_content_new()</doc>
<type name="Gtk.Widget" c:type="GtkWidget*"/>
</parameter>
<parameter name="error"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">a #GError to show in the UI, or %NULL</doc>
<type name="GLib.Error" c:type="const GError*"/>
</parameter>
</parameters>
</function>
<function name="webdav_discover_dialog_get_content"
c:identifier="e_webdav_discover_dialog_get_content"
version="3.18">
<doc xml:space="preserve">Returns inner WebDAV discovery content, which can be further manipulated.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">inner WebDAV discovery content</doc>
<type name="Gtk.Widget" c:type="GtkWidget*"/>
</return-value>
<parameters>
<parameter name="dialog" transfer-ownership="none">
<doc xml:space="preserve">a #GtkDialog returned by e_webdav_discover_dialog_new()</doc>
<type name="Gtk.Dialog" c:type="GtkDialog*"/>
</parameter>
</parameters>
</function>
<function name="webdav_discover_dialog_new"
c:identifier="e_webdav_discover_dialog_new"
version="3.18">
<doc xml:space="preserve">Creates a new #GtkDialog which has as its content a WebDAV discovery widget,
created with e_webdav_discover_content_new(). This dialog can be shown to a user
and when its final response is %GTK_RESPONSE_ACCEPT, then the inner content
can be asked for currently selected source(s).</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a newly created #GtkDialog, which should be freed
with gtk_widget_destroy(), when no longer needed.</doc>
<type name="Gtk.Dialog" c:type="GtkDialog*"/>
</return-value>
<parameters>
<parameter name="parent" transfer-ownership="none">
<doc xml:space="preserve">a #GtkWindow parent for the dialog</doc>
<type name="Gtk.Window" c:type="GtkWindow*"/>
</parameter>
<parameter name="title" transfer-ownership="none">
<doc xml:space="preserve">title of the window</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="credentials_prompter" transfer-ownership="none">
<doc xml:space="preserve">an #ECredentialsPrompter to use to ask for credentials</doc>
<type name="CredentialsPrompter" c:type="ECredentialsPrompter*"/>
</parameter>
<parameter name="source" transfer-ownership="none">
<doc xml:space="preserve">an #ESource to use for authentication</doc>
<type name="EDataServer.Source" c:type="ESource*"/>
</parameter>
<parameter name="base_url"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">optional base URL to use for discovery, or %NULL</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="supports_filter" transfer-ownership="none">
<doc xml:space="preserve">a bit-or of #EWebDAVDiscoverSupports, a filter to limit what source
types will be shown in the dialog content; use %E_WEBDAV_DISCOVER_SUPPORTS_NONE
to show all</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</function>
<function name="webdav_discover_dialog_refresh"
c:identifier="e_webdav_discover_dialog_refresh"
version="3.18">
<doc xml:space="preserve">Invokes refresh of the inner content of the WebDAV discovery dialog.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="dialog" transfer-ownership="none">
<doc xml:space="preserve">a #GtkDialog returned by e_webdav_discover_dialog_new()</doc>
<type name="Gtk.Dialog" c:type="GtkDialog*"/>
</parameter>
</parameters>
</function>
</namespace>
</repository>
|