/usr/share/gir-1.0/Accounts-1.0.gir is in libaccounts-glib-dev 1.21+16.04.20160222-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 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 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 | <?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="GObject" version="2.0"/>
<include name="Gio" version="2.0"/>
<c:include name="libaccounts-glib/accounts-glib.h"/>
<namespace name="Accounts"
version="1.0"
shared-library="libaccounts-glib.so.0"
c:identifier-prefixes="Ag"
c:symbol-prefixes="ag">
<alias name="AccountId" c:type="AgAccountId">
<doc xml:space="preserve">ID of an account. Often used when retrieving lists of accounts from
#AgManager.</doc>
<type name="guint" c:type="guint"/>
</alias>
<class name="Account"
c:symbol-prefix="account"
c:type="AgAccount"
parent="GObject.Object"
glib:type-name="AgAccount"
glib:get-type="ag_account_get_type"
glib:type-struct="AccountClass">
<doc xml:space="preserve">Opaque structure. Use related accessor functions.</doc>
<implements name="Gio.Initable"/>
<method name="delete" c:identifier="ag_account_delete">
<doc xml:space="preserve">Deletes the account. Call ag_account_store() in order to record the change
in the storage.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="account" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccount.</doc>
<type name="Account" c:type="AgAccount*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_display_name"
c:identifier="ag_account_get_display_name">
<doc xml:space="preserve">Get the display name of @account.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the display name.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="account" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccount.</doc>
<type name="Account" c:type="AgAccount*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_enabled" c:identifier="ag_account_get_enabled">
<doc xml:space="preserve">Gets whether the selected service is enabled for @account.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE if the selected service for @account is enabled, %FALSE
otherwise.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="account" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccount.</doc>
<type name="Account" c:type="AgAccount*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_manager" c:identifier="ag_account_get_manager">
<doc xml:space="preserve">Get the #AgManager for @account.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the #AgManager.</doc>
<type name="Manager" c:type="AgManager*"/>
</return-value>
<parameters>
<instance-parameter name="account" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccount.</doc>
<type name="Account" c:type="AgAccount*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_provider_name"
c:identifier="ag_account_get_provider_name">
<doc xml:space="preserve">Get the name of the provider of @account.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the name of the provider.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="account" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccount.</doc>
<type name="Account" c:type="AgAccount*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_selected_service"
c:identifier="ag_account_get_selected_service">
<doc xml:space="preserve">Gets the selected #AgService for @account.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">the selected service, or %NULL if no service is selected.</doc>
<type name="Service" c:type="AgService*"/>
</return-value>
<parameters>
<instance-parameter name="account" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccount.</doc>
<type name="Account" c:type="AgAccount*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_settings_iter"
c:identifier="ag_account_get_settings_iter">
<doc xml:space="preserve">Creates a new iterator. This method is useful for language bindings only.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">an #AgAccountSettingIter.</doc>
<type name="AccountSettingIter" c:type="AgAccountSettingIter*"/>
</return-value>
<parameters>
<instance-parameter name="account" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccount.</doc>
<type name="Account" c:type="AgAccount*"/>
</instance-parameter>
<parameter name="key_prefix"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">enumerate only the settings whose key starts with
@key_prefix.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="get_value"
c:identifier="ag_account_get_value"
deprecated="1"
deprecated-version="1.4">
<doc xml:space="preserve">Gets the value of the configuration setting @key: @value must be a
#GValue initialized to the type of the setting.</doc>
<doc-deprecated xml:space="preserve">Use ag_account_get_variant() instead.</doc-deprecated>
<return-value transfer-ownership="none">
<doc xml:space="preserve">one of #AgSettingSource: %AG_SETTING_SOURCE_NONE if the setting is
not present, %AG_SETTING_SOURCE_ACCOUNT if the setting comes from the
account configuration, or %AG_SETTING_SOURCE_PROFILE if the value comes as
predefined in the profile.</doc>
<type name="SettingSource" c:type="AgSettingSource"/>
</return-value>
<parameters>
<instance-parameter name="account" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccount.</doc>
<type name="Account" c:type="AgAccount*"/>
</instance-parameter>
<parameter name="key" transfer-ownership="none">
<doc xml:space="preserve">the name of the setting to retrieve.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="value"
direction="inout"
caller-allocates="0"
transfer-ownership="full">
<doc xml:space="preserve">an initialized #GValue to receive the setting's value.</doc>
<type name="GObject.Value" c:type="GValue*"/>
</parameter>
</parameters>
</method>
<method name="get_variant"
c:identifier="ag_account_get_variant"
version="1.4">
<doc xml:space="preserve">Gets the value of the configuration setting @key.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">a #GVariant holding the setting value, or
%NULL. The returned #GVariant is owned by the account, and no guarantees
are made about its lifetime. If the client wishes to keep it, it should
call g_variant_ref() on it.</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</return-value>
<parameters>
<instance-parameter name="account" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccount.</doc>
<type name="Account" c:type="AgAccount*"/>
</instance-parameter>
<parameter name="key" transfer-ownership="none">
<doc xml:space="preserve">the name of the setting to retrieve.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="source"
direction="out"
caller-allocates="0"
transfer-ownership="full"
optional="1"
allow-none="1">
<doc xml:space="preserve">a pointer to an
#AgSettingSource variable which will tell whether the setting was
retrieved from the accounts DB or from a service template.</doc>
<type name="SettingSource" c:type="AgSettingSource*"/>
</parameter>
</parameters>
</method>
<method name="list_enabled_services"
c:identifier="ag_account_list_enabled_services">
<doc xml:space="preserve">Gets a list of services that are enabled for @account.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a #GList of #AgService
items representing all the services which are enabled. Must be free'd with
ag_service_list_free().</doc>
<type name="GLib.List" c:type="GList*">
<type name="Service"/>
</type>
</return-value>
<parameters>
<instance-parameter name="account" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccount.</doc>
<type name="Account" c:type="AgAccount*"/>
</instance-parameter>
</parameters>
</method>
<method name="list_services" c:identifier="ag_account_list_services">
<doc xml:space="preserve">Get the list of services for @account. If the #AgManager was created with
specified service_type this will return only services with this service_type.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a #GList of #AgService
items representing all the services supported by this account. Must be
free'd with ag_service_list_free().</doc>
<type name="GLib.List" c:type="GList*">
<type name="Service"/>
</type>
</return-value>
<parameters>
<instance-parameter name="account" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccount.</doc>
<type name="Account" c:type="AgAccount*"/>
</instance-parameter>
</parameters>
</method>
<method name="list_services_by_type"
c:identifier="ag_account_list_services_by_type">
<doc xml:space="preserve">Get the list of services supported by @account, filtered by @service_type.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a #GList of #AgService
items representing all the services supported by this account which provide
@service_type. Must be free'd with ag_service_list_free().</doc>
<type name="GLib.List" c:type="GList*">
<type name="Service"/>
</type>
</return-value>
<parameters>
<instance-parameter name="account" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccount.</doc>
<type name="Account" c:type="AgAccount*"/>
</instance-parameter>
<parameter name="service_type" transfer-ownership="none">
<doc xml:space="preserve">the service type which all the returned services should
provide.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="remove_watch" c:identifier="ag_account_remove_watch">
<doc xml:space="preserve">Removes the notification callback identified by @watch.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="account" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccount.</doc>
<type name="Account" c:type="AgAccount*"/>
</instance-parameter>
<parameter name="watch" transfer-ownership="none">
<doc xml:space="preserve">the watch to remove.</doc>
<type name="AccountWatch" c:type="AgAccountWatch"/>
</parameter>
</parameters>
</method>
<method name="select_service" c:identifier="ag_account_select_service">
<doc xml:space="preserve">Selects the configuration of service @service: from now on, all the
subsequent calls on the #AgAccount configuration will act on the @service.
If @service is %NULL, the global account configuration is selected.
Note that if @account is being shared with other code one must take special
care to make sure the desired service is always selected.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="account" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccount.</doc>
<type name="Account" c:type="AgAccount*"/>
</instance-parameter>
<parameter name="service"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">the #AgService to select.</doc>
<type name="Service" c:type="AgService*"/>
</parameter>
</parameters>
</method>
<method name="set_display_name"
c:identifier="ag_account_set_display_name">
<doc xml:space="preserve">Changes the display name for @account to @display_name.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="account" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccount.</doc>
<type name="Account" c:type="AgAccount*"/>
</instance-parameter>
<parameter name="display_name" transfer-ownership="none">
<doc xml:space="preserve">the display name to set.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="set_enabled" c:identifier="ag_account_set_enabled">
<doc xml:space="preserve">Sets the "enabled" flag on the selected service for @account.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="account" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccount.</doc>
<type name="Account" c:type="AgAccount*"/>
</instance-parameter>
<parameter name="enabled" transfer-ownership="none">
<doc xml:space="preserve">whether @account should be enabled.</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</method>
<method name="set_value"
c:identifier="ag_account_set_value"
deprecated="1"
deprecated-version="1.4">
<doc xml:space="preserve">Sets the value of the configuration setting @key to the value @value.
If @value is %NULL, then the setting is unset.</doc>
<doc-deprecated xml:space="preserve">Use ag_account_set_variant() instead.</doc-deprecated>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="account" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccount.</doc>
<type name="Account" c:type="AgAccount*"/>
</instance-parameter>
<parameter name="key" transfer-ownership="none">
<doc xml:space="preserve">the name of the setting to change.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="value"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">a #GValue holding the new setting's value.</doc>
<type name="GObject.Value" c:type="const GValue*"/>
</parameter>
</parameters>
</method>
<method name="set_variant"
c:identifier="ag_account_set_variant"
version="1.4">
<doc xml:space="preserve">Sets the value of the configuration setting @key to the value @value.
If @value has a floating reference, the @account will take ownership
of it.
If @value is %NULL, then the setting is unset.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="account" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccount.</doc>
<type name="Account" c:type="AgAccount*"/>
</instance-parameter>
<parameter name="key" transfer-ownership="none">
<doc xml:space="preserve">the name of the setting to change.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="value"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">a #GVariant holding the new setting's value.</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</parameter>
</parameters>
</method>
<method name="settings_iter_init"
c:identifier="ag_account_settings_iter_init">
<doc xml:space="preserve">Initializes @iter to iterate over the account settings. If @key_prefix is
not %NULL, only keys whose names start with @key_prefix will be iterated
over.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="account" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccount.</doc>
<type name="Account" c:type="AgAccount*"/>
</instance-parameter>
<parameter name="iter" transfer-ownership="none">
<doc xml:space="preserve">an uninitialized #AgAccountSettingIter structure.</doc>
<type name="AccountSettingIter" c:type="AgAccountSettingIter*"/>
</parameter>
<parameter name="key_prefix"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">enumerate only the settings whose key starts with
@key_prefix.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="sign" c:identifier="ag_account_sign">
<doc xml:space="preserve">Creates signature of the @key with given @token. The account must be
stored prior to calling this function.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="account" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccount.</doc>
<type name="Account" c:type="AgAccount*"/>
</instance-parameter>
<parameter name="key" transfer-ownership="none">
<doc xml:space="preserve">the name of the key or prefix of the keys to be signed.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="token" transfer-ownership="none">
<doc xml:space="preserve">a signing token (%NULL-terminated string) for creating the
signature. The application must possess (request) the token.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="store"
c:identifier="ag_account_store"
deprecated="1"
deprecated-version="1.4">
<doc xml:space="preserve">Commit the changed account settings to the account database, and invoke
@callback when the operation has been completed.</doc>
<doc-deprecated xml:space="preserve">Use ag_account_store_async() instead.</doc-deprecated>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="account" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccount.</doc>
<type name="Account" c:type="AgAccount*"/>
</instance-parameter>
<parameter name="callback"
transfer-ownership="none"
scope="async"
closure="1">
<doc xml:space="preserve">function to be called when the settings have been
written.</doc>
<type name="AccountStoreCb" c:type="AgAccountStoreCb"/>
</parameter>
<parameter name="user_data" transfer-ownership="none">
<doc xml:space="preserve">pointer to user data, to be passed to @callback.</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</method>
<method name="store_async"
c:identifier="ag_account_store_async"
version="1.4">
<doc xml:space="preserve">Commit the changed account settings to the account database, and invoke
@callback when the operation has been completed.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="account" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccount.</doc>
<type name="Account" c:type="AgAccount*"/>
</instance-parameter>
<parameter name="cancellable"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">optional #GCancellable object, %NULL to ignore.</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback"
transfer-ownership="none"
nullable="1"
allow-none="1"
scope="async"
closure="2">
<doc xml:space="preserve">function to be called when the settings have been
written.</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data" transfer-ownership="none">
<doc xml:space="preserve">pointer to user data, to be passed to @callback.</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</method>
<method name="store_blocking"
c:identifier="ag_account_store_blocking"
throws="1">
<doc xml:space="preserve">Commit the changed account settings to the account database, and invoke
@callback when the operation has been completed.</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>
<instance-parameter name="account" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccount.</doc>
<type name="Account" c:type="AgAccount*"/>
</instance-parameter>
</parameters>
</method>
<method name="store_finish"
c:identifier="ag_account_store_finish"
version="1.4"
throws="1">
<doc xml:space="preserve">Finishes the store operation started by ag_account_store_async().</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="account" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccount.</doc>
<type name="Account" c:type="AgAccount*"/>
</instance-parameter>
<parameter name="res" transfer-ownership="none">
<doc xml:space="preserve">A #GAsyncResult obtained from the #GAsyncReadyCallback passed to
ag_account_store_async().</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
</method>
<method name="supports_service"
c:identifier="ag_account_supports_service">
<doc xml:space="preserve">Get whether @service_type is supported on @account.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE if @account supports the service type @service_type, %FALSE
otherwise.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="account" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccount.</doc>
<type name="Account" c:type="AgAccount*"/>
</instance-parameter>
<parameter name="service_type" transfer-ownership="none">
<doc xml:space="preserve">the name of the service type to check for</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="verify" c:identifier="ag_account_verify">
<doc xml:space="preserve">Verify if the key is signed and the signature matches the value
and provides the aegis token which was used for signing the @key.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE if the key is signed and the signature matches the value,
%FALSE otherwise.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="account" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccount.</doc>
<type name="Account" c:type="AgAccount*"/>
</instance-parameter>
<parameter name="key" transfer-ownership="none">
<doc xml:space="preserve">the name of the key or prefix of the keys to be verified.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="token" transfer-ownership="none">
<doc xml:space="preserve">location to receive the pointer to aegis token.</doc>
<type name="utf8" c:type="const gchar**"/>
</parameter>
</parameters>
</method>
<method name="verify_with_tokens"
c:identifier="ag_account_verify_with_tokens">
<doc xml:space="preserve">Verify if the @key is signed with any of the tokens from the @tokens
and the signature is valid.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE if the key is signed with any of the given tokens and the
signature is valid, %FALSE otherwise.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="account" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccount.</doc>
<type name="Account" c:type="AgAccount*"/>
</instance-parameter>
<parameter name="key" transfer-ownership="none">
<doc xml:space="preserve">the name of the key or prefix of the keys to be verified.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="tokens" transfer-ownership="none">
<doc xml:space="preserve">array of aegis tokens.</doc>
<type name="utf8" c:type="const gchar**"/>
</parameter>
</parameters>
</method>
<method name="watch_dir" c:identifier="ag_account_watch_dir">
<doc xml:space="preserve">Installs a watch on all the keys under @key_prefix: @callback will be
invoked whenever the value of any of these keys changes (or a key is
removed).</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">a #AgAccountWatch, which can then be used to
remove this watch.</doc>
<type name="AccountWatch" c:type="AgAccountWatch"/>
</return-value>
<parameters>
<instance-parameter name="account" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccount.</doc>
<type name="Account" c:type="AgAccount*"/>
</instance-parameter>
<parameter name="key_prefix" transfer-ownership="none">
<doc xml:space="preserve">the prefix of the keys to watch.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="callback"
transfer-ownership="none"
scope="async"
closure="2">
<doc xml:space="preserve">a #AgAccountNotifyCb callback to be called.</doc>
<type name="AccountNotifyCb" c:type="AgAccountNotifyCb"/>
</parameter>
<parameter name="user_data" transfer-ownership="none">
<doc xml:space="preserve">pointer to user data, to be passed to @callback.</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</method>
<method name="watch_key" c:identifier="ag_account_watch_key">
<doc xml:space="preserve">Installs a watch on @key: @callback will be invoked whenever the value of
@key changes (or the key is removed).</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">a #AgAccountWatch, which can then be used to
remove this watch.</doc>
<type name="AccountWatch" c:type="AgAccountWatch"/>
</return-value>
<parameters>
<instance-parameter name="account" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccount.</doc>
<type name="Account" c:type="AgAccount*"/>
</instance-parameter>
<parameter name="key" transfer-ownership="none">
<doc xml:space="preserve">the name of the key to watch.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="callback"
transfer-ownership="none"
scope="async"
closure="2">
<doc xml:space="preserve">a #AgAccountNotifyCb callback to be called.</doc>
<type name="AccountNotifyCb" c:type="AgAccountNotifyCb"/>
</parameter>
<parameter name="user_data" transfer-ownership="none">
<doc xml:space="preserve">pointer to user data, to be passed to @callback.</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</method>
<property name="display-name" version="1.4" transfer-ownership="none">
<doc xml:space="preserve">The display name of the account.</doc>
<type name="utf8" c:type="gchar*"/>
</property>
<property name="enabled" version="1.4" transfer-ownership="none">
<doc xml:space="preserve">Whether the account is currently enabled.</doc>
<type name="gboolean" c:type="gboolean"/>
</property>
<property name="foreign"
readable="0"
writable="1"
construct-only="1"
transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</property>
<property name="id"
writable="1"
construct-only="1"
transfer-ownership="none">
<doc xml:space="preserve">The AgAccountId for the account.</doc>
<type name="guint" c:type="guint"/>
</property>
<property name="manager"
version="1.4"
writable="1"
construct-only="1"
transfer-ownership="none">
<doc xml:space="preserve">The #AgManager from which the account was instantiated.</doc>
<type name="Manager"/>
</property>
<property name="provider"
version="1.4"
writable="1"
construct-only="1"
transfer-ownership="none">
<doc xml:space="preserve">The ID of the provider for the account.</doc>
<type name="utf8" c:type="gchar*"/>
</property>
<field name="parent_instance">
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="id">
<type name="AccountId" c:type="AgAccountId"/>
</field>
<field name="priv" readable="0" private="1">
<type name="AccountPrivate" c:type="AgAccountPrivate*"/>
</field>
<glib:signal name="deleted" when="last">
<doc xml:space="preserve">Emitted when the account has been deleted.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</glib:signal>
<glib:signal name="display-name-changed" when="last">
<doc xml:space="preserve">Emitted when the account display name has changed.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</glib:signal>
<glib:signal name="enabled" when="last">
<doc xml:space="preserve">Emitted when the account "enabled" status was changed for one of its
services, or for the account globally.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="service" transfer-ownership="none">
<doc xml:space="preserve">the service which was enabled/disabled, or %NULL if the global
enabledness of the account changed.</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="enabled" transfer-ownership="none">
<doc xml:space="preserve">the new state of the @account.</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</glib:signal>
</class>
<record name="AccountClass"
c:type="AgAccountClass"
glib:is-gtype-struct-for="Account">
<doc xml:space="preserve">Use the accessor functions below.</doc>
<field name="parent_class">
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
<field name="_ag_reserved1" introspectable="0">
<callback name="_ag_reserved1">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="_ag_reserved2" introspectable="0">
<callback name="_ag_reserved2">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="_ag_reserved3" introspectable="0">
<callback name="_ag_reserved3">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="_ag_reserved4" introspectable="0">
<callback name="_ag_reserved4">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="_ag_reserved5" introspectable="0">
<callback name="_ag_reserved5">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="_ag_reserved6" introspectable="0">
<callback name="_ag_reserved6">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="_ag_reserved7" introspectable="0">
<callback name="_ag_reserved7">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
</record>
<callback name="AccountNotifyCb" c:type="AgAccountNotifyCb">
<doc xml:space="preserve">This callback is invoked when the value of an account configuration setting
changes. If the callback was installed with ag_account_watch_key() then @key
is the name of the configuration setting which changed; if it was installed
with ag_account_watch_dir() then @key is the same key prefix that was used
when installing this callback.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="account" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccount.</doc>
<type name="Account" c:type="AgAccount*"/>
</parameter>
<parameter name="key" transfer-ownership="none">
<doc xml:space="preserve">the name of the key whose value has changed.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="user_data" transfer-ownership="none" closure="2">
<doc xml:space="preserve">the user data that was passed when installing this callback.</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</callback>
<record name="AccountPrivate" c:type="AgAccountPrivate" disguised="1">
</record>
<class name="AccountService"
c:symbol-prefix="account_service"
c:type="AgAccountService"
parent="GObject.Object"
glib:type-name="AgAccountService"
glib:get-type="ag_account_service_get_type"
glib:type-struct="AccountServiceClass">
<doc xml:space="preserve">Opaque structure. Use related accessor functions.</doc>
<constructor name="new" c:identifier="ag_account_service_new">
<doc xml:space="preserve">Constructor. If @service is %NULL, the returned object will operate on the
global account settings.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new #AgAccountService; call g_object_unref() when you don't need
this object anymore.</doc>
<type name="AccountService" c:type="AgAccountService*"/>
</return-value>
<parameters>
<parameter name="account" transfer-ownership="full">
<doc xml:space="preserve">an #AgAccount.</doc>
<type name="Account" c:type="AgAccount*"/>
</parameter>
<parameter name="service"
transfer-ownership="full"
nullable="1"
allow-none="1">
<doc xml:space="preserve">an #AgService supported by @account.</doc>
<type name="Service" c:type="AgService*"/>
</parameter>
</parameters>
</constructor>
<function name="settings_iter_next"
c:identifier="ag_account_service_settings_iter_next"
deprecated="1"
deprecated-version="1.4">
<doc xml:space="preserve">Iterates over the account keys. @iter must be an iterator previously
initialized with ag_account_service_settings_iter_init().</doc>
<doc-deprecated xml:space="preserve">Use ag_account_settings_iter_get_next() instead.</doc-deprecated>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE if @key and @value have been set, %FALSE if we there are no
more account settings to iterate over.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="iter" transfer-ownership="none">
<doc xml:space="preserve">an initialized #AgAccountSettingIter structure.</doc>
<type name="AccountSettingIter" c:type="AgAccountSettingIter*"/>
</parameter>
<parameter name="key"
direction="out"
caller-allocates="0"
transfer-ownership="none">
<doc xml:space="preserve">a pointer to a string
receiving the key name.</doc>
<type name="utf8" c:type="const gchar**"/>
</parameter>
<parameter name="value"
direction="out"
caller-allocates="0"
transfer-ownership="none">
<doc xml:space="preserve">a pointer to a pointer to a
#GValue, to receive the key value.</doc>
<type name="GObject.Value" c:type="const GValue**"/>
</parameter>
</parameters>
</function>
<method name="get_account" c:identifier="ag_account_service_get_account">
<doc xml:space="preserve">Get the #AgAccount associated with @self.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the underlying #AgAccount. The reference count on
it is not incremented, so if you need to use it beyond the lifetime of
@self, you need to call g_object_ref() on it yourself.</doc>
<type name="Account" c:type="AgAccount*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccountService.</doc>
<type name="AccountService" c:type="AgAccountService*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_auth_data"
c:identifier="ag_account_service_get_auth_data">
<doc xml:space="preserve">Reads the authentication data stored in the account (merging the
service-specific settings with the global account settings) and returns an
#AgAuthData structure.
The method and mechanism are read from the "auth/method" and
"auth/mechanism" keys, respectively. The authentication parameters are
found under the "auth/&lt;method&gt;/&lt;mechanism&gt;/" group.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a newly allocated #AgAuthData structure.</doc>
<type name="AuthData" c:type="AgAuthData*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccountService.</doc>
<type name="AccountService" c:type="AgAccountService*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_changed_fields"
c:identifier="ag_account_service_get_changed_fields">
<doc xml:space="preserve">This method should be called only in the context of a handler of the
#AgAccountService::changed signal, and can be used to retrieve the set of
changes.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a newly allocated array of strings describing the
keys of the fields which have been altered. It must be free'd with
g_strfreev().</doc>
<array c:type="gchar**">
<type name="utf8"/>
</array>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccountService.</doc>
<type name="AccountService" c:type="AgAccountService*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_enabled" c:identifier="ag_account_service_get_enabled">
<doc xml:space="preserve">Checks whether the underlying #AgAccount is enabled and the selected
#AgService is enabled on it. If this method returns %FALSE, applications
should not try to use this object.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE if the service is enabled, %FALSE otherwise.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccountService.</doc>
<type name="AccountService" c:type="AgAccountService*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_service" c:identifier="ag_account_service_get_service">
<doc xml:space="preserve">Get the #AgService associated with @self.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the underlying #AgService. The reference count on
it is not incremented, so if you need to use it beyond the lifetime of
@self, you need to call ag_service_ref() on it yourself.</doc>
<type name="Service" c:type="AgService*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccountService.</doc>
<type name="AccountService" c:type="AgAccountService*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_settings_iter"
c:identifier="ag_account_service_get_settings_iter">
<doc xml:space="preserve">Creates a new iterator. This method is useful for language bindings only.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">an #AgAccountSettingIter.</doc>
<type name="AccountSettingIter" c:type="AgAccountSettingIter*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccountService.</doc>
<type name="AccountService" c:type="AgAccountService*"/>
</instance-parameter>
<parameter name="key_prefix"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">enumerate only the settings whose key starts with
@key_prefix.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="get_value"
c:identifier="ag_account_service_get_value"
deprecated="1"
deprecated-version="1.4">
<doc xml:space="preserve">Gets the value of the configuration setting @key: @value must be a
#GValue initialized to the type of the setting.</doc>
<doc-deprecated xml:space="preserve">Use ag_account_service_get_variant() instead.</doc-deprecated>
<return-value transfer-ownership="none">
<doc xml:space="preserve">one of <type>#AgSettingSource</type>: %AG_SETTING_SOURCE_NONE if
the setting is not present, %AG_SETTING_SOURCE_ACCOUNT if the setting comes
from the account configuration, or %AG_SETTING_SOURCE_PROFILE if the value
comes as predefined in the profile.</doc>
<type name="SettingSource" c:type="AgSettingSource"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccountService.</doc>
<type name="AccountService" c:type="AgAccountService*"/>
</instance-parameter>
<parameter name="key" transfer-ownership="none">
<doc xml:space="preserve">the name of the setting to retrieve.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="value"
direction="inout"
caller-allocates="0"
transfer-ownership="full">
<doc xml:space="preserve">an initialized #GValue to receive the setting's value.</doc>
<type name="GObject.Value" c:type="GValue*"/>
</parameter>
</parameters>
</method>
<method name="get_variant"
c:identifier="ag_account_service_get_variant"
version="1.4">
<doc xml:space="preserve">Gets the value of the configuration setting @key.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">a #GVariant holding the setting value, or
%NULL. The returned #GVariant is owned by the account, and no guarantees
are made about its lifetime. If the client wishes to keep it, it should
call g_variant_ref() on it.</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccountService.</doc>
<type name="AccountService" c:type="AgAccountService*"/>
</instance-parameter>
<parameter name="key" transfer-ownership="none">
<doc xml:space="preserve">the name of the setting to retrieve.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="source"
direction="out"
caller-allocates="0"
transfer-ownership="full"
optional="1"
allow-none="1">
<doc xml:space="preserve">a pointer to an
#AgSettingSource variable which will tell whether the setting was
retrieved from the accounts DB or from a service template.</doc>
<type name="SettingSource" c:type="AgSettingSource*"/>
</parameter>
</parameters>
</method>
<method name="set_value"
c:identifier="ag_account_service_set_value"
deprecated="1"
deprecated-version="1.4">
<doc xml:space="preserve">Sets the value of the configuration setting @key to the value @value.
If @value is %NULL, then the setting is unset.</doc>
<doc-deprecated xml:space="preserve">Use ag_account_service_set_variant() instead.</doc-deprecated>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccountService.</doc>
<type name="AccountService" c:type="AgAccountService*"/>
</instance-parameter>
<parameter name="key" transfer-ownership="none">
<doc xml:space="preserve">the name of the setting to change.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="value"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">a #GValue holding the new setting's value.</doc>
<type name="GObject.Value" c:type="const GValue*"/>
</parameter>
</parameters>
</method>
<method name="set_variant"
c:identifier="ag_account_service_set_variant"
version="1.4">
<doc xml:space="preserve">Sets the value of the configuration setting @key to the value @value.
If @value has a floating reference, the @account will take ownership
of it.
If @value is %NULL, then the setting is unset.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccountService.</doc>
<type name="AccountService" c:type="AgAccountService*"/>
</instance-parameter>
<parameter name="key" transfer-ownership="none">
<doc xml:space="preserve">the name of the setting to change.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="value"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">a #GVariant holding the new setting's value.</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</parameter>
</parameters>
</method>
<method name="settings_iter_init"
c:identifier="ag_account_service_settings_iter_init">
<doc xml:space="preserve">Initializes @iter to iterate over the account settings. If @key_prefix is
not %NULL, only keys whose names start with @key_prefix will be iterated
over.
After calling this method, one would typically call
ag_account_settings_iter_get_next() to read the settings one by one.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccountService.</doc>
<type name="AccountService" c:type="AgAccountService*"/>
</instance-parameter>
<parameter name="iter" transfer-ownership="none">
<doc xml:space="preserve">an uninitialized #AgAccountSettingIter structure.</doc>
<type name="AccountSettingIter" c:type="AgAccountSettingIter*"/>
</parameter>
<parameter name="key_prefix"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">enumerate only the settings whose key starts with
@key_prefix.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<property name="account"
version="1.4"
writable="1"
construct-only="1"
transfer-ownership="none">
<doc xml:space="preserve">The #AgAccount used by the account service.</doc>
<type name="Account"/>
</property>
<property name="enabled" version="1.4" transfer-ownership="none">
<doc xml:space="preserve">Whether the account service is currently enabled. The value of
this property is %TRUE if and only if the underlying #AgAccount
is enabled and the selected #AgService is enabled on it. If this
property is %FALSE, applications should not try to use this
object.</doc>
<type name="gboolean" c:type="gboolean"/>
</property>
<property name="service"
version="1.4"
writable="1"
construct-only="1"
transfer-ownership="none">
<doc xml:space="preserve">The #AgService used by the account service.</doc>
<type name="Service"/>
</property>
<field name="parent_instance">
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="priv">
<type name="AccountServicePrivate" c:type="AgAccountServicePrivate*"/>
</field>
<glib:signal name="changed" when="last">
<doc xml:space="preserve">Emitted when some setting has changed on the account service. You can
use the ag_account_service_get_changed_fields() method to retrieve the
list of the settings which have changed.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</glib:signal>
<glib:signal name="enabled" when="last">
<doc xml:space="preserve">Emitted when the service enabled state changes.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="enabled" transfer-ownership="none">
<doc xml:space="preserve">whether the service is enabled.</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</glib:signal>
</class>
<record name="AccountServiceClass"
c:type="AgAccountServiceClass"
glib:is-gtype-struct-for="AccountService">
<doc xml:space="preserve">Use the accessor functions below.</doc>
<field name="parent_class">
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
<field name="_ag_reserved1" introspectable="0">
<callback name="_ag_reserved1">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="_ag_reserved2" introspectable="0">
<callback name="_ag_reserved2">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="_ag_reserved3" introspectable="0">
<callback name="_ag_reserved3">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="_ag_reserved4" introspectable="0">
<callback name="_ag_reserved4">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="_ag_reserved5" introspectable="0">
<callback name="_ag_reserved5">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="_ag_reserved6" introspectable="0">
<callback name="_ag_reserved6">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="_ag_reserved7" introspectable="0">
<callback name="_ag_reserved7">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
</record>
<record name="AccountServicePrivate"
c:type="AgAccountServicePrivate"
disguised="1">
</record>
<record name="AccountSettingIter"
c:type="AgAccountSettingIter"
glib:type-name="AgAccountSettingIter"
glib:get-type="ag_account_settings_iter_get_type"
c:symbol-prefix="account_settings_iter">
<doc xml:space="preserve">Iterator for account settings.</doc>
<field name="account" writable="1">
<doc xml:space="preserve">the AgAccount to iterate over</doc>
<type name="Account" c:type="AgAccount*"/>
</field>
<field name="iter1" readable="0" private="1">
<type name="GLib.HashTableIter" c:type="GHashTableIter"/>
</field>
<field name="ptr1" readable="0" private="1">
<type name="gpointer" c:type="gpointer"/>
</field>
<field name="ptr2" readable="0" private="1">
<type name="gpointer" c:type="gpointer"/>
</field>
<field name="idx1" readable="0" private="1">
<type name="gint" c:type="gint"/>
</field>
<field name="idx2" readable="0" private="1">
<type name="gint" c:type="gint"/>
</field>
<method name="free" c:identifier="ag_account_settings_iter_free">
<doc xml:space="preserve">Frees the memory associated with an #AgAccountSettingIter.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="iter" transfer-ownership="none">
<doc xml:space="preserve">a #AgAccountSettingIter.</doc>
<type name="AccountSettingIter" c:type="AgAccountSettingIter*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_next"
c:identifier="ag_account_settings_iter_get_next"
version="1.4">
<doc xml:space="preserve">Iterates over the account keys. @iter must be an iterator previously
initialized with ag_account_settings_iter_init().</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE if @key and @value have been set, %FALSE if we there are no
more account settings to iterate over.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="iter" transfer-ownership="none">
<doc xml:space="preserve">an initialized #AgAccountSettingIter structure.</doc>
<type name="AccountSettingIter" c:type="AgAccountSettingIter*"/>
</instance-parameter>
<parameter name="key"
direction="out"
caller-allocates="0"
transfer-ownership="none">
<doc xml:space="preserve">a pointer to a string
receiving the key name.</doc>
<type name="utf8" c:type="const gchar**"/>
</parameter>
<parameter name="value"
direction="out"
caller-allocates="0"
transfer-ownership="none">
<doc xml:space="preserve">a pointer to a pointer to a
#GVariant, to receive the key value.</doc>
<type name="GLib.Variant" c:type="GVariant**"/>
</parameter>
</parameters>
</method>
<method name="next"
c:identifier="ag_account_settings_iter_next"
deprecated="1"
deprecated-version="1.4">
<doc xml:space="preserve">Iterates over the account keys. @iter must be an iterator previously
initialized with ag_account_settings_iter_init().</doc>
<doc-deprecated xml:space="preserve">Use ag_account_settings_iter_get_next() instead.</doc-deprecated>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE if @key and @value have been set, %FALSE if we there are no
more account settings to iterate over.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="iter" transfer-ownership="none">
<doc xml:space="preserve">an initialized #AgAccountSettingIter structure.</doc>
<type name="AccountSettingIter" c:type="AgAccountSettingIter*"/>
</instance-parameter>
<parameter name="key"
direction="out"
caller-allocates="0"
transfer-ownership="none">
<doc xml:space="preserve">a pointer to a string
receiving the key name.</doc>
<type name="utf8" c:type="const gchar**"/>
</parameter>
<parameter name="value"
direction="out"
caller-allocates="0"
transfer-ownership="none">
<doc xml:space="preserve">a pointer to a pointer to a
#GValue, to receive the key value.</doc>
<type name="GObject.Value" c:type="const GValue**"/>
</parameter>
</parameters>
</method>
</record>
<callback name="AccountStoreCb" c:type="AgAccountStoreCb">
<doc xml:space="preserve">This callback is invoked when storing the account settings is completed. If
@error is not %NULL, then some error occurred and the data has most likely
not been written.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="account" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccount.</doc>
<type name="Account" c:type="AgAccount*"/>
</parameter>
<parameter name="error" transfer-ownership="none">
<doc xml:space="preserve">a #GError, or %NULL.</doc>
<type name="GLib.Error" c:type="const GError*"/>
</parameter>
<parameter name="user_data" transfer-ownership="none" closure="2">
<doc xml:space="preserve">the user data that was passed to ag_account_store().</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</callback>
<record name="AccountWatch" c:type="AgAccountWatch" disguised="1">
<doc xml:space="preserve">An opaque struct returned from ag_account_watch_dir() and
ag_account_watch_key().</doc>
</record>
<enumeration name="AccountsError"
c:type="AgAccountsError"
glib:error-domain="ag_errors">
<doc xml:space="preserve">These identify the various errors that can occur with methods in
libaccounts-glib that return a #GError.</doc>
<member name="db" value="0" c:identifier="AG_ACCOUNTS_ERROR_DB">
<doc xml:space="preserve">there was an error accessing the accounts database</doc>
</member>
<member name="disposed"
value="1"
c:identifier="AG_ACCOUNTS_ERROR_DISPOSED">
<doc xml:space="preserve">the account was in the process of being
disposed</doc>
</member>
<member name="deleted"
value="2"
c:identifier="AG_ACCOUNTS_ERROR_DELETED">
<doc xml:space="preserve">the account was in the process of being deleted</doc>
</member>
<member name="db_locked"
value="3"
c:identifier="AG_ACCOUNTS_ERROR_DB_LOCKED">
<doc xml:space="preserve">the database was locked</doc>
</member>
<member name="account_not_found"
value="4"
c:identifier="AG_ACCOUNTS_ERROR_ACCOUNT_NOT_FOUND">
<doc xml:space="preserve">the requested account was not found</doc>
</member>
<member name="store_in_progress"
value="5"
c:identifier="AG_ACCOUNTS_ERROR_STORE_IN_PROGRESS">
<doc xml:space="preserve">an asynchronous store operation is
already in progress. Since 1.4</doc>
</member>
<member name="readonly"
value="6"
c:identifier="AG_ACCOUNTS_ERROR_READONLY">
<doc xml:space="preserve">the accounts DB is in read-only mode. Since 1.4</doc>
</member>
</enumeration>
<record name="Application"
c:type="AgApplication"
glib:type-name="AgApplication"
glib:get-type="ag_application_get_type"
c:symbol-prefix="application">
<doc xml:space="preserve">Opaque structure. Use related accessor functions.</doc>
<method name="get_description"
c:identifier="ag_application_get_description">
<doc xml:space="preserve">Get the description of the #AgApplication.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the description of @self.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #AgApplication.</doc>
<type name="Application" c:type="AgApplication*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_desktop_app_info"
c:identifier="ag_application_get_desktop_app_info">
<doc xml:space="preserve">Get the #GDesktopAppInfo of the application.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">the #GDesktopAppInfo for @self, or %NULL if
failed.</doc>
<type name="Gio.DesktopAppInfo" c:type="GDesktopAppInfo*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #AgApplication.</doc>
<type name="Application" c:type="AgApplication*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_i18n_domain"
c:identifier="ag_application_get_i18n_domain">
<doc xml:space="preserve">Get the translation domain of the #AgApplication.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the translation domain.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #AgApplication.</doc>
<type name="Application" c:type="AgApplication*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_name" c:identifier="ag_application_get_name">
<doc xml:space="preserve">Get the name of the #AgApplication.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the name of @self.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #AgApplication.</doc>
<type name="Application" c:type="AgApplication*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_service_usage"
c:identifier="ag_application_get_service_usage">
<doc xml:space="preserve">Get the description from the application XML file, for the specified
service; if not found, get the service-type description instead.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">usage description of the service.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #AgApplication.</doc>
<type name="Application" c:type="AgApplication*"/>
</instance-parameter>
<parameter name="service" transfer-ownership="none">
<doc xml:space="preserve">an #AgService.</doc>
<type name="Service" c:type="AgService*"/>
</parameter>
</parameters>
</method>
<method name="ref" c:identifier="ag_application_ref">
<doc xml:space="preserve">Increment the reference count of @self.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">@self.</doc>
<type name="Application" c:type="AgApplication*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #AgApplication.</doc>
<type name="Application" c:type="AgApplication*"/>
</instance-parameter>
</parameters>
</method>
<method name="unref" c:identifier="ag_application_unref">
<doc xml:space="preserve">Decrements the reference count of @self. The item is destroyed when the
count gets to 0.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #AgApplication.</doc>
<type name="Application" c:type="AgApplication*"/>
</instance-parameter>
</parameters>
</method>
</record>
<record name="AuthData"
c:type="AgAuthData"
glib:type-name="AgAuthData"
glib:get-type="ag_auth_data_get_type"
c:symbol-prefix="auth_data">
<doc xml:space="preserve">Opaque structure. Use related accessor functions.</doc>
<method name="get_credentials_id"
c:identifier="ag_auth_data_get_credentials_id"
version="1.1">
<doc xml:space="preserve">Gets the ID of the credentials associated with this account.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the credentials ID.</doc>
<type name="guint" c:type="guint"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #AgAuthData.</doc>
<type name="AuthData" c:type="AgAuthData*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_login_parameters"
c:identifier="ag_auth_data_get_login_parameters"
version="1.4">
<doc xml:space="preserve">Gets the authentication parameters.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">a floating #GVariant of type
%G_VARIANT_TYPE_VARDICT containing all the authentication parameters.</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #AgAuthData.</doc>
<type name="AuthData" c:type="AgAuthData*"/>
</instance-parameter>
<parameter name="extra_parameters"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">a #GVariant containing
client-specific authentication parameters to be added to the returned
dictionary.</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</parameter>
</parameters>
</method>
<method name="get_mechanism" c:identifier="ag_auth_data_get_mechanism">
<doc xml:space="preserve">Gets the authentication mechanism.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the authentication mechanism.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #AgAuthData.</doc>
<type name="AuthData" c:type="AgAuthData*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_method" c:identifier="ag_auth_data_get_method">
<doc xml:space="preserve">Gets the authentication method.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the authentication method.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #AgAuthData.</doc>
<type name="AuthData" c:type="AgAuthData*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_parameters"
c:identifier="ag_auth_data_get_parameters"
deprecated="1"
deprecated-version="1.4">
<doc xml:space="preserve">Gets the authentication parameters.</doc>
<doc-deprecated xml:space="preserve">use ag_auth_data_get_login_parameters() instead.</doc-deprecated>
<return-value transfer-ownership="none">
<doc xml:space="preserve">a #GHashTable
containing all the authentication parameters.</doc>
<type name="GLib.HashTable" c:type="GHashTable*">
<type name="utf8"/>
<type name="GObject.Value"/>
</type>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #AgAuthData.</doc>
<type name="AuthData" c:type="AgAuthData*"/>
</instance-parameter>
</parameters>
</method>
<method name="insert_parameters"
c:identifier="ag_auth_data_insert_parameters"
deprecated="1"
deprecated-version="1.4">
<doc xml:space="preserve">Insert the given authentication parameters into the authentication data. If
some parameters were already present, the parameters passed with this method
take precedence.</doc>
<doc-deprecated xml:space="preserve">use ag_auth_data_get_login_parameters() instead.</doc-deprecated>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #AgAuthData.</doc>
<type name="AuthData" c:type="AgAuthData*"/>
</instance-parameter>
<parameter name="parameters" transfer-ownership="none">
<doc xml:space="preserve">a #GHashTable
containing the authentication parameters to be added.</doc>
<type name="GLib.HashTable" c:type="GHashTable*">
<type name="utf8"/>
<type name="GObject.Value"/>
</type>
</parameter>
</parameters>
</method>
<method name="ref" c:identifier="ag_auth_data_ref">
<doc xml:space="preserve">Increment the reference count of @self.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">@self.</doc>
<type name="AuthData" c:type="AgAuthData*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #AgAuthData.</doc>
<type name="AuthData" c:type="AgAuthData*"/>
</instance-parameter>
</parameters>
</method>
<method name="unref" c:identifier="ag_auth_data_unref">
<doc xml:space="preserve">Decrements the reference count of @self. The item is destroyed when the
count gets to 0.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">the #AgAuthData.</doc>
<type name="AuthData" c:type="AgAuthData*"/>
</instance-parameter>
</parameters>
</method>
</record>
<enumeration name="Error" c:type="AgError">
<member name="db" value="0" c:identifier="AG_ERROR_DB">
</member>
<member name="disposed" value="1" c:identifier="AG_ERROR_DISPOSED">
</member>
<member name="deleted" value="2" c:identifier="AG_ERROR_DELETED">
</member>
<member name="db_locked" value="3" c:identifier="AG_ERROR_DB_LOCKED">
</member>
<member name="account_not_found"
value="4"
c:identifier="AG_ERROR_ACCOUNT_NOT_FOUND">
</member>
</enumeration>
<constant name="MANAGER_INTERFACE"
value="com.google.code.AccountsSSO.Accounts.Manager"
c:type="AG_MANAGER_INTERFACE">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MANAGER_OBJECT_PATH"
value="/com/google/code/AccountsSSO/Accounts/Manager"
c:type="AG_MANAGER_OBJECT_PATH">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="MANAGER_SERVICE_NAME"
value="com.google.code.AccountsSSO.Accounts.Manager"
c:type="AG_MANAGER_SERVICE_NAME">
<type name="utf8" c:type="gchar*"/>
</constant>
<class name="Manager"
c:symbol-prefix="manager"
c:type="AgManager"
parent="GObject.Object"
glib:type-name="AgManager"
glib:get-type="ag_manager_get_type"
glib:type-struct="ManagerClass">
<doc xml:space="preserve">Opaque structure. Use related accessor functions.</doc>
<implements name="Gio.Initable"/>
<constructor name="new" c:identifier="ag_manager_new">
<doc xml:space="preserve">Create a new #AgManager.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">an instance of an #AgManager.</doc>
<type name="Manager" c:type="AgManager*"/>
</return-value>
</constructor>
<constructor name="new_for_service_type"
c:identifier="ag_manager_new_for_service_type">
<doc xml:space="preserve">Create a new #AgManager with the service type with the name @service_type.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">an #AgManager instance with the specified service type.</doc>
<type name="Manager" c:type="AgManager*"/>
</return-value>
<parameters>
<parameter name="service_type" transfer-ownership="none">
<doc xml:space="preserve">the name of a service type</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</constructor>
<function name="list_free" c:identifier="ag_manager_list_free">
<doc xml:space="preserve">Frees the memory taken by a #GList of #AgAccountId allocated by #AgManager,
such as by ag_manager_list(), ag_manager_list_enabled() or
ag_manager_list_enabled_by_service_type().</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="list" transfer-ownership="none">
<doc xml:space="preserve">a #GList returned from a #AgManager
method which returns account IDs.</doc>
<type name="GLib.List" c:type="GList*">
<type name="AccountId"/>
</type>
</parameter>
</parameters>
</function>
<virtual-method name="account_deleted">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<type name="Manager" c:type="AgManager*"/>
</instance-parameter>
<parameter name="id" transfer-ownership="none">
<type name="AccountId" c:type="AgAccountId"/>
</parameter>
</parameters>
</virtual-method>
<method name="create_account" c:identifier="ag_manager_create_account">
<doc xml:space="preserve">Create a new account. The account is not stored in the database until
ag_account_store() has successfully returned; the @id field in the
#AgAccount structure is also not meant to be valid until the account has
been stored.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new #AgAccount, or %NULL.</doc>
<type name="Account" c:type="AgAccount*"/>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">the #AgManager.</doc>
<type name="Manager" c:type="AgManager*"/>
</instance-parameter>
<parameter name="provider_name" transfer-ownership="none">
<doc xml:space="preserve">name of the provider of the account.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="get_abort_on_db_timeout"
c:identifier="ag_manager_get_abort_on_db_timeout">
<doc xml:space="preserve">Get whether the library will abort when a timeout error occurs.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE is the library will abort when a timeout error occurs, %FALSE
otherwise.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">the #AgManager.</doc>
<type name="Manager" c:type="AgManager*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_account" c:identifier="ag_manager_get_account">
<doc xml:space="preserve">Instantiates the object representing the account identified by
@account_id.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">an #AgAccount, on which the client must call
g_object_unref() when it is no longer required, or %NULL if an error occurs.</doc>
<type name="Account" c:type="AgAccount*"/>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">the #AgManager.</doc>
<type name="Manager" c:type="AgManager*"/>
</instance-parameter>
<parameter name="account_id" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccountId of the account.</doc>
<type name="AccountId" c:type="AgAccountId"/>
</parameter>
</parameters>
</method>
<method name="get_account_services"
c:identifier="ag_manager_get_account_services">
<doc xml:space="preserve">Gets all the account services. If the @manager was created for a
specific service type, only services with that type will be returned.
<note>
<para>
This method causes the loading of all the service settings for all the
returned accounts (unless they have been loaded previously). If you are
interested in a specific account/service, consider using
ag_manager_load_account() to first load the the account, and then create
the AgAccountService for that account only.
</para>
</note></doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a list of
#AgAccountService objects. When done with it, call g_object_unref() on the
list elements, and g_list_free() on the container.</doc>
<type name="GLib.List" c:type="GList*">
<type name="AccountService"/>
</type>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">the #AgManager.</doc>
<type name="Manager" c:type="AgManager*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_application" c:identifier="ag_manager_get_application">
<doc xml:space="preserve">Search for @application_name in the list of applications, and return a new
#AgApplication if a matching application was found.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new #AgApplication if one was found, %NULL otherwise</doc>
<type name="Application" c:type="AgApplication*"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve">an #AgManager</doc>
<type name="Manager" c:type="AgManager*"/>
</instance-parameter>
<parameter name="application_name" transfer-ownership="none">
<doc xml:space="preserve">the name of an application to search for</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="get_db_timeout" c:identifier="ag_manager_get_db_timeout">
<doc xml:space="preserve">Get the timeout of database operations for @manager, in milliseconds.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the timeout (in milliseconds) for database operations.</doc>
<type name="guint" c:type="guint"/>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">the #AgManager.</doc>
<type name="Manager" c:type="AgManager*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_enabled_account_services"
c:identifier="ag_manager_get_enabled_account_services">
<doc xml:space="preserve">Gets all the enabled account services. If the @manager was created for a
specific service type, only services with that type will be returned.
<note>
<para>
This method causes the loading of all the service settings for all the
returned accounts (unless they have been loaded previously). If you are
interested in a specific account/service, consider using
ag_manager_load_account() to first load the the account, and then create
the AgAccountService for that account only.
</para>
</note></doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a list of
#AgAccountService objects. When done with it, call g_object_unref() on the
list elements, and g_list_free() on the container.</doc>
<type name="GLib.List" c:type="GList*">
<type name="AccountService"/>
</type>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">the #AgManager.</doc>
<type name="Manager" c:type="AgManager*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_provider" c:identifier="ag_manager_get_provider">
<doc xml:space="preserve">Loads the provider identified by @provider_name.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">an #AgProvider, which must be free'd with ag_provider_unref() when
no longer required.</doc>
<type name="Provider" c:type="AgProvider*"/>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">the #AgManager.</doc>
<type name="Manager" c:type="AgManager*"/>
</instance-parameter>
<parameter name="provider_name" transfer-ownership="none">
<doc xml:space="preserve">the name of the provider.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="get_service" c:identifier="ag_manager_get_service">
<doc xml:space="preserve">Loads the service identified by @service_name.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">an #AgService, which must be free'd with ag_service_unref() when no
longer required.</doc>
<type name="Service" c:type="AgService*"/>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">the #AgManager.</doc>
<type name="Manager" c:type="AgManager*"/>
</instance-parameter>
<parameter name="service_name" transfer-ownership="none">
<doc xml:space="preserve">the name of the service.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="get_service_type"
c:identifier="ag_manager_get_service_type">
<doc xml:space="preserve">Get the service type for @manager.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the name of the service type for the supplied @manager.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">the #AgManager.</doc>
<type name="Manager" c:type="AgManager*"/>
</instance-parameter>
</parameters>
</method>
<method name="list" c:identifier="ag_manager_list">
<doc xml:space="preserve">Lists the accounts. If the #AgManager is created with a specified
#AgManager:service-type, it will return only the accounts supporting this
service type.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a #GList of
#AgAccountId representing the accounts. Must be free'd with
ag_manager_list_free() when no longer required.</doc>
<type name="GLib.List" c:type="GList*">
<type name="AccountId"/>
</type>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">the #AgManager.</doc>
<type name="Manager" c:type="AgManager*"/>
</instance-parameter>
</parameters>
</method>
<method name="list_applications_by_service"
c:identifier="ag_manager_list_applications_by_service">
<doc xml:space="preserve">Lists the registered applications which support the given service.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a #GList of all the
applications which have declared support for the given service or for its
service type.</doc>
<type name="GLib.List" c:type="GList*">
<type name="Application"/>
</type>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">the #AgManager.</doc>
<type name="Manager" c:type="AgManager*"/>
</instance-parameter>
<parameter name="service" transfer-ownership="none">
<doc xml:space="preserve">the #AgService for which we want to get the applications list.</doc>
<type name="Service" c:type="AgService*"/>
</parameter>
</parameters>
</method>
<method name="list_by_service_type"
c:identifier="ag_manager_list_by_service_type">
<doc xml:space="preserve">Lists the accounts supporting the given service type.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a #GList of
#AgAccountId representing the accounts. Must be free'd with
ag_manager_list_free() when no longer required.</doc>
<type name="GLib.List" c:type="GList*">
<type name="AccountId"/>
</type>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">the #AgManager.</doc>
<type name="Manager" c:type="AgManager*"/>
</instance-parameter>
<parameter name="service_type" transfer-ownership="none">
<doc xml:space="preserve">the name of the service type to check for.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="list_enabled" c:identifier="ag_manager_list_enabled">
<doc xml:space="preserve">Lists the enabled accounts.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a #GList of the enabled
#AgAccountId representing the accounts. Must be free'd with
ag_manager_list_free() when no longer required.</doc>
<type name="GLib.List" c:type="GList*">
<type name="AccountId"/>
</type>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">the #AgManager.</doc>
<type name="Manager" c:type="AgManager*"/>
</instance-parameter>
</parameters>
</method>
<method name="list_enabled_by_service_type"
c:identifier="ag_manager_list_enabled_by_service_type">
<doc xml:space="preserve">Lists the enabled accounts supporting the given service type.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a #GList of the enabled
#AgAccountId representing the accounts. Must be free'd with
ag_manager_list_free() when no longer required.</doc>
<type name="GLib.List" c:type="GList*">
<type name="AccountId"/>
</type>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">the #AgManager.</doc>
<type name="Manager" c:type="AgManager*"/>
</instance-parameter>
<parameter name="service_type" transfer-ownership="none">
<doc xml:space="preserve">the name of the service type to check for.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="list_providers" c:identifier="ag_manager_list_providers">
<doc xml:space="preserve">Gets a list of all the installed providers.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a list of #AgProvider,
which must be then free'd with ag_provider_list_free().</doc>
<type name="GLib.List" c:type="GList*">
<type name="Provider"/>
</type>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">the #AgManager.</doc>
<type name="Manager" c:type="AgManager*"/>
</instance-parameter>
</parameters>
</method>
<method name="list_service_types"
c:identifier="ag_manager_list_service_types">
<doc xml:space="preserve">Gets a list of all the installed service types.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a list of
#AgServiceType, which must be free'd with ag_service_type_list_free() when
no longer required.</doc>
<type name="GLib.List" c:type="GList*">
<type name="ServiceType"/>
</type>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">the #AgManager.</doc>
<type name="Manager" c:type="AgManager*"/>
</instance-parameter>
</parameters>
</method>
<method name="list_services" c:identifier="ag_manager_list_services">
<doc xml:space="preserve">Gets a list of all the installed services.
If the #AgManager was created with a specified #AgManager:service_type
it will return only the installed services supporting that service type.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a list of #AgService,
which must be free'd with ag_service_list_free() when no longer required.</doc>
<type name="GLib.List" c:type="GList*">
<type name="Service"/>
</type>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">the #AgManager.</doc>
<type name="Manager" c:type="AgManager*"/>
</instance-parameter>
</parameters>
</method>
<method name="list_services_by_type"
c:identifier="ag_manager_list_services_by_type">
<doc xml:space="preserve">Gets a list of all the installed services where the service type name is
@service_type.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a list of #AgService,
which must be free'd with ag_service_list_free() when no longer required.</doc>
<type name="GLib.List" c:type="GList*">
<type name="Service"/>
</type>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">the #AgManager.</doc>
<type name="Manager" c:type="AgManager*"/>
</instance-parameter>
<parameter name="service_type" transfer-ownership="none">
<doc xml:space="preserve">the type of the service.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="load_account"
c:identifier="ag_manager_load_account"
throws="1">
<doc xml:space="preserve">Instantiates the object representing the account identified by
@account_id.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">an #AgAccount, on which the client must call
g_object_unref() when it is no longer required, or %NULL if an error occurs.</doc>
<type name="Account" c:type="AgAccount*"/>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">the #AgManager.</doc>
<type name="Manager" c:type="AgManager*"/>
</instance-parameter>
<parameter name="account_id" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccountId of the account.</doc>
<type name="AccountId" c:type="AgAccountId"/>
</parameter>
</parameters>
</method>
<method name="load_service_type"
c:identifier="ag_manager_load_service_type">
<doc xml:space="preserve">Instantiate the service type with the name @service_type.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">an #AgServiceType, which must be free'd with
ag_service_type_unref() when no longer required.</doc>
<type name="ServiceType" c:type="AgServiceType*"/>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">the #AgManager.</doc>
<type name="Manager" c:type="AgManager*"/>
</instance-parameter>
<parameter name="service_type" transfer-ownership="none">
<doc xml:space="preserve">the name of the service type.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="set_abort_on_db_timeout"
c:identifier="ag_manager_set_abort_on_db_timeout">
<doc xml:space="preserve">Tells libaccounts whether it should make the client application abort when
a timeout error occurs. The default is %FALSE.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">the #AgManager.</doc>
<type name="Manager" c:type="AgManager*"/>
</instance-parameter>
<parameter name="abort" transfer-ownership="none">
<doc xml:space="preserve">whether to abort when a DB timeout occurs.</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</method>
<method name="set_db_timeout" c:identifier="ag_manager_set_db_timeout">
<doc xml:space="preserve">Sets the timeout for database operations. This tells the library how long
it is allowed to block while waiting for a locked DB to become accessible.
Higher values mean a higher chance of successful reads, but also mean that
the execution might be blocked for a longer time.
The default is 5 seconds.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">the #AgManager.</doc>
<type name="Manager" c:type="AgManager*"/>
</instance-parameter>
<parameter name="timeout_ms" transfer-ownership="none">
<doc xml:space="preserve">the new timeout, in milliseconds.</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</method>
<property name="abort-on-db-timeout"
writable="1"
transfer-ownership="none">
<doc xml:space="preserve">Whether to abort the application when a database timeout occurs.</doc>
<type name="gboolean" c:type="gboolean"/>
</property>
<property name="db-timeout" writable="1" transfer-ownership="none">
<doc xml:space="preserve">Timeout for database operations, in milliseconds.</doc>
<type name="guint" c:type="guint"/>
</property>
<property name="service-type"
writable="1"
construct-only="1"
transfer-ownership="none">
<doc xml:space="preserve">If the service type is set, certain operations on the #AgManager, such
as ag_manager_list() and ag_manager_list_services(), will be restricted
to only affect accounts or services with that service type.</doc>
<type name="utf8" c:type="gchar*"/>
</property>
<property name="use-dbus"
writable="1"
construct-only="1"
transfer-ownership="none">
<doc xml:space="preserve">Whether to use D-Bus for inter-process change notification. Setting this
property to %FALSE causes libaccounts not to emit the change
notification signals, and also not react to changes made by other
processes. Disabling D-Bus is only meant to be used for specific cases,
such as maintenance programs.</doc>
<type name="gboolean" c:type="gboolean"/>
</property>
<field name="parent_instance">
<type name="GObject.Object" c:type="GObject"/>
</field>
<field name="priv" readable="0" private="1">
<type name="ManagerPrivate" c:type="AgManagerPrivate*"/>
</field>
<glib:signal name="account-created" when="last">
<doc xml:space="preserve">Emitted when a new account has been created; note that the account must
have been stored in the database: the signal is not emitted just in
response to ag_manager_create_account().</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="account_id" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccountId of the account that has been created.</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="account-deleted" when="last">
<doc xml:space="preserve">Emitted when an account has been deleted.
This signal is redundant with #AgAccount::deleted, but it is convenient
to provide full change notification with #AgManager.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="account_id" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccountId of the account that has been deleted.</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="account-updated" when="last">
<doc xml:space="preserve">Emitted when particular service of an account has been updated.
This signal is redundant with #AgAccount::deleted, but it is convenient
to provide full change notification with #AgManager.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="account_id" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccountId of the account that has been update.</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="enabled-event" when="last">
<doc xml:space="preserve">If the manager has been created with ag_manager_new_for_service_type(),
this signal will be emitted when an account (identified by @account_id)
has been modified in such a way that the application might be interested
to start or stop using it: the "enabled" flag on the account or in some
service supported by the account and matching the
#AgManager:service-type have changed.
In practice, this signal might be emitted more often than when strictly
needed; applications must call ag_account_list_enabled_services() or
ag_manager_list_enabled() to get the current state.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="account_id" transfer-ownership="none">
<doc xml:space="preserve">the #AgAccountId of the account that has been enabled.</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</glib:signal>
</class>
<record name="ManagerClass"
c:type="AgManagerClass"
glib:is-gtype-struct-for="Manager">
<doc xml:space="preserve">Use the accessor functions below.</doc>
<field name="parent_class">
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
<field name="account_deleted">
<callback name="account_deleted">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="manager" transfer-ownership="none">
<type name="Manager" c:type="AgManager*"/>
</parameter>
<parameter name="id" transfer-ownership="none">
<type name="AccountId" c:type="AgAccountId"/>
</parameter>
</parameters>
</callback>
</field>
<field name="_ag_reserved2" introspectable="0">
<callback name="_ag_reserved2">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="_ag_reserved3" introspectable="0">
<callback name="_ag_reserved3">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="_ag_reserved4" introspectable="0">
<callback name="_ag_reserved4">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="_ag_reserved5" introspectable="0">
<callback name="_ag_reserved5">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="_ag_reserved6" introspectable="0">
<callback name="_ag_reserved6">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
<field name="_ag_reserved7" introspectable="0">
<callback name="_ag_reserved7">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</callback>
</field>
</record>
<record name="ManagerPrivate" c:type="AgManagerPrivate" disguised="1">
</record>
<record name="Provider"
c:type="AgProvider"
glib:type-name="AgProvider"
glib:get-type="ag_provider_get_type"
c:symbol-prefix="provider">
<doc xml:space="preserve">Opaque structure. Use related accessor functions.</doc>
<method name="get_description"
c:identifier="ag_provider_get_description"
version="1.2">
<doc xml:space="preserve">Get the description of the #AgProvider.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the description of @provider, or %NULL upon failure.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="provider" transfer-ownership="none">
<doc xml:space="preserve">the #AgProvider.</doc>
<type name="Provider" c:type="AgProvider*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_display_name"
c:identifier="ag_provider_get_display_name">
<doc xml:space="preserve">Get the display name of the #AgProvider.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the display name of @provider.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="provider" transfer-ownership="none">
<doc xml:space="preserve">the #AgProvider.</doc>
<type name="Provider" c:type="AgProvider*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_domains_regex"
c:identifier="ag_provider_get_domains_regex"
version="1.1">
<doc xml:space="preserve">Get a regular expression matching all domains where this provider's accounts
can be used.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">a regular expression matching the domain names.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="provider" transfer-ownership="none">
<doc xml:space="preserve">the #AgProvider.</doc>
<type name="Provider" c:type="AgProvider*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_file_contents"
c:identifier="ag_provider_get_file_contents">
<doc xml:space="preserve">Gets the contents of the XML provider file. The buffer returned in @contents
should not be modified or freed, and is guaranteed to be valid as long as
@provider is referenced.
If some error occurs, @contents is set to %NULL.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="provider" transfer-ownership="none">
<doc xml:space="preserve">the #AgProvider.</doc>
<type name="Provider" c:type="AgProvider*"/>
</instance-parameter>
<parameter name="contents" transfer-ownership="none">
<doc xml:space="preserve">location to receive the pointer to the file contents.</doc>
<type name="utf8" c:type="const gchar**"/>
</parameter>
</parameters>
</method>
<method name="get_i18n_domain"
c:identifier="ag_provider_get_i18n_domain">
<doc xml:space="preserve">Get the translation domain of the #AgProvider.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the translation domain.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="provider" transfer-ownership="none">
<doc xml:space="preserve">the #AgProvider.</doc>
<type name="Provider" c:type="AgProvider*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_icon_name" c:identifier="ag_provider_get_icon_name">
<doc xml:space="preserve">Get the icon name of the #AgProvider.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the icon_name.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="provider" transfer-ownership="none">
<doc xml:space="preserve">the #AgProvider.</doc>
<type name="Provider" c:type="AgProvider*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_name" c:identifier="ag_provider_get_name">
<doc xml:space="preserve">Get the name of the #AgProvider.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the name of @provider.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="provider" transfer-ownership="none">
<doc xml:space="preserve">the #AgProvider.</doc>
<type name="Provider" c:type="AgProvider*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_plugin_name"
c:identifier="ag_provider_get_plugin_name"
version="1.5">
<doc xml:space="preserve">Get the name of the account plugin which manages all accounts created from
this #AgProvider.
Some platforms might find it useful to store plugin names in the provider
XML files, especially when the same plugin can work for different providers.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the plugin name for @provider, or %NULL if a plugin name is not
defined.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="provider" transfer-ownership="none">
<doc xml:space="preserve">the #AgProvider.</doc>
<type name="Provider" c:type="AgProvider*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_single_account"
c:identifier="ag_provider_get_single_account"
version="1.14">
<doc xml:space="preserve">Tell whether the provider doesn't support creating more than one account.
Note that libaccounts itself does not enforce preventing the creation of
multiple accounts when this flag is set: the flag is only informative, and
its implementation is left to the client.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%FALSE if multiple accounts can be created from this provider,
%TRUE otherwise.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="provider" transfer-ownership="none">
<doc xml:space="preserve">the #AgProvider.</doc>
<type name="Provider" c:type="AgProvider*"/>
</instance-parameter>
</parameters>
</method>
<method name="match_domain"
c:identifier="ag_provider_match_domain"
version="1.2">
<doc xml:space="preserve">Check whether @domain is supported by this provider, by matching it with the
regex returned by ag_provider_get_domains_regex().
If the provider does not define a regular expression to match the supported
domains, this function will return %FALSE.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE if the given domain is supported, %FALSE otherwise.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="provider" transfer-ownership="none">
<doc xml:space="preserve">the #AgProvider.</doc>
<type name="Provider" c:type="AgProvider*"/>
</instance-parameter>
<parameter name="domain" transfer-ownership="none">
<doc xml:space="preserve">a domain name.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="ref" c:identifier="ag_provider_ref">
<doc xml:space="preserve">Adds a reference to @provider.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">@provider.</doc>
<type name="Provider" c:type="AgProvider*"/>
</return-value>
<parameters>
<instance-parameter name="provider" transfer-ownership="none">
<doc xml:space="preserve">the #AgProvider.</doc>
<type name="Provider" c:type="AgProvider*"/>
</instance-parameter>
</parameters>
</method>
<method name="unref" c:identifier="ag_provider_unref">
<doc xml:space="preserve">Used to unreference the #AgProvider structure.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="provider" transfer-ownership="none">
<doc xml:space="preserve">the #AgProvider.</doc>
<type name="Provider" c:type="AgProvider*"/>
</instance-parameter>
</parameters>
</method>
<function name="list_free" c:identifier="ag_provider_list_free">
<doc xml:space="preserve">Frees the list @list.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="list" transfer-ownership="none">
<doc xml:space="preserve">a #GList of providers returned by some
function of this library.</doc>
<type name="GLib.List" c:type="GList*">
<type name="Provider"/>
</type>
</parameter>
</parameters>
</function>
</record>
<record name="Service"
c:type="AgService"
glib:type-name="AgService"
glib:get-type="ag_service_get_type"
c:symbol-prefix="service">
<doc xml:space="preserve">Opaque structure. Use related accessor functions.</doc>
<method name="get_description"
c:identifier="ag_service_get_description"
version="1.2">
<doc xml:space="preserve">Gets the description of the #AgService.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the description of @service, or %NULL upon failure.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="service" transfer-ownership="none">
<doc xml:space="preserve">the #AgService.</doc>
<type name="Service" c:type="AgService*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_display_name"
c:identifier="ag_service_get_display_name">
<doc xml:space="preserve">Gets the display name of the #AgService.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the display name of @service.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="service" transfer-ownership="none">
<doc xml:space="preserve">the #AgService.</doc>
<type name="Service" c:type="AgService*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_file_contents"
c:identifier="ag_service_get_file_contents">
<doc xml:space="preserve">Gets the contents of the XML service file. The buffer returned in @contents
should not be modified or freed, and is guaranteed to be valid as long as
@service is referenced. If @data_offset is not %NULL, it is set to the
offset where the &lt;type_data&gt; element can be found.
If some error occurs, @contents is set to %NULL.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="service" transfer-ownership="none">
<doc xml:space="preserve">the #AgService.</doc>
<type name="Service" c:type="AgService*"/>
</instance-parameter>
<parameter name="contents" transfer-ownership="none">
<doc xml:space="preserve">location to receive the pointer to the file contents.</doc>
<type name="utf8" c:type="const gchar**"/>
</parameter>
<parameter name="data_offset" transfer-ownership="none">
<doc xml:space="preserve">pointer to receive the offset of the type data.</doc>
<type name="gsize" c:type="gsize*"/>
</parameter>
</parameters>
</method>
<method name="get_i18n_domain" c:identifier="ag_service_get_i18n_domain">
<doc xml:space="preserve">Gets the translation domain of the #AgService.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the name of the translation catalog.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="service" transfer-ownership="none">
<doc xml:space="preserve">the #AgService.</doc>
<type name="Service" c:type="AgService*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_icon_name" c:identifier="ag_service_get_icon_name">
<doc xml:space="preserve">Gets the icon name of the #AgService.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the name of the icon of @service.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="service" transfer-ownership="none">
<doc xml:space="preserve">the #AgService.</doc>
<type name="Service" c:type="AgService*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_name" c:identifier="ag_service_get_name">
<doc xml:space="preserve">Gets the name of the #AgService.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the name of @service.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="service" transfer-ownership="none">
<doc xml:space="preserve">the #AgService.</doc>
<type name="Service" c:type="AgService*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_provider" c:identifier="ag_service_get_provider">
<doc xml:space="preserve">Gets the provider name of the #AgService.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the name of the provider of @service.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="service" transfer-ownership="none">
<doc xml:space="preserve">the #AgService.</doc>
<type name="Service" c:type="AgService*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_service_type"
c:identifier="ag_service_get_service_type">
<doc xml:space="preserve">Gets the service type of the #AgService.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the type of @service.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="service" transfer-ownership="none">
<doc xml:space="preserve">the #AgService.</doc>
<type name="Service" c:type="AgService*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_tags" c:identifier="ag_service_get_tags">
<doc xml:space="preserve">Get list of tags specified for the #AgService. If the service has not
defined tags, tags from the service type will be returned.</doc>
<return-value transfer-ownership="container">
<doc xml:space="preserve">#GList of tags for
@service. The list must be freed with g_list_free(). Entries are owned by
the #AgService type and must not be free'd.</doc>
<type name="GLib.List" c:type="GList*">
<type name="utf8"/>
</type>
</return-value>
<parameters>
<instance-parameter name="service" transfer-ownership="none">
<doc xml:space="preserve">the #AgService.</doc>
<type name="Service" c:type="AgService*"/>
</instance-parameter>
</parameters>
</method>
<method name="has_tag" c:identifier="ag_service_has_tag">
<doc xml:space="preserve">Checks if the #AgService has the requested tag.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">TRUE if #AgService has the tag, FALSE otherwise</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="service" transfer-ownership="none">
<doc xml:space="preserve">the #AgService.</doc>
<type name="Service" c:type="AgService*"/>
</instance-parameter>
<parameter name="tag" transfer-ownership="none">
<doc xml:space="preserve">tag to check for.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="ref" c:identifier="ag_service_ref">
<doc xml:space="preserve">Adds a reference to @service.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">@service.</doc>
<type name="Service" c:type="AgService*"/>
</return-value>
<parameters>
<instance-parameter name="service" transfer-ownership="none">
<doc xml:space="preserve">the #AgService.</doc>
<type name="Service" c:type="AgService*"/>
</instance-parameter>
</parameters>
</method>
<method name="unref" c:identifier="ag_service_unref">
<doc xml:space="preserve">Used to unreference the #AgService structure.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="service" transfer-ownership="none">
<doc xml:space="preserve">the #AgService.</doc>
<type name="Service" c:type="AgService*"/>
</instance-parameter>
</parameters>
</method>
<function name="list_free" c:identifier="ag_service_list_free">
<doc xml:space="preserve">Frees the list @list.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="list" transfer-ownership="none">
<doc xml:space="preserve">a #GList of services returned by some
function of this library.</doc>
<type name="GLib.List" c:type="GList*">
<type name="Service"/>
</type>
</parameter>
</parameters>
</function>
</record>
<record name="ServiceType"
c:type="AgServiceType"
glib:type-name="AgServiceType"
glib:get-type="ag_service_type_get_type"
c:symbol-prefix="service_type">
<doc xml:space="preserve">Opaque structure. Use related accessor functions.</doc>
<method name="get_description"
c:identifier="ag_service_type_get_description"
version="1.2">
<doc xml:space="preserve">Get the description of the #AgServiceType.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the description of @service_type, or %NULL upon failure.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="service_type" transfer-ownership="none">
<doc xml:space="preserve">the #AgServiceType.</doc>
<type name="ServiceType" c:type="AgServiceType*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_display_name"
c:identifier="ag_service_type_get_display_name">
<doc xml:space="preserve">Get the display name of the #AgServiceType.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the display name of @service_type.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="service_type" transfer-ownership="none">
<doc xml:space="preserve">the #AgServiceType.</doc>
<type name="ServiceType" c:type="AgServiceType*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_file_contents"
c:identifier="ag_service_type_get_file_contents">
<doc xml:space="preserve">Gets the contents of the XML service type file. The buffer returned in
@contents should not be modified or freed, and is guaranteed to be valid as
long as @service_type is referenced.
If some error occurs, @contents is set to %NULL.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="service_type" transfer-ownership="none">
<doc xml:space="preserve">the #AgServiceType.</doc>
<type name="ServiceType" c:type="AgServiceType*"/>
</instance-parameter>
<parameter name="contents" transfer-ownership="none">
<doc xml:space="preserve">location to receive the pointer to the file contents.</doc>
<type name="utf8" c:type="const gchar**"/>
</parameter>
<parameter name="len" transfer-ownership="none">
<doc xml:space="preserve">location to receive the length of the file, in bytes.</doc>
<type name="gsize" c:type="gsize*"/>
</parameter>
</parameters>
</method>
<method name="get_i18n_domain"
c:identifier="ag_service_type_get_i18n_domain">
<doc xml:space="preserve">Get the translation domain of the #AgServiceType.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the translation domain.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="service_type" transfer-ownership="none">
<doc xml:space="preserve">the #AgServiceType.</doc>
<type name="ServiceType" c:type="AgServiceType*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_icon_name"
c:identifier="ag_service_type_get_icon_name">
<doc xml:space="preserve">Get the icon name of the #AgServiceType.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the name of the icon of @service_type.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="service_type" transfer-ownership="none">
<doc xml:space="preserve">the #AgServiceType.</doc>
<type name="ServiceType" c:type="AgServiceType*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_name" c:identifier="ag_service_type_get_name">
<doc xml:space="preserve">Get the name of the #AgServiceType.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the name of @service_type.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="service_type" transfer-ownership="none">
<doc xml:space="preserve">the #AgServiceType.</doc>
<type name="ServiceType" c:type="AgServiceType*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_tags" c:identifier="ag_service_type_get_tags">
<doc xml:space="preserve">Get list of tags specified for the #AgServiceType.</doc>
<return-value transfer-ownership="container">
<doc xml:space="preserve">#GList of tags for
@service_type.
The list must be freed with g_list_free(). Entries are owned by the
#AgServiceType type and must not be free'd.</doc>
<type name="GLib.List" c:type="GList*">
<type name="utf8"/>
</type>
</return-value>
<parameters>
<instance-parameter name="service_type" transfer-ownership="none">
<doc xml:space="preserve">the #AgServiceType.</doc>
<type name="ServiceType" c:type="AgServiceType*"/>
</instance-parameter>
</parameters>
</method>
<method name="has_tag" c:identifier="ag_service_type_has_tag">
<doc xml:space="preserve">Check if the #AgServiceType has the requested tag.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">TRUE if the #AgServiceType has the tag, FALSE otherwise</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="service_type" transfer-ownership="none">
<doc xml:space="preserve">the #AgServiceType.</doc>
<type name="ServiceType" c:type="AgServiceType*"/>
</instance-parameter>
<parameter name="tag" transfer-ownership="none">
<doc xml:space="preserve">the tag to check for.</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="ref" c:identifier="ag_service_type_ref">
<doc xml:space="preserve">Adds a reference to @service_type.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">@service_type.</doc>
<type name="ServiceType" c:type="AgServiceType*"/>
</return-value>
<parameters>
<instance-parameter name="service_type" transfer-ownership="none">
<doc xml:space="preserve">the #AgServiceType.</doc>
<type name="ServiceType" c:type="AgServiceType*"/>
</instance-parameter>
</parameters>
</method>
<method name="unref" c:identifier="ag_service_type_unref">
<doc xml:space="preserve">Used to unreference the #AgServiceType structure.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="service_type" transfer-ownership="none">
<doc xml:space="preserve">the #AgServiceType.</doc>
<type name="ServiceType" c:type="AgServiceType*"/>
</instance-parameter>
</parameters>
</method>
<function name="list_free" c:identifier="ag_service_type_list_free">
<doc xml:space="preserve">Frees the list @list.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="list" transfer-ownership="none">
<doc xml:space="preserve">a #GList of service types returned by
some function of this library, such as ag_manager_list_service_types().</doc>
<type name="GLib.List" c:type="GList*">
<type name="ServiceType"/>
</type>
</parameter>
</parameters>
</function>
</record>
<enumeration name="SettingSource" c:type="AgSettingSource">
<doc xml:space="preserve">The source of a setting on a #AgAccount.</doc>
<member name="none" value="0" c:identifier="AG_SETTING_SOURCE_NONE">
<doc xml:space="preserve">the setting is not present</doc>
</member>
<member name="account"
value="1"
c:identifier="AG_SETTING_SOURCE_ACCOUNT">
<doc xml:space="preserve">the setting comes from the current account
configuration</doc>
</member>
<member name="profile"
value="2"
c:identifier="AG_SETTING_SOURCE_PROFILE">
<doc xml:space="preserve">the setting comes from the predefined profile</doc>
</member>
</enumeration>
<function name="accounts_error_quark"
c:identifier="ag_accounts_error_quark">
<return-value transfer-ownership="none">
<type name="GLib.Quark" c:type="GQuark"/>
</return-value>
</function>
<function name="errors_quark" c:identifier="ag_errors_quark">
<return-value transfer-ownership="none">
<type name="GLib.Quark" c:type="GQuark"/>
</return-value>
</function>
<function name="provider_list_free"
c:identifier="ag_provider_list_free"
moved-to="Provider.list_free">
<doc xml:space="preserve">Frees the list @list.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="list" transfer-ownership="none">
<doc xml:space="preserve">a #GList of providers returned by some
function of this library.</doc>
<type name="GLib.List" c:type="GList*">
<type name="Provider"/>
</type>
</parameter>
</parameters>
</function>
<function name="service_list_free"
c:identifier="ag_service_list_free"
moved-to="Service.list_free">
<doc xml:space="preserve">Frees the list @list.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="list" transfer-ownership="none">
<doc xml:space="preserve">a #GList of services returned by some
function of this library.</doc>
<type name="GLib.List" c:type="GList*">
<type name="Service"/>
</type>
</parameter>
</parameters>
</function>
<function name="service_type_list_free"
c:identifier="ag_service_type_list_free"
moved-to="ServiceType.list_free">
<doc xml:space="preserve">Frees the list @list.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="list" transfer-ownership="none">
<doc xml:space="preserve">a #GList of service types returned by
some function of this library, such as ag_manager_list_service_types().</doc>
<type name="GLib.List" c:type="GList*">
<type name="ServiceType"/>
</type>
</parameter>
</parameters>
</function>
</namespace>
</repository>
|