This file is indexed.

/usr/share/doc/libghc-gio-doc/html/gio.txt is in libghc-gio-doc 0.13.3.1-1.

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
-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Binding to GIO
--   
--   GIO is striving to provide a modern, easy-to-use VFS API that sits at
--   the right level in the library stack. The goal is to overcome the
--   shortcomings of GnomeVFS and provide an API that is so good that
--   developers prefer it over raw POSIX calls. Among other things that
--   means using GObject. It also means not cloning the POSIX API, but
--   providing higher-level, document-centric interfaces.
@package gio
@version 0.13.3.1


module System.GIO.Enums

-- | Flags used when querying a <tt>FileInfo</tt>.
data FileQueryInfoFlags
FileQueryInfoNone :: FileQueryInfoFlags
FileQueryInfoNofollowSymlinks :: FileQueryInfoFlags
data FileCreateFlags
FileCreateNone :: FileCreateFlags
FileCreatePrivate :: FileCreateFlags
FileCreateReplaceDestination :: FileCreateFlags

-- | Flags used when copying or moving files.
data FileCopyFlags
FileCopyNone :: FileCopyFlags
FileCopyOverwrite :: FileCopyFlags
FileCopyBackup :: FileCopyFlags
FileCopyNofollowSymlinks :: FileCopyFlags
FileCopyAllMetadata :: FileCopyFlags
FileCopyNoFallbackForMove :: FileCopyFlags
FileCopyTargetDefaultPerms :: FileCopyFlags

-- | Flags used to set what a <tt>FileMonitor</tt> will watch for.
data FileMonitorFlags
FileMonitorNone :: FileMonitorFlags
FileMonitorWatchMounts :: FileMonitorFlags
FileMonitorSendMoved :: FileMonitorFlags
FileMonitorWatchHardLinks :: FileMonitorFlags
FileMonitorWatchMoves :: FileMonitorFlags
data FilesystemPreviewType
FilesystemPreviewTypeIfAlways :: FilesystemPreviewType
FilesystemPreviewTypeIfLocal :: FilesystemPreviewType
FilesystemPreviewTypeNever :: FilesystemPreviewType

-- | Indicates the file's on-disk type.
data FileType
FileTypeUnknown :: FileType
FileTypeRegular :: FileType
FileTypeDirectory :: FileType
FileTypeSymbolicLink :: FileType
FileTypeSpecial :: FileType
FileTypeShortcut :: FileType
FileTypeMountable :: FileType

-- | Used by <tt>fileSetAttributesFromInfo</tt> when setting file
--   attributes.
data FileAttributeStatus
FileAttributeStatusUnset :: FileAttributeStatus
FileAttributeStatusSet :: FileAttributeStatus
FileAttributeStatusErrorSetting :: FileAttributeStatus

-- | Flags specifying the behaviour of an attribute.
data FileAttributeInfoFlags
FileAttributeInfoNone :: FileAttributeInfoFlags
FileAttributeInfoCopyWithFile :: FileAttributeInfoFlags
FileAttributeInfoCopyWhenMoved :: FileAttributeInfoFlags
data AskPasswordFlags
AskPasswordNeedPassword :: AskPasswordFlags
AskPasswordNeedUsername :: AskPasswordFlags
AskPasswordNeedDomain :: AskPasswordFlags
AskPasswordSavingSupported :: AskPasswordFlags
AskPasswordAnonymousSupported :: AskPasswordFlags

-- | <a>PasswordSave</a> is used to indicate the lifespan of a saved
--   password.
data PasswordSave
PasswordSaveNever :: PasswordSave
PasswordSaveForSession :: PasswordSave
PasswordSavePermanently :: PasswordSave
data MountOperationResult
MountOperationHandled :: MountOperationResult
MountOperationAborted :: MountOperationResult
MountOperationUnhandled :: MountOperationResult

-- | Error codes returned by GIO functions.
data IOErrorEnum
IoErrorFailed :: IOErrorEnum
IoErrorNotFound :: IOErrorEnum
IoErrorExists :: IOErrorEnum
IoErrorIsDirectory :: IOErrorEnum
IoErrorNotDirectory :: IOErrorEnum
IoErrorNotEmpty :: IOErrorEnum
IoErrorNotRegularFile :: IOErrorEnum
IoErrorNotSymbolicLink :: IOErrorEnum
IoErrorNotMountableFile :: IOErrorEnum
IoErrorFilenameTooLong :: IOErrorEnum
IoErrorInvalidFilename :: IOErrorEnum
IoErrorTooManyLinks :: IOErrorEnum
IoErrorNoSpace :: IOErrorEnum
IoErrorInvalidArgument :: IOErrorEnum
IoErrorPermissionDenied :: IOErrorEnum
IoErrorNotSupported :: IOErrorEnum
IoErrorNotMounted :: IOErrorEnum
IoErrorAlreadyMounted :: IOErrorEnum
IoErrorClosed :: IOErrorEnum
IoErrorCancelled :: IOErrorEnum
IoErrorPending :: IOErrorEnum
IoErrorReadOnly :: IOErrorEnum
IoErrorCantCreateBackup :: IOErrorEnum
IoErrorWrongEtag :: IOErrorEnum
IoErrorTimedOut :: IOErrorEnum
IoErrorWouldRecurse :: IOErrorEnum
IoErrorBusy :: IOErrorEnum
IoErrorWouldBlock :: IOErrorEnum
IoErrorHostNotFound :: IOErrorEnum
IoErrorWouldMerge :: IOErrorEnum
IoErrorFailedHandled :: IOErrorEnum
IoErrorTooManyOpenFiles :: IOErrorEnum
IoErrorNotInitialized :: IOErrorEnum
IoErrorAddressInUse :: IOErrorEnum
IoErrorPartialInput :: IOErrorEnum
IoErrorInvalidData :: IOErrorEnum
IoErrorDbusError :: IOErrorEnum
IoErrorHostUnreachable :: IOErrorEnum
IoErrorNetworkUnreachable :: IOErrorEnum
IoErrorConnectionRefused :: IOErrorEnum
IoErrorProxyFailed :: IOErrorEnum
IoErrorProxyAuthFailed :: IOErrorEnum
IoErrorProxyNeedAuth :: IOErrorEnum
IoErrorProxyNotAllowed :: IOErrorEnum
IoErrorBrokenPipe :: IOErrorEnum
IoErrorConnectionClosed :: IOErrorEnum
IoErrorNotConnected :: IOErrorEnum
IoErrorMessageTooLarge :: IOErrorEnum

-- | Specifies what type of event a monitor event is.
data FileMonitorEvent
FileMonitorEventChanged :: FileMonitorEvent
FileMonitorEventChangesDoneHint :: FileMonitorEvent
FileMonitorEventDeleted :: FileMonitorEvent
FileMonitorEventCreated :: FileMonitorEvent
FileMonitorEventAttributeChanged :: FileMonitorEvent
FileMonitorEventPreUnmount :: FileMonitorEvent
FileMonitorEventUnmounted :: FileMonitorEvent
FileMonitorEventMoved :: FileMonitorEvent
FileMonitorEventRenamed :: FileMonitorEvent
FileMonitorEventMovedIn :: FileMonitorEvent
FileMonitorEventMovedOut :: FileMonitorEvent

-- | Flags used when mounting a mount.
data MountMountFlags
MountMountNone :: MountMountFlags

-- | Flags used when an unmounting a mount.
data MountUnmountFlags
MountUnmountNone :: MountUnmountFlags
MountUnmountForce :: MountUnmountFlags

-- | Flags used when starting a drive.
data DriveStartFlags
DriveStartNone :: DriveStartFlags

-- | Enumeration describing how a drive can be started/stopped.
data DriveStartStopType
DriveStartStopTypeUnknown :: DriveStartStopType
DriveStartStopTypeShutdown :: DriveStartStopType
DriveStartStopTypeNetwork :: DriveStartStopType
DriveStartStopTypeMultidisk :: DriveStartStopType
DriveStartStopTypePassword :: DriveStartStopType

-- | <a>EmblemOrigin</a> is used to add information about the origin of the
--   emblem to <tt>Emblem</tt>.
data EmblemOrigin
EmblemOriginUnknown :: EmblemOrigin
EmblemOriginDevice :: EmblemOrigin
EmblemOriginLivemetadata :: EmblemOrigin
EmblemOriginTag :: EmblemOrigin

-- | Flags used when creating a <tt>AppInfo</tt>.
data AppInfoCreateFlags
AppInfoCreateNone :: AppInfoCreateFlags
AppInfoCreateNeedsTerminal :: AppInfoCreateFlags
AppInfoCreateSupportsUris :: AppInfoCreateFlags
AppInfoCreateSupportsStartupNotification :: AppInfoCreateFlags
instance GHC.Show.Show System.GIO.Enums.AppInfoCreateFlags
instance GHC.Enum.Bounded System.GIO.Enums.AppInfoCreateFlags
instance GHC.Classes.Ord System.GIO.Enums.AppInfoCreateFlags
instance GHC.Classes.Eq System.GIO.Enums.AppInfoCreateFlags
instance GHC.Show.Show System.GIO.Enums.EmblemOrigin
instance GHC.Enum.Bounded System.GIO.Enums.EmblemOrigin
instance GHC.Classes.Ord System.GIO.Enums.EmblemOrigin
instance GHC.Classes.Eq System.GIO.Enums.EmblemOrigin
instance GHC.Enum.Enum System.GIO.Enums.EmblemOrigin
instance GHC.Show.Show System.GIO.Enums.DriveStartStopType
instance GHC.Enum.Bounded System.GIO.Enums.DriveStartStopType
instance GHC.Classes.Ord System.GIO.Enums.DriveStartStopType
instance GHC.Classes.Eq System.GIO.Enums.DriveStartStopType
instance GHC.Enum.Enum System.GIO.Enums.DriveStartStopType
instance GHC.Show.Show System.GIO.Enums.DriveStartFlags
instance GHC.Enum.Bounded System.GIO.Enums.DriveStartFlags
instance GHC.Classes.Ord System.GIO.Enums.DriveStartFlags
instance GHC.Classes.Eq System.GIO.Enums.DriveStartFlags
instance GHC.Show.Show System.GIO.Enums.MountUnmountFlags
instance GHC.Enum.Bounded System.GIO.Enums.MountUnmountFlags
instance GHC.Classes.Ord System.GIO.Enums.MountUnmountFlags
instance GHC.Classes.Eq System.GIO.Enums.MountUnmountFlags
instance GHC.Show.Show System.GIO.Enums.MountMountFlags
instance GHC.Enum.Bounded System.GIO.Enums.MountMountFlags
instance GHC.Classes.Ord System.GIO.Enums.MountMountFlags
instance GHC.Classes.Eq System.GIO.Enums.MountMountFlags
instance GHC.Show.Show System.GIO.Enums.FileMonitorEvent
instance GHC.Enum.Bounded System.GIO.Enums.FileMonitorEvent
instance GHC.Classes.Ord System.GIO.Enums.FileMonitorEvent
instance GHC.Classes.Eq System.GIO.Enums.FileMonitorEvent
instance GHC.Enum.Enum System.GIO.Enums.FileMonitorEvent
instance GHC.Show.Show System.GIO.Enums.IOErrorEnum
instance GHC.Enum.Bounded System.GIO.Enums.IOErrorEnum
instance GHC.Classes.Ord System.GIO.Enums.IOErrorEnum
instance GHC.Classes.Eq System.GIO.Enums.IOErrorEnum
instance GHC.Show.Show System.GIO.Enums.MountOperationResult
instance GHC.Enum.Bounded System.GIO.Enums.MountOperationResult
instance GHC.Classes.Ord System.GIO.Enums.MountOperationResult
instance GHC.Classes.Eq System.GIO.Enums.MountOperationResult
instance GHC.Enum.Enum System.GIO.Enums.MountOperationResult
instance GHC.Show.Show System.GIO.Enums.PasswordSave
instance GHC.Enum.Bounded System.GIO.Enums.PasswordSave
instance GHC.Classes.Ord System.GIO.Enums.PasswordSave
instance GHC.Classes.Eq System.GIO.Enums.PasswordSave
instance GHC.Enum.Enum System.GIO.Enums.PasswordSave
instance GHC.Show.Show System.GIO.Enums.AskPasswordFlags
instance GHC.Enum.Bounded System.GIO.Enums.AskPasswordFlags
instance GHC.Classes.Ord System.GIO.Enums.AskPasswordFlags
instance GHC.Classes.Eq System.GIO.Enums.AskPasswordFlags
instance GHC.Show.Show System.GIO.Enums.FileAttributeInfoFlags
instance GHC.Read.Read System.GIO.Enums.FileAttributeInfoFlags
instance GHC.Enum.Bounded System.GIO.Enums.FileAttributeInfoFlags
instance GHC.Classes.Ord System.GIO.Enums.FileAttributeInfoFlags
instance GHC.Classes.Eq System.GIO.Enums.FileAttributeInfoFlags
instance GHC.Show.Show System.GIO.Enums.FileAttributeStatus
instance GHC.Enum.Bounded System.GIO.Enums.FileAttributeStatus
instance GHC.Classes.Ord System.GIO.Enums.FileAttributeStatus
instance GHC.Classes.Eq System.GIO.Enums.FileAttributeStatus
instance GHC.Show.Show System.GIO.Enums.FileType
instance GHC.Enum.Bounded System.GIO.Enums.FileType
instance GHC.Classes.Ord System.GIO.Enums.FileType
instance GHC.Classes.Eq System.GIO.Enums.FileType
instance GHC.Show.Show System.GIO.Enums.FilesystemPreviewType
instance GHC.Enum.Bounded System.GIO.Enums.FilesystemPreviewType
instance GHC.Classes.Ord System.GIO.Enums.FilesystemPreviewType
instance GHC.Classes.Eq System.GIO.Enums.FilesystemPreviewType
instance GHC.Show.Show System.GIO.Enums.FileMonitorFlags
instance GHC.Enum.Bounded System.GIO.Enums.FileMonitorFlags
instance GHC.Classes.Ord System.GIO.Enums.FileMonitorFlags
instance GHC.Classes.Eq System.GIO.Enums.FileMonitorFlags
instance GHC.Show.Show System.GIO.Enums.FileCopyFlags
instance GHC.Enum.Bounded System.GIO.Enums.FileCopyFlags
instance GHC.Classes.Ord System.GIO.Enums.FileCopyFlags
instance GHC.Classes.Eq System.GIO.Enums.FileCopyFlags
instance GHC.Show.Show System.GIO.Enums.FileCreateFlags
instance GHC.Enum.Bounded System.GIO.Enums.FileCreateFlags
instance GHC.Classes.Ord System.GIO.Enums.FileCreateFlags
instance GHC.Classes.Eq System.GIO.Enums.FileCreateFlags
instance GHC.Show.Show System.GIO.Enums.FileQueryInfoFlags
instance GHC.Enum.Bounded System.GIO.Enums.FileQueryInfoFlags
instance GHC.Classes.Ord System.GIO.Enums.FileQueryInfoFlags
instance GHC.Classes.Eq System.GIO.Enums.FileQueryInfoFlags
instance GHC.Enum.Enum System.GIO.Enums.FileQueryInfoFlags
instance System.Glib.Flags.Flags System.GIO.Enums.FileQueryInfoFlags
instance GHC.Enum.Enum System.GIO.Enums.FileCreateFlags
instance System.Glib.Flags.Flags System.GIO.Enums.FileCreateFlags
instance GHC.Enum.Enum System.GIO.Enums.FileCopyFlags
instance System.Glib.Flags.Flags System.GIO.Enums.FileCopyFlags
instance GHC.Enum.Enum System.GIO.Enums.FileMonitorFlags
instance System.Glib.Flags.Flags System.GIO.Enums.FileMonitorFlags
instance GHC.Enum.Enum System.GIO.Enums.FilesystemPreviewType
instance GHC.Enum.Enum System.GIO.Enums.FileType
instance GHC.Enum.Enum System.GIO.Enums.FileAttributeStatus
instance GHC.Enum.Enum System.GIO.Enums.FileAttributeInfoFlags
instance System.Glib.Flags.Flags System.GIO.Enums.FileAttributeInfoFlags
instance GHC.Enum.Enum System.GIO.Enums.AskPasswordFlags
instance System.Glib.Flags.Flags System.GIO.Enums.AskPasswordFlags
instance GHC.Enum.Enum System.GIO.Enums.IOErrorEnum
instance GHC.Enum.Enum System.GIO.Enums.MountMountFlags
instance System.Glib.Flags.Flags System.GIO.Enums.MountMountFlags
instance GHC.Enum.Enum System.GIO.Enums.MountUnmountFlags
instance System.Glib.Flags.Flags System.GIO.Enums.MountUnmountFlags
instance GHC.Enum.Enum System.GIO.Enums.DriveStartFlags
instance System.Glib.Flags.Flags System.GIO.Enums.DriveStartFlags
instance GHC.Enum.Enum System.GIO.Enums.AppInfoCreateFlags
instance System.Glib.Flags.Flags System.GIO.Enums.AppInfoCreateFlags


module System.GIO.File.FileAttribute
data FileAttributeType
FileAttributeTypeInvalid :: FileAttributeType
FileAttributeTypeString :: FileAttributeType
FileAttributeTypeByteString :: FileAttributeType
FileAttributeTypeBool :: FileAttributeType
FileAttributeTypeWord32 :: FileAttributeType
FileAttributeTypeInt32 :: FileAttributeType
FileAttributeTypeWord64 :: FileAttributeType
FileAttributeTypeInt64 :: FileAttributeType
FileAttributeTypeObject :: FileAttributeType
FileAttributeTypeStringList :: FileAttributeType
data FileAttributeInfo
FileAttributeInfo :: DefaultGlibString -> FileAttributeType -> [FileAttributeInfoFlags] -> FileAttributeInfo
[fileAttributeInfoName] :: FileAttributeInfo -> DefaultGlibString
[fileAttributeInfoType] :: FileAttributeInfo -> FileAttributeType
[fileAttributeInfoFlags] :: FileAttributeInfo -> [FileAttributeInfoFlags]

-- | Flags specifying the behaviour of an attribute.
data FileAttributeInfoFlags
FileAttributeInfoNone :: FileAttributeInfoFlags
FileAttributeInfoCopyWithFile :: FileAttributeInfoFlags
FileAttributeInfoCopyWhenMoved :: FileAttributeInfoFlags
fileAttributeStandardType :: String
fileAttributeStandardIsHidden :: String
fileAttributeStandardIsBackup :: String
fileAttributeStandardIsSymlink :: String
fileAttributeStandardIsVirtual :: String
fileAttributeStandardName :: String
fileAttributeStandardDisplayName :: String
fileAttributeStandardEditName :: String
fileAttributeStandardCopyName :: String
fileAttributeStandardIcon :: String
fileAttributeStandardContentType :: String
fileAttributeStandardFastContentType :: String
fileAttributeStandardSize :: String
fileAttributeStandardAllocatedSize :: String
fileAttributeStandardSymlinkTarget :: String
fileAttributeStandardTargetURI :: String
fileAttributeStandardSortOrder :: String
fileAttributeEtagValue :: String
fileAttributeIDFile :: String
fileAttributeIDFilesystem :: String
fileAttributeAccessCanRead :: String
fileAttributeAccessCanWrite :: String
fileAttributeAccessCanExecute :: String
fileAttributeAccessCanDelete :: String
fileAttributeAccessCanTrash :: String
fileAttributeAccessCanRename :: String
fileAttributeMountableCanMount :: String
fileAttributeMountableCanUnmount :: String
fileAttributeMountableCanEject :: String
fileAttributeMountableUnixDevice :: String
fileAttributeMountableUnixDeviceFile :: String
fileAttributeMountableCanStart :: String
fileAttributeMountableCanDegraded :: String
fileAttributeMountableCanStop :: String
fileAttributeMountableStartStopType :: String
fileAttributeMountableCanPoll :: String
fileAttributeMountableHalUDI :: String
fileAttributeTimeModified :: String
fileAttributeTimeModifiedUSec :: String
fileAttributeTimeAccess :: String
fileAttributeTimeAccessUSec :: String
fileAttributeTimeChanged :: String
fileAttributeTimeChangedUSec :: String
fileAttributeTimeCreated :: String
fileAttributeTimeCreatedUSec :: String
fileAttributeUnixDevice :: String
fileAttributeUnixInode :: String
fileAttributeUnixMode :: String
fileAttributeUnixNLink :: String
fileAttributeUnixUID :: String
fileAttributeUnixGID :: String
fileAttributeUnixRDev :: String
fileAttributeUnixBlockSize :: String
fileAttributeUnixBlocks :: String
fileAttributeDosIsMountpoint :: String
fileAttributeDosIsArchive :: String
fileAttributeDosIsSystem :: String
fileAttributeOwnerUser :: String
fileAttributeOwnerUserReal :: String
fileAttributeOwnerGroup :: String
fileAttributeThumbnailPath :: String
fileAttributeThumbnailingFailed :: String
fileAttributePreviewIcon :: String
fileAttributeFilesystemSize :: String
fileAttributeFilesystemFree :: String
fileAttributeFilesystemType :: String
fileAttributeFilesystemReadonly :: String
fileAttributeGVfsBackend :: String
fileAttributeSELinuxContext :: String
fileAttributeTrashItemCount :: String
fileAttributeFilesystemUsePreview :: String
fileAttributeStandardDescription :: String
fileAttributeTrashOrigPath :: String
fileAttributeTrashDeletionDate :: String
instance GHC.Show.Show System.GIO.File.FileAttribute.FileAttributeInfo
instance GHC.Read.Read System.GIO.File.FileAttribute.FileAttributeInfo
instance GHC.Classes.Eq System.GIO.File.FileAttribute.FileAttributeInfo
instance GHC.Read.Read System.GIO.File.FileAttribute.FileAttributeType
instance GHC.Show.Show System.GIO.File.FileAttribute.FileAttributeType
instance GHC.Enum.Bounded System.GIO.File.FileAttribute.FileAttributeType
instance GHC.Classes.Ord System.GIO.File.FileAttribute.FileAttributeType
instance GHC.Classes.Eq System.GIO.File.FileAttribute.FileAttributeType
instance GHC.Enum.Enum System.GIO.File.FileAttribute.FileAttributeType
instance Foreign.Storable.Storable System.GIO.File.FileAttribute.FileAttributeInfo


module System.GIO.Volumes.VolumeMonitor
newtype VolumeMonitor
VolumeMonitor :: (ForeignPtr (VolumeMonitor)) -> VolumeMonitor
class GObjectClass o => VolumeMonitorClass o

-- | Gets the volume monitor used by gio.
volumeMonitorGet :: IO VolumeMonitor

-- | Gets a list of drives connected to the system.
volumeMonitorGetConnectedDrives :: VolumeMonitorClass monitor => monitor -> IO [Drive]

-- | Gets a list of the volumes on the system.
volumeMonitorGetVolumes :: VolumeMonitorClass monitor => monitor -> IO [Drive]

-- | Gets a list of the mounts on the system.
volumeMonitorGetMounts :: VolumeMonitorClass monitor => monitor -> IO [Drive]

-- | Finds a <a>Mount</a> object by its UUID (see <tt>mountGetUuid</tt>
volumeMonitorGetMountForUUID :: (VolumeMonitorClass monitor, GlibString string) => monitor -> string -> IO (Maybe Mount)

-- | Finds a <a>Volume</a> object by its UUID (see <tt>volumeGetUuid</tt>)
volumeMonitorGetVolumeForUUID :: (VolumeMonitorClass monitor, GlibString string) => monitor -> string -> IO (Maybe Volume)

-- | Emitted when a drive changes.
vmDriveChanged :: VolumeMonitorClass monitor => Signal monitor (Drive -> IO ())

-- | Emitted when a drive changes.
vmDriveConnected :: VolumeMonitorClass monitor => Signal monitor (Drive -> IO ())

-- | Emitted when a drive changes.
vmDriveDisconnected :: VolumeMonitorClass monitor => Signal monitor (Drive -> IO ())

-- | Emitted when the eject button is pressed on drive.
vmDriveEjectButton :: VolumeMonitorClass monitor => Signal monitor (Drive -> IO ())

-- | Emitted when the stop button is pressed on drive.
vmDriveStopButton :: VolumeMonitorClass monitor => Signal monitor (Drive -> IO ())

-- | Emitted when a mount is added.
vmMountAdded :: VolumeMonitorClass monitor => Signal monitor (Mount -> IO ())

-- | Emitted when a mount is changed.
vmMountChanged :: VolumeMonitorClass monitor => Signal monitor (Mount -> IO ())

-- | Emitted when a mount is about to be removed.
vmMountPreUnmount :: VolumeMonitorClass monitor => Signal monitor (Mount -> IO ())

-- | Emitted when a mount is removed.
vmMountRemoved :: VolumeMonitorClass monitor => Signal monitor (Mount -> IO ())

-- | Emitted when a volume is added.
vmVolumeAdded :: VolumeMonitorClass monitor => Signal monitor (Volume -> IO ())

-- | Emitted when a volume is changed.
vmVolumeChanged :: VolumeMonitorClass monitor => Signal monitor (Volume -> IO ())

-- | Emitted when a volume is removed.
vmVolumeRemoved :: VolumeMonitorClass monitor => Signal monitor (Volume -> IO ())


module System.GIO.Icons.ThemedIcon
newtype ThemedIcon
ThemedIcon :: (ForeignPtr (ThemedIcon)) -> ThemedIcon
class GObjectClass o => ThemedIconClass o

-- | Creates a new icon for a file.
themedIconNew :: ByteString -> IO ThemedIcon

-- | Creates a new themed icon for iconnames.
themedIconNewFromNames :: GlibString string => [string] -> IO ThemedIcon

-- | Prepend a name to the list of icons from within icon.
themedIconPrependName :: (ThemedIconClass icon, GlibString string) => icon -> string -> IO ()

-- | Append a name to the list of icons from within icon.
themedIconAppendName :: (ThemedIconClass icon, GlibString string) => icon -> string -> IO ()

-- | Gets the names of icons from within icon.
themedIconGetNames :: (ThemedIconClass icon, GlibString string) => icon -> IO [string]


module System.GIO.Icons.Icon
newtype Icon
Icon :: (ForeignPtr (Icon)) -> Icon
class GObjectClass o => IconClass o

-- | Checks if two icons are equal.
iconEqual :: (IconClass icon1, IconClass icon2) => icon1 -> icon2 -> IO Bool

-- | Generates a textual representation of icon that can be used for
--   serialization such as when passing icon to a different process or
--   saving it to persistent storage. Use <a>iconNewForString</a> to get
--   icon back from the returned string.
--   
--   The encoding of the returned string is proprietary to <a>Icon</a>
--   except in the following two cases
--   
--   <ul>
--   <li>If icon is a <a>FileIcon</a>, the returned string is a native path
--   (such as <i>path</i>to/my icon.png) without escaping if the
--   <a>File</a> for icon is a native file. If the file is not native, the
--   returned string is the result of <tt>fileGetUri</tt>.</li>
--   <li>If icon is a <a>ThemedIcon</a> with exactly one name, the encoding
--   is simply the name (such as network-server).</li>
--   </ul>
iconToString :: IconClass icon => icon -> IO ByteString

-- | Generate a <a>Icon</a> instance from str. This function can fail if
--   str is not valid - see <a>iconToString</a> for discussion.
--   
--   If your application or library provides one or more <a>Icon</a>
--   implementations you need to ensure that each GType is registered with
--   the type system prior to calling <a>iconNewForString</a>.
iconNewForString :: ByteString -> IO Icon


module System.GIO.Icons.FileIcon
newtype FileIcon
FileIcon :: (ForeignPtr (FileIcon)) -> FileIcon
class GObjectClass o => FileIconClass o

-- | Creates a new icon for a file.
fileIconNew :: FileClass file => file -> IO FileIcon

-- | Gets the <a>File</a> associated with the given icon.
fileIconGetFile :: FileIconClass icon => icon -> IO File


module System.GIO.Icons.EmblemedIcon
newtype EmblemedIcon
EmblemedIcon :: (ForeignPtr (EmblemedIcon)) -> EmblemedIcon
class GObjectClass o => EmblemedIconClass o

-- | Creates a new emblemed icon for icon with the emblem emblem.
emblemedIconNew :: (IconClass icon, EmblemClass emblem) => icon -> emblem -> IO EmblemedIcon

-- | Gets the main icon for emblemed.
emblemedIconGetIcon :: EmblemedIconClass emblemed => emblemed -> IO Icon

-- | Gets the list of emblems for the icon.
emblemedIconGetEmblems :: EmblemedIconClass emblemed => emblemed -> IO [Emblem]

-- | Adds emblem to the <a>Emblem</a>.
emblemedIconAddEmblem :: EmblemedIconClass emblemed => emblemed -> Emblem -> IO ()


module System.GIO.Icons.Emblem
newtype Emblem
Emblem :: (ForeignPtr (Emblem)) -> Emblem
class GObjectClass o => EmblemClass o

-- | <a>EmblemOrigin</a> is used to add information about the origin of the
--   emblem to <tt>Emblem</tt>.
data EmblemOrigin
EmblemOriginUnknown :: EmblemOrigin
EmblemOriginDevice :: EmblemOrigin
EmblemOriginLivemetadata :: EmblemOrigin
EmblemOriginTag :: EmblemOrigin

-- | Creates a new emblem for icon.
emblemNew :: IconClass icon => icon -> IO Emblem

-- | Creates a new emblem for icon.
emblemNewWithOrigin :: IconClass icon => icon -> EmblemOrigin -> IO Emblem

-- | Gives back the icon from emblem.
emblemGetIcon :: EmblemClass emblem => emblem -> IO Icon

-- | Gets the origin of the emblem.
emblemGetOrigin :: EmblemClass emblem => emblem -> IO EmblemOrigin


module System.GIO.File.MountOperation
newtype MountOperation
MountOperation :: (ForeignPtr (MountOperation)) -> MountOperation
class GObjectClass o => MountOperationClass o
data MountOperationResult
MountOperationHandled :: MountOperationResult
MountOperationAborted :: MountOperationResult
MountOperationUnhandled :: MountOperationResult
data AskPasswordFlags
AskPasswordNeedPassword :: AskPasswordFlags
AskPasswordNeedUsername :: AskPasswordFlags
AskPasswordNeedDomain :: AskPasswordFlags
AskPasswordSavingSupported :: AskPasswordFlags
AskPasswordAnonymousSupported :: AskPasswordFlags

-- | <a>PasswordSave</a> is used to indicate the lifespan of a saved
--   password.
data PasswordSave
PasswordSaveNever :: PasswordSave
PasswordSaveForSession :: PasswordSave
PasswordSavePermanently :: PasswordSave

-- | Creates a new mount operation.
mountOperationNew :: IO MountOperation

-- | Emits the "reply" signal.
mountOperationReply :: MountOperationClass op => op -> MountOperationResult -> IO ()

-- | Whether to use an anonymous user when authenticating.
--   
--   Default value: <a>False</a>
mountOperationAnonymous :: MountOperationClass op => Attr op Bool

-- | The index of the user's choice when a question is asked during the
--   mount operation. See the <tt>askQuestion</tt> signal.
--   
--   Allowed values: &gt;= 0
--   
--   Default value: 0
mountOperationChoice :: MountOperationClass op => Attr op Int

-- | The domain to use for the mount operation.
--   
--   Default value: ""
mountOperationDomain :: (MountOperationClass op, GlibString string) => Attr op string

-- | The password that is used for authentication when carrying out the
--   mount operation.
--   
--   Default value: ""
mountOperationPassword :: (MountOperationClass op, GlibString string) => Attr op string

-- | Determines if and how the password information should be saved.
--   
--   Default value: <a>PasswordSaveNever</a>
mountOperationPasswordSave :: MountOperationClass op => Attr op PasswordSave

-- | The user name that is used for authentication when carrying out the
--   mount operation.
--   
--   Default value: ""
mountOperationUsername :: (MountOperationClass op, GlibString string) => Attr op string

-- | Emitted by the backend when e.g. a device becomes unavailable while a
--   mount operation is in progress.
--   
--   Implementations of <a>MountOperation</a> should handle this signal by
--   dismissing open password dialogs.
--   
--   Since 2.20
mountOperationAborted :: MountOperationClass op => Signal op (IO ())

-- | Emitted when a mount operation asks the user for a password.
--   
--   If the message contains a line break, the first line should be
--   presented as a heading. For example, it may be used as the primary
--   text in a <tt>MessageDialog</tt>.
mountOperationAskPassword :: (MountOperationClass op, GlibString string) => Signal op (string -> string -> string -> AskPasswordFlags -> IO ())

-- | Emitted when asking the user a question and gives a list of choices
--   for the user to choose from.
--   
--   If the message contains a line break, the first line should be
--   presented as a heading. For example, it may be used as the primary
--   text in a <tt>MessageDialog</tt>. askQuestion :: MountOperationClass
--   op =&gt; Signal op (String -&gt; [String] -&gt; IO ()) askQuestion
--   Signal (after obj user -&gt; connect_GLIBSTRING_BOXED__NONE
--   "ask-question" after obj (message choicesPtr -&gt; do choices &lt;-
--   peekUTFString choicesPtr user str choices))
--   
--   Emitted when the user has replied to the mount operation.
mountOperationReplySignal :: MountOperationClass op => Signal op (MountOperationResult -> IO ())


module System.GIO.File.IOError

-- | Error codes returned by GIO functions.
data IOErrorEnum
IoErrorFailed :: IOErrorEnum
IoErrorNotFound :: IOErrorEnum
IoErrorExists :: IOErrorEnum
IoErrorIsDirectory :: IOErrorEnum
IoErrorNotDirectory :: IOErrorEnum
IoErrorNotEmpty :: IOErrorEnum
IoErrorNotRegularFile :: IOErrorEnum
IoErrorNotSymbolicLink :: IOErrorEnum
IoErrorNotMountableFile :: IOErrorEnum
IoErrorFilenameTooLong :: IOErrorEnum
IoErrorInvalidFilename :: IOErrorEnum
IoErrorTooManyLinks :: IOErrorEnum
IoErrorNoSpace :: IOErrorEnum
IoErrorInvalidArgument :: IOErrorEnum
IoErrorPermissionDenied :: IOErrorEnum
IoErrorNotSupported :: IOErrorEnum
IoErrorNotMounted :: IOErrorEnum
IoErrorAlreadyMounted :: IOErrorEnum
IoErrorClosed :: IOErrorEnum
IoErrorCancelled :: IOErrorEnum
IoErrorPending :: IOErrorEnum
IoErrorReadOnly :: IOErrorEnum
IoErrorCantCreateBackup :: IOErrorEnum
IoErrorWrongEtag :: IOErrorEnum
IoErrorTimedOut :: IOErrorEnum
IoErrorWouldRecurse :: IOErrorEnum
IoErrorBusy :: IOErrorEnum
IoErrorWouldBlock :: IOErrorEnum
IoErrorHostNotFound :: IOErrorEnum
IoErrorWouldMerge :: IOErrorEnum
IoErrorFailedHandled :: IOErrorEnum
IoErrorTooManyOpenFiles :: IOErrorEnum
IoErrorNotInitialized :: IOErrorEnum
IoErrorAddressInUse :: IOErrorEnum
IoErrorPartialInput :: IOErrorEnum
IoErrorInvalidData :: IOErrorEnum
IoErrorDbusError :: IOErrorEnum
IoErrorHostUnreachable :: IOErrorEnum
IoErrorNetworkUnreachable :: IOErrorEnum
IoErrorConnectionRefused :: IOErrorEnum
IoErrorProxyFailed :: IOErrorEnum
IoErrorProxyAuthFailed :: IOErrorEnum
IoErrorProxyNeedAuth :: IOErrorEnum
IoErrorProxyNotAllowed :: IOErrorEnum
IoErrorBrokenPipe :: IOErrorEnum
IoErrorConnectionClosed :: IOErrorEnum
IoErrorNotConnected :: IOErrorEnum
IoErrorMessageTooLarge :: IOErrorEnum

-- | Converts errno.h error codes into GIO error codes.
ioErrorFromErrno :: Int -> IO IOErrorEnum


module System.GIO.File.FileMonitor
newtype FileMonitor
FileMonitor :: (ForeignPtr (FileMonitor)) -> FileMonitor
class GObjectClass o => FileMonitorClass o

-- | Specifies what type of event a monitor event is.
data FileMonitorEvent
FileMonitorEventChanged :: FileMonitorEvent
FileMonitorEventChangesDoneHint :: FileMonitorEvent
FileMonitorEventDeleted :: FileMonitorEvent
FileMonitorEventCreated :: FileMonitorEvent
FileMonitorEventAttributeChanged :: FileMonitorEvent
FileMonitorEventPreUnmount :: FileMonitorEvent
FileMonitorEventUnmounted :: FileMonitorEvent
FileMonitorEventMoved :: FileMonitorEvent
FileMonitorEventRenamed :: FileMonitorEvent
FileMonitorEventMovedIn :: FileMonitorEvent
FileMonitorEventMovedOut :: FileMonitorEvent

-- | Cancels a file monitor.
fileMonitorCancel :: FileMonitorClass monitor => monitor -> IO Bool

-- | Returns whether the monitor is canceled.
fileMonitorIsCancelled :: FileMonitorClass monitor => monitor -> IO Bool

-- | Whether the monitor has been cancelled.
--   
--   Default value: <a>False</a>
fileMonitorCancelled :: FileMonitorClass monitor => ReadAttr monitor Bool

-- | The limit of the monitor to watch for changes, in milliseconds.
--   
--   Allowed values: &gt;= 0
--   
--   Default value: 800
fileMonitorRateLimit :: FileMonitorClass monitor => Attr monitor Int
fileMonitorChanged :: FileMonitorClass monitor => Signal monitor (Maybe File -> Maybe File -> FileMonitorEvent -> IO ())


module System.GIO.File.FileInfo
newtype FileInfo
FileInfo :: (ForeignPtr (FileInfo)) -> FileInfo
class GObjectClass o => FileInfoClass o

-- | Used by <tt>fileSetAttributesFromInfo</tt> when setting file
--   attributes.
data FileAttributeStatus
FileAttributeStatusUnset :: FileAttributeStatus
FileAttributeStatusSet :: FileAttributeStatus
FileAttributeStatusErrorSetting :: FileAttributeStatus

-- | Creates a new file info structure.
fileInfoNew :: IO FileInfo

-- | Duplicates a file info structure.
fileInfoDup :: FileInfoClass info => info -> IO FileInfo

-- | Copies all of the <tt>FileAttributes</tt> from <tt>srcInfo</tt> to
--   <tt>destInfo</tt>.
fileInfoCopyInto :: (FileInfoClass srcInfo, FileInfoClass destInfo) => srcInfo -> destInfo -> IO ()

-- | Checks if a file info structure has an attribute named attribute.
fileInfoHasAttribute :: (FileInfoClass info, GlibString string) => info -> string -> Bool

-- | Checks if a file info structure has an attribute in the specified
--   <tt>nameSpace</tt>.
fileInfoHasNamespace :: (FileInfoClass info, GlibString string) => info -> string -> Bool

-- | Lists the file info structure's attributes.
fileInfoListAttributes :: (FileInfoClass info, GlibString string) => info -> string -> IO [string]

-- | Gets the attribute type for an attribute key.
fileInfoGetAttributeType :: (FileInfoClass info, GlibString string) => info -> string -> IO FileAttributeType

-- | Removes all cases of attribute from info if it exists.
fileInfoRemoveAttribute :: (FileInfoClass info, GlibString string) => info -> string -> IO ()

-- | Gets the value of a attribute, formated as a string. This escapes
--   things as needed to make the string valid utf8.
fileInfoGetAttributeAsString :: (FileInfoClass info, GlibString string) => info -> string -> IO string

-- | Gets the attribute status for an attribute key.
fileInfoGetAttributeStatus :: (FileInfoClass info, GlibString string) => info -> string -> IO FileAttributeStatus

-- | Gets the value of a string attribute.
fileInfoGetAttributeString :: (FileInfoClass info, GlibString string) => info -> string -> IO string

-- | Gets the value of a stringv attribute. If the attribute does not
--   contain a stringv
fileInfoGetAttributeStringList :: (FileInfoClass info, GlibString string) => info -> string -> IO [string]

-- | Gets the value of a byte string attribute.
fileInfoGetAttributeByteString :: (FileInfoClass info, GlibString string) => info -> string -> IO ByteString

-- | Gets the value of a boolean attribute.
fileInfoGetAttributeBool :: (FileInfoClass info, GlibString string) => info -> string -> IO Bool

-- | Gets an Word32 contained within the attribute.
fileInfoGetAttributeWord32 :: (FileInfoClass info, GlibString string) => info -> string -> IO Word32

-- | Gets an Int32 contained within the attribute.
fileInfoGetAttributeInt32 :: (FileInfoClass info, GlibString string) => info -> string -> IO Int32

-- | Gets an Word64 contained within the attribute.
fileInfoGetAttributeWord64 :: (FileInfoClass info, GlibString string) => info -> string -> IO Word64

-- | Gets an Int64 contained within the attribute.
fileInfoGetAttributeInt64 :: (FileInfoClass info, GlibString string) => info -> string -> IO Int64

-- | Gets the value of a GObject attribute.
fileInfoGetAttributeObject :: (FileInfoClass info, GlibString string) => info -> string -> IO (Maybe GObject)

-- | Sets the attribute status for an attribute key. This is only needed by
--   external code that implement <tt>fileSetAttributesFromInfo</tt> or
--   similar functions.
--   
--   The attribute must exist in info for this to work. Otherwise
--   <a>False</a> is returned and info is unchanged.
fileInfoSetAttributeStatus :: (FileInfoClass info, GlibString string) => info -> string -> FileAttributeStatus -> IO Bool

-- | Sets the attribute to contain the given <tt>attrValue</tt>, if
--   possible.
fileInfoSetAttributeString :: (FileInfoClass info, GlibString string) => info -> string -> string -> IO ()

-- | Sets the attribute to contain the given <tt>attrValue</tt>, if
--   possible.
fileInfoSetAttributeStringList :: (FileInfoClass info, GlibString string) => info -> string -> [string] -> IO ()

-- | Sets the attribute to contain the given <tt>attrValue</tt>, if
--   possible.
fileInfoSetAttributeByteString :: (FileInfoClass info, GlibString string) => info -> string -> ByteString -> IO ()

-- | Sets the attribute to contain the given <tt>attrValue</tt>, if
--   possible.
fileInfoSetAttributeBool :: (FileInfoClass info, GlibString string) => info -> string -> Bool -> IO ()

-- | Sets the attribute to contain the given <tt>attrValue</tt>, if
--   possible.
fileInfoSetAttributeWord32 :: (FileInfoClass info, GlibString string) => info -> string -> Word32 -> IO ()

-- | Sets the attribute to contain the given <tt>attrValue</tt>, if
--   possible.
fileInfoSetAttributeInt32 :: (FileInfoClass info, GlibString string) => info -> string -> Int32 -> IO ()

-- | Sets the attribute to contain the given <tt>attrValue</tt>, if
--   possible.
fileInfoSetAttributeWord64 :: (FileInfoClass info, GlibString string) => info -> string -> Word64 -> IO ()

-- | Sets the attribute to contain the given <tt>attrValue</tt>, if
--   possible.
fileInfoSetAttributeInt64 :: (FileInfoClass info, GlibString string) => info -> string -> Int64 -> IO ()

-- | Sets the attribute to contain the given <tt>attrValue</tt>, if
--   possible.
fileInfoSetAttributeObject :: (FileInfoClass info, GlibString string) => info -> string -> GObject -> IO ()

-- | Clears the status information from info.
fileInfoClearStatus :: FileInfoClass info => info -> IO ()

-- | Gets a file's type (whether it is a regular file, symlink, etc). This
--   is different from the file's content type, see
--   <a>fileInfoGetContentType</a>.
fileInfoGetFileType :: FileInfoClass info => info -> FileType

-- | Checks if a file is hidden.
fileInfoGetIsHidden :: FileInfoClass info => info -> Bool

-- | Checks if a file is a backup file.
fileInfoGetIsBackup :: FileInfoClass info => info -> Bool

-- | Checks if a file is a symlink file.
fileInfoGetIsSymlink :: FileInfoClass info => info -> Bool

-- | Gets the name for a file.
fileInfoGetName :: FileInfoClass info => info -> Maybe ByteString

-- | Gets the display name for a file.
fileInfoGetDisplayName :: (FileInfoClass info, GlibString string) => info -> Maybe string

-- | Gets the edit name for a file.
fileInfoGetEditName :: (FileInfoClass info, GlibString string) => info -> Maybe string

-- | Gets the icon for a file.
fileInfoGetIcon :: FileInfoClass info => info -> IO Icon

-- | Gets the file's content type.
fileInfoGetContentType :: (FileInfoClass info, GlibString string) => info -> Maybe string

-- | Gets the modification time of the current info and sets it in result.
fileInfoGetModificationTime :: FileInfoClass info => info -> GTimeVal

-- | Gets the file's size.
fileInfoGetSize :: FileInfoClass info => info -> Int64

-- | Gets the symlink target for a given <a>FileInfo</a>.
fileInfoGetSymlinkTarget :: (FileInfoClass info, GlibString string) => info -> Maybe string

-- | Gets the entity tag for a given <a>FileInfo</a>. See
--   <tt>FileAttributeEtagValue</tt>.
fileInfoGetEtag :: (FileInfoClass info, GlibString string) => info -> Maybe string

-- | Gets the value of the <tt>sortOrder</tt> attribute from the
--   <a>FileInfo</a>. See <tt>FileAttributeStandardSortOrder</tt>.
fileInfoGetSortOrder :: FileInfoClass info => info -> Int

-- | Unsets a mask set by <tt>fileInfoSetAttributeMask</tt>, if one is set.
fileInfoUnsetAttributeMask :: FileInfoClass info => info -> IO ()

-- | Sets the file type in a <a>FileInfo</a> to type. See
--   <tt>FileAttributeStandardType</tt>.
fileInfoSetFileType :: FileInfoClass info => info -> FileType -> IO ()

-- | Sets the <tt>isHidden</tt> attribute in a <a>FileInfo</a> according to
--   <tt>isSymlink</tt>. See <tt>FileAttributeStandardIsHidden</tt>.
fileInfoSetIsHidden :: FileInfoClass info => info -> Bool -> IO ()

-- | Sets the <tt>isSymlink</tt> attribute in a <a>FileInfo</a> according
--   to <tt>isSymlink</tt>. See <tt>FileAttributeStandardIsSymlink</tt>.
fileInfoSetIsSymlink :: FileInfoClass info => info -> Bool -> IO ()

-- | Sets the name attribute for the current <a>FileInfo</a>. See
--   <tt>FileAttributeStandardName</tt>.
fileInfoSetName :: FileInfoClass info => info -> ByteString -> IO ()

-- | Sets the display name for the current <a>FileInfo</a>. See
--   <tt>FileAttributeStandardDisplayName</tt>.
fileInfoSetDisplayName :: (FileInfoClass info, GlibString string) => info -> string -> IO ()

-- | Sets the edit name for the current <a>FileInfo</a>. See
--   <tt>FileAttributeStandardEditName</tt>.
fileInfoSetEditName :: (FileInfoClass info, GlibString string) => info -> string -> IO ()

-- | Sets the icon for a given <a>FileInfo</a>. See
--   <tt>FileAttributeStandardIcon</tt>.
fileInfoSetIcon :: FileInfoClass info => info -> Icon -> IO ()

-- | Sets the content type attribute for a given <a>FileInfo</a>. See
--   <tt>FileAttributeStandardContentType</tt>.
fileInfoSetContentType :: (FileInfoClass info, GlibString string) => info -> string -> IO ()

-- | Sets the <tt>FileAttributeTimeModified</tt> attribute in the file info
--   to the given time value.
fileInfoSetModificationTime :: FileInfoClass info => info -> GTimeVal -> IO ()

-- | Sets the <tt>FileAttributeStandardSize</tt> attribute in the file info
--   to the given size.
fileInfoSetSize :: FileInfoClass info => info -> Int64 -> IO ()

-- | Sets the <tt>FileAttributeStandardSymlinkTarget</tt> attribute in the
--   file info to the given symlink target. fileInfoSetSymlinkTarget ::
--   FileInfoClass info =&gt; info -&gt; String -- ^ <tt>symlinkTarget</tt>
--   a static string containing a path to a symlink target. -&gt; IO ()
--   fileInfoSetSymlinkTarget info symlinkTarget = withUTFString
--   symlinkTarget $ symlinkTargetPtr -&gt; {} (toFileInfo info)
--   symlinkTargetPtr
--   
--   Sets the sort order attribute in the file info structure. See
--   <tt>FileAttributeStandardSortOrder</tt>.
fileInfoSetSortOrder :: FileInfoClass info => info -> Int -> IO ()


module System.GIO.File.ContentType

-- | Compares two content types for equality.
contentTypeEquals :: GlibString string => string -> string -> Bool

-- | Determines if type is a subset of supertype.
contentTypeIsA :: GlibString string => string -> string -> Bool

-- | Checks if the content type is the generic "unknown" type. On 1 this is
--   the "application/octet-stream" mimetype, while on win32 it is "*".
contentTypeIsUnknown :: GlibString string => string -> Bool

-- | Gets the human readable description of the content type.
contentTypeGetDescription :: GlibString string => string -> string

-- | Gets the mime-type for the content type. If one is registered
contentTypeGetMimeType :: GlibString string => string -> string

-- | Gets the icon for a content type.
contentTypeGetIcon :: GlibString string => string -> Icon

-- | Checks if a content type can be executable. Note that for instance
--   things like text files can be executables (i.e. scripts and batch
--   files).
contentTypeCanBeExecutable :: GlibString string => string -> Bool

-- | Tries to find a content type based on the mime type name.
contentTypeFromMimeType :: GlibString string => string -> string

-- | Guesses the content type based on example data. If the function is
--   uncertain, <tt>resultUncertain</tt> will be set to <a>True</a>. Either
--   filename or data may be <a>Nothing</a>, in which case the guess will
--   be based solely on the other argument.
contentTypeGuess :: (GlibFilePath fp, GlibString string) => fp -> string -> Int -> IO (Bool, string)

-- | Tries to guess the type of the tree with root root, by looking at the
--   files it contains. The result is an array of content types, with the
--   best guess coming first.
--   
--   The types returned all have the form x-content<i>foo, e.g.
--   x-content</i>audio-cdda (for audio CDs) or x-content/image-dcf (for a
--   camera memory card). See the shared-mime-info specification for more
--   on x-content types.
--   
--   This function is useful in the implementation of
--   <tt>mountGuessContentType</tt>.
contentTypeGuessForTree :: (FileClass file, GlibString string) => file -> IO [string]

-- | Gets a list of strings containing all the registered content types
--   known to the system.
contentTypesGetRegistered :: GlibString string => IO [string]


module System.GIO.File.AppInfo
data AppInfo
class GObjectClass o => AppInfoClass o
data AppLaunchContext
class FileInfoClass o => AppLaunchContextClass o

-- | Flags used when creating a <tt>AppInfo</tt>.
data AppInfoCreateFlags
AppInfoCreateNone :: AppInfoCreateFlags
AppInfoCreateNeedsTerminal :: AppInfoCreateFlags
AppInfoCreateSupportsUris :: AppInfoCreateFlags
AppInfoCreateSupportsStartupNotification :: AppInfoCreateFlags

-- | Creates a new <a>AppInfo</a> from the given information.
appInfoCreateFromCommandline :: GlibString string => string -> Maybe string -> [AppInfoCreateFlags] -> IO AppInfo

-- | Creates a duplicate of a <a>AppInfo</a>.
appInfoDup :: AppInfoClass appinfo => appinfo -> IO AppInfo

-- | Checks if two <a>AppInfo</a>s are equal.
appInfoEqual :: (AppInfoClass info1, AppInfoClass info2) => info1 -> info2 -> Bool

-- | Gets the ID of an application. An id is a string that identifies the
--   application. The exact format of the id is platform dependent. For
--   instance, on Unix this is the desktop file id from the xdg menu
--   specification.
--   
--   Note that the returned ID may be <a>Nothing</a>, depending on how the
--   appinfo has been constructed.
appInfoGetId :: (AppInfoClass appinfo, GlibString string) => appinfo -> IO (Maybe string)

-- | Gets the installed name of the application.
appInfoGetName :: AppInfoClass appinfo => appinfo -> String

-- | Gets the installed name of the application.
appInfoGetDisplayName :: (AppInfoClass appinfo, GlibString string) => appinfo -> string

-- | Gets a human-readable description of an installed application.
appInfoGetDescription :: (AppInfoClass appinfo, GlibString string) => appinfo -> Maybe string

-- | Gets the executable's name for the installed application.
appInfoGetExecutable :: (AppInfoClass appinfo, GlibString string) => appinfo -> string

-- | Gets the commandline with which the application will be started.
appInfoGetCommandline :: AppInfoClass appinfo => appinfo -> Maybe ByteString

-- | Gets the icon for the application.
appInfoGetIcon :: AppInfoClass appinfo => appinfo -> IO (Maybe Icon)

-- | Launches the application. Passes files to the launched application as
--   arguments, using the optional <tt>launchContext</tt> to get
--   information about the details of the launcher (like what screen it is
--   on). Throws a <a>GError</a> if an error occurs
--   
--   To lauch the application without arguments pass a emtpy files list.
--   
--   Note that even if the launch is successful the application launched
--   can fail to start if it runs into problems during startup. There is no
--   way to detect this.
--   
--   Some URIs can be changed when passed through a <a>File</a> (for
--   instance unsupported uris with strange formats like mailto:), so if
--   you have a textual uri you want to pass in as argument, consider using
--   <a>appInfoLaunchUris</a> instead.
appInfoLaunch :: AppInfoClass appinfo => appinfo -> [File] -> Maybe AppLaunchContext -> IO ()

-- | Checks if the application accepts files as arguments.
appInfoSupportsFiles :: AppInfoClass appinfo => appinfo -> IO Bool

-- | Checks if the application accepts uris as arguments.
appInfoSupportsUris :: AppInfoClass appinfo => appinfo -> IO Bool

-- | Launches the application. Passes uris to the launched application as
--   arguments, using the optional <tt>launchContext</tt> to get
--   information about the details of the launcher (like what screen it is
--   on). Throws a <a>GError</a> if an error occurs.
--   
--   To lauch the application without arguments pass a empty uris list.
--   
--   Note that even if the launch is successful the application launched
--   can fail to start if it runs into problems during startup. There is no
--   way to detect this.
appInfoLaunchUris :: (AppInfoClass appinfo, GlibString string) => appinfo -> [string] -> Maybe AppLaunchContext -> IO ()

-- | Checks if the application info should be shown in menus that list
--   available applications.
appInfoShouldShow :: AppInfoClass appinfo => appinfo -> IO Bool

-- | Obtains the information whether the <a>AppInfo</a> can be deleted. See
--   <a>appInfoDelete</a>.
appInfoCanDelete :: AppInfoClass appinfo => appinfo -> IO Bool

-- | Tries to delete a <a>AppInfo</a>.
--   
--   On some platforms, there may be a difference between user-defined
--   <a>AppInfo</a>s which can be deleted, and system-wide ones which
--   cannot. See <a>appInfoCanDelete</a>.
appInfoDelete :: AppInfoClass appinfo => appinfo -> IO Bool

-- | Removes all changes to the type associations done by
--   <a>appInfoSetAsDefaultForType</a>,
--   <a>appInfoSetAsDefaultForExtension</a> or
--   <a>appInfoRemoveSupportsType</a>.
appInfoResetTypeAssociations :: GlibString string => string -> IO ()

-- | Sets the application as the default handler for a given type. Throws a
--   <a>GError</a> if an error occurs.
appInfoSetAsDefaultForType :: (AppInfoClass appinfo, GlibString string) => appinfo -> string -> IO ()

-- | Sets the application as the default handler for a given extension.
--   Throws a <a>GError</a> if an error occurs.
appInfoSetAsDefaultForExtension :: (AppInfoClass appinfo, GlibString string) => appinfo -> string -> IO ()

-- | Adds a content type to the application information to indicate the
--   application is capable of opening files with the given content type.
--   Throws a <a>GError</a> if an error occurs.
appInfoAddSupportsType :: (AppInfoClass appinfo, GlibString string) => appinfo -> string -> IO ()

-- | Checks if a supported content type can be removed from an application.
appInfoCanRemoveSupportsType :: AppInfoClass appinfo => appinfo -> IO Bool

-- | Removes a supported type from an application, if possible. Throws a
--   <a>GError</a> if an error occurs.
appInfoRemoveSupportsType :: (AppInfoClass appinfo, GlibString string) => appinfo -> string -> IO ()

-- | Gets a list of all of the applications currently registered on this
--   system.
--   
--   For desktop files, this includes applications that have NoDisplay=true
--   set or are excluded from display by means of OnlyShowIn or NotShowIn.
--   See <a>appInfoShouldShow</a>. The returned list does not include
--   applications which have the Hidden key set.
appInfoGetAll :: IO [AppInfo]

-- | Gets a list of all <a>AppInfo</a>s for a given content type.
appInfoGetAllForType :: GlibString string => string -> IO [AppInfo]

-- | Gets the <a>AppInfo</a> that corresponds to a given content type.
appInfoGetDefaultForType :: GlibString string => string -> Bool -> IO (Maybe AppInfo)

-- | Gets the default application for launching applications using this URI
--   scheme. A URI scheme is the initial part of the URI, up to but not
--   including the <tt>:</tt>, e.g. "http", "ftp" or "sip".
appInfoGetDefaultForUriScheme :: GlibString string => string -> IO (Maybe AppInfo)

-- | Utility function that launches the default application registered to
--   handle the specified uri. Synchronous I/O is done on the uri to detect
--   the type of the file if required. Throws a <a>GError</a> if an error
--   occurs.
appInfoLaunchDefaultForUri :: GlibString string => string -> AppLaunchContext -> IO ()

-- | Gets the display string for the display. This is used to ensure new
--   applications are started on the same display as the launching
--   application.
appLaunchContextGetDisplay :: (AppInfoClass appinfo, GlibString string) => AppLaunchContext -> appinfo -> [File] -> IO string

-- | Initiates startup notification for the application and returns the
--   DesktopStartupId for the launched operation, if supported.
--   
--   Startup notification IDs are defined in the FreeDesktop.Org Startup
--   Notifications standard.
appLaunchContextGetStartupNotifyId :: (AppInfoClass appinfo, GlibString string) => AppLaunchContext -> appinfo -> [File] -> IO (Maybe string)

-- | Called when an application has failed to launch, so that it can cancel
--   the application startup notification started in
--   <a>appLaunchContextGetStartupNotifyId</a>.
appLaunchContextLaunchFailed :: GlibString string => AppLaunchContext -> string -> IO ()

-- | Creates a new application launch context. This is not normally used,
--   instead you instantiate a subclass of this, such as
--   <a>AppLaunchContext</a>.
appLaunchContextNew :: IO AppLaunchContext


module System.GIO.Async.Cancellable
newtype Cancellable
Cancellable :: (ForeignPtr (Cancellable)) -> Cancellable
class GObjectClass o => CancellableClass o

-- | Creates a new <a>Cancellable</a> object.
--   
--   Applications that want to start one or more operations that should be
--   cancellable should create a <a>Cancellable</a> and pass it to the
--   operations.
--   
--   One <a>Cancellable</a> can be used in multiple consecutive operations,
--   but not in multiple concurrent operations.
cancellableNew :: IO Cancellable

-- | Checks if a cancellable job has been cancelled.
cancellableIsCancelled :: Cancellable -> IO Bool

-- | If the cancellable is cancelled, throws a <a>GError</a> to notify that
--   the operation was cancelled.
cancellableThrowErrorIfCancelled :: Cancellable -> IO ()

-- | Gets the top cancellable from the stack.
cancellableGetCurrent :: IO (Maybe Cancellable)

-- | Pops cancellable off the cancellable stack (verifying that cancellable
--   is on the top of the stack).
cancellablePopCurrent :: Maybe Cancellable -> IO ()

-- | Pushes cancellable onto the cancellable stack. The current cancllable
--   can then be recieved using <a>cancellableGetCurrent</a> .
--   
--   This is useful when implementing cancellable operations in code that
--   does not allow you to pass down the cancellable object.
--   
--   This is typically called automatically by e.g. <a>File</a> operations,
--   so you rarely have to call this yourself.
cancellablePushCurrent :: Maybe Cancellable -> IO ()

-- | Resets cancellable to its uncancelled state.
cancellableReset :: Cancellable -> IO ()

-- | Will set cancellable to cancelled, and will emit the "cancelled"
--   signal. (However, see the warning about race conditions in the
--   documentation for that signal if you are planning to connect to it.)
--   
--   This function is thread-safe. In other words, you can safely call it
--   from a thread other than the one running the operation that was passed
--   the cancellable.
--   
--   The convention within gio is that cancelling an asynchronous operation
--   causes it to complete asynchronously. That is, if you cancel the
--   operation from the same thread in which it is running, then the
--   operation's <tt>AsyncReadyCallback</tt> will not be invoked until the
--   application returns to the main loop.
cancellableCancel :: Cancellable -> IO ()

-- | Emitted when the operation has been cancelled.
--   
--   Can be used by implementations of cancellable operations. If the
--   operation is cancelled from another thread, the signal will be emitted
--   in the thread that cancelled the operation, not the thread that is
--   running the operation.
--   
--   Note that disconnecting from this signal (or any signal) in a
--   multi-threaded program is prone to race conditions. For instance it is
--   possible that a signal handler may be invoked even after a call to
--   <tt>signalHandlerDisconnect</tt> for that handler has already
--   returned.
--   
--   There is also a problem when cancellation happen right before
--   connecting to the signal. If this happens the signal will unexpectedly
--   not be emitted, and checking before connecting to the signal leaves a
--   race condition where this is still happening.
cancellableCancelled :: Signal Cancellable (IO ())


module System.GIO.Async.AsyncResult
data AsyncResult
class GObjectClass o => AsyncResultClass o
type AsyncReadyCallback = GObject -> AsyncResult -> IO ()
marshalAsyncReadyCallback :: AsyncReadyCallback -> IO GAsyncReadyCallback


module System.GIO.File.File
newtype File
File :: (ForeignPtr (File)) -> File
class GObjectClass o => FileClass o
type FileProgressCallback = Offset -> Offset -> IO ()
type FileReadMoreCallback = ByteString -> IO Bool
type Offset = CLong
data FileInputStream
class InputStreamClass o => FileInputStreamClass o
data FileOutputStream
class OutputStreamClass o => FileOutputStreamClass o
data InputStream
class GObjectClass o => InputStreamClass o
data OutputStream
class GObjectClass o => OutputStreamClass o
data BufferedInputStream
class FilterInputStreamClass o => BufferedInputStreamClass o
data BufferedOutputStream
class FilterOutputStreamClass o => BufferedOutputStreamClass o
data MemoryInputStream
class InputStreamClass o => MemoryInputStreamClass o
data MemoryOutputStream
class OutputStreamClass o => MemoryOutputStreamClass o
data FilterInputStream
class InputStreamClass o => FilterInputStreamClass o
data FilterOutputStream
class OutputStreamClass o => FilterOutputStreamClass o
data DataInputStream
class BufferedInputStreamClass o => DataInputStreamClass o
data DataOutputStream
class FilterOutputStreamClass o => DataOutputStreamClass o

-- | Indicates the file's on-disk type.
data FileType
FileTypeUnknown :: FileType
FileTypeRegular :: FileType
FileTypeDirectory :: FileType
FileTypeSymbolicLink :: FileType
FileTypeSpecial :: FileType
FileTypeShortcut :: FileType
FileTypeMountable :: FileType

-- | Flags used when copying or moving files.
data FileCopyFlags
FileCopyNone :: FileCopyFlags
FileCopyOverwrite :: FileCopyFlags
FileCopyBackup :: FileCopyFlags
FileCopyNofollowSymlinks :: FileCopyFlags
FileCopyAllMetadata :: FileCopyFlags
FileCopyNoFallbackForMove :: FileCopyFlags
FileCopyTargetDefaultPerms :: FileCopyFlags

-- | Flags used when querying a <tt>FileInfo</tt>.
data FileQueryInfoFlags
FileQueryInfoNone :: FileQueryInfoFlags
FileQueryInfoNofollowSymlinks :: FileQueryInfoFlags
data FileCreateFlags
FileCreateNone :: FileCreateFlags
FileCreatePrivate :: FileCreateFlags
FileCreateReplaceDestination :: FileCreateFlags

-- | Flags used to set what a <tt>FileMonitor</tt> will watch for.
data FileMonitorFlags
FileMonitorNone :: FileMonitorFlags
FileMonitorWatchMounts :: FileMonitorFlags
FileMonitorSendMoved :: FileMonitorFlags
FileMonitorWatchHardLinks :: FileMonitorFlags
FileMonitorWatchMoves :: FileMonitorFlags

-- | Flags used when mounting a mount.
data MountMountFlags
MountMountNone :: MountMountFlags

-- | Flags used when an unmounting a mount.
data MountUnmountFlags
MountUnmountNone :: MountUnmountFlags
MountUnmountForce :: MountUnmountFlags

-- | Constructs a <a>File</a> for a given path. This operation never fails,
--   but the returned object might not support any I/O operation if path is
--   malformed.
fileFromPath :: ByteString -> File

-- | Constructs a <a>File</a> for a given URI. This operation never fails,
--   but the returned object might not support any I/O operation if uri is
--   malformed or if the uri type is not supported.
fileFromURI :: GlibString string => string -> File

-- | Creates a <a>File</a> with the given argument from the command line.
--   The value of arg can be either a URI, an absolute path or a relative
--   path resolved relative to the current working directory. This
--   operation never fails, but the returned object might not support any
--   I/O operation if arg points to a malformed path.
fileFromCommandlineArg :: ByteString -> File

-- | Constructs a <a>File</a> with the given name (i.e. something given by
--   <a>fileParseName</a>. This operation never fails, but the returned
--   object might not support any I/O operation if the <tt>parseName</tt>
--   cannot be parsed.
fileFromParseName :: GlibString string => string -> File

-- | Compare two file descriptors for equality. This test is also used to
--   implement the '(==)' function, that is, comparing two descriptions
--   will compare their content, not the pointers to the two structures.
fileEqual :: (FileClass file1, FileClass file2) => file1 -> file2 -> Bool

-- | Gets the base name (the last component of the path) for a given
--   <a>File</a>.
--   
--   If called for the top level of a system (such as the filesystem root
--   or a uri like sftp: will return a single directory separator (and on
--   Windows, possibly a drive letter).
--   
--   The base name is a byte string (*not* UTF-8). It has no defined
--   encoding or rules other than it may not contain zero bytes. If you
--   want to use filenames in a user interface you should use the display
--   name that you can get by requesting the
--   <tt>FileAttributeStandardDisplayName</tt> attribute with
--   <a>fileQueryInfo</a>.
--   
--   This call does no blocking i/o.
fileBasename :: FileClass file => file -> ByteString

-- | Gets the local pathname for <a>File</a>, if one exists.
--   
--   This call does no blocking i/o.
filePath :: FileClass file => file -> ByteString

-- | Checks if file has a parent, and optionally, if it is parent.
--   
--   If parent is <a>Nothing</a> then this function returns <a>True</a> if
--   file has any parent at all. If parent is non-<a>Nothing</a> then
--   <a>True</a> is only returned if file is a child of parent.
fileHasParent :: FileClass file => file -> Maybe File -> Bool

-- | Gets the URI for the file.
--   
--   This call does no blocking i/o.
fileURI :: (FileClass file, GlibString string) => file -> string

-- | Gets the parse name of the file. A parse name is a UTF-8 string that
--   describes the file such that one can get the <a>File</a> back using
--   <a>fileParseName</a>.
--   
--   This is generally used to show the <a>File</a> as a nice full-pathname
--   kind of string in a user interface, like in a location entry.
--   
--   For local files with names that can safely be converted to UTF8 the
--   pathname is used, otherwise the IRI is used (a form of URI that allows
--   UTF8 characters unescaped).
--   
--   This call does no blocking i/o.
fileParseName :: (FileClass file, GlibString string) => file -> string

-- | Gets a child of file with basename equal to name.
--   
--   Note that the file with that specific name might not exist, but you
--   can still have a <a>File</a> that points to it. You can use this for
--   instance to create that file.
--   
--   This call does no blocking i/o.
fileGetChild :: FileClass file => file -> ByteString -> File

-- | Gets the child of file for a given 'name (i.e. a UTF8 version of the
--   name)'. If this function fails, it throws a GError. This is very
--   useful when constructing a <a>File</a> for a new file and the user
--   entered the filename in the user interface, for instance when you
--   select a directory and type a filename in the file selector.
--   
--   This call does no blocking i/o.
fileGetChildForDisplayName :: (FileClass file, GlibString string) => file -> string -> File

-- | Checks whether file has the prefix specified by prefix. In other word,
--   if the names of inital elements of files pathname match prefix. Only
--   full pathname elements are matched, so a path like <i>foo is not
--   considered a prefix of </i>foobar, only of <i> foo</i>bar.
--   
--   This call does no i/o, as it works purely on names. As such it can
--   sometimes return <a>False</a> even if file is inside a prefix (from a
--   filesystem point of view), because the prefix of file is an alias of
--   prefix.
fileHasPrefix :: (FileClass file1, FileClass file2) => file1 -> file2 -> Bool

-- | Gets the path for descendant relative to parent.
--   
--   This call does no blocking i/o.
fileGetRelativePath :: (FileClass file1, FileClass file2) => file1 -> file2 -> Maybe ByteString

-- | Resolves a relative path for file to an absolute path.
--   
--   This call does no blocking i/o.
fileResolveRelativePath :: FileClass file => file -> ByteString -> Maybe File

-- | Checks to see if a file is native to the platform.
--   
--   A native file s one expressed in the platform-native filename format,
--   e.g. "C:Windows" or "<i>usr</i>bin/". This does not mean the file is
--   local, as it might be on a locally mounted remote filesystem.
--   
--   On some systems non-native files may be available using the native
--   filesystem via a userspace filesystem (FUSE), in these cases this call
--   will return <a>False</a>, but <tt>fileGetPath</tt> will still return a
--   native path.
--   
--   This call does no blocking i/o.
fileIsNative :: FileClass file => file -> Bool

-- | Checks to see if a <a>File</a> has a given URI scheme.
--   
--   This call does no blocking i/o.
fileHasURIScheme :: (FileClass file, GlibString string) => file -> string -> Bool

-- | Gets the URI scheme for a <a>File</a>. RFC 3986 decodes the scheme as:
--   
--   URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
--   
--   Common schemes include "file", "http", "ftp", etc.
--   
--   This call does no blocking i/o.
fileURIScheme :: (FileClass file, GlibString string) => file -> string

-- | Opens a file for reading. The result is a <a>FileInputStream</a> that
--   can be used to read the contents of the file.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
--   
--   If the file does not exist, the <a>IoErrorNotFound</a> error will be
--   returned. If the file is a directory, the <a>IoErrorIsDirectory</a>
--   error will be returned. Other errors are possible too, and depend on
--   what kind of filesystem the file is on.
fileRead :: FileClass file => file -> Maybe Cancellable -> IO FileInputStream

-- | Asynchronously opens file for reading.
--   
--   For more details, see <a>fileRead</a> which is the synchronous version
--   of this call.
--   
--   When the operation is finished, callback will be called. You can then
--   call <a>fileReadFinish</a> to get the result of the operation.
fileReadAsync :: FileClass file => file -> Int -> Maybe Cancellable -> AsyncReadyCallback -> IO ()

-- | Finishes an asynchronous file read operation started with
--   <a>fileReadAsync</a>.
fileReadFinish :: FileClass file => file -> AsyncResult -> IO FileInputStream

-- | Gets an output stream for appending data to the file. If the file
--   doesn't already exist it is created.
--   
--   By default files created are generally readable by everyone, but if
--   you pass <a>FileCreatePrivate</a> in flags the file will be made
--   readable only to the current user, to the level that is supported on
--   the target filesystem.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
--   
--   Some file systems don't allow all file names, and may return an
--   <a>IoErrorInvalidFilename</a> error. If the file is a directory the
--   <a>IoErrorIsDirectory</a> error will be returned. Other errors are
--   possible too, and depend on what kind of filesystem the file is on.
fileAppendTo :: FileClass file => file -> [FileCreateFlags] -> Maybe Cancellable -> IO FileOutputStream

-- | Creates a new file and returns an output stream for writing to it. The
--   file must not already exist.
--   
--   By default files created are generally readable by everyone, but if
--   you pass <a>FileCreatePrivate</a> in flags the file will be made
--   readable only to the current user, to the level that is supported on
--   the target filesystem.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
--   
--   If a file or directory with this name already exists the
--   <a>IoErrorExists</a> error will be returned. Some file systems don't
--   allow all file names, and may return an <a>IoErrorInvalidFilename</a>
--   error, and if the name is to long <a>IoErrorFilenameTooLong</a> will
--   be returned. Other errors are possible too, and depend on what kind of
--   filesystem the file is on.
fileCreate :: FileClass file => file -> [FileCreateFlags] -> Maybe Cancellable -> IO FileOutputStream

-- | Returns an output stream for overwriting the file, possibly creating a
--   backup copy of the file first. If the file doesn't exist, it will be
--   created.
--   
--   This will try to replace the file in the safest way possible so that
--   any errors during the writing will not affect an already existing copy
--   of the file. For instance, for local files it may write to a temporary
--   file and then atomically rename over the destination when the stream
--   is closed.
--   
--   By default files created are generally readable by everyone, but if
--   you pass <a>FileCreatePrivate</a> in flags the file will be made
--   readable only to the current user, to the level that is supported on
--   the target filesystem.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
--   
--   If you pass in a non-<a>Nothing</a> etag value, then this value is
--   compared to the current entity tag of the file, and if they differ an
--   <a>IoErrorWrongEtag</a> error is returned. This generally means that
--   the file has been changed since you last read it. You can get the new
--   etag from <tt>fileOutputStreamGetEtag</tt> after you've finished
--   writing and closed the <a>FileOutputStream</a>. When you load a new
--   file you can use <tt>fileInputStreamQueryInfo</tt> to get the etag of
--   the file.
--   
--   If <tt>makeBackup</tt> is <a>True</a>, this function will attempt to
--   make a backup of the current file before overwriting it. If this fails
--   a <a>IoErrorCantCreateBackup</a> error will be returned. If you want
--   to replace anyway, try again with <tt>makeBackup</tt> set to
--   <a>False</a>.
--   
--   If the file is a directory the <a>IoErrorIsDirectory</a> error will be
--   returned, and if the file is some other form of non-regular file then
--   a <a>IoErrorNotRegularFile</a> error will be returned. Some file
--   systems don't allow all file names, and may return an
--   <a>IoErrorInvalidFilename</a> error, and if the name is to long
--   <a>IoErrorFilenameTooLong</a> will be returned. Other errors are
--   possible too, and depend on what kind of filesystem the file is on.
fileReplace :: (FileClass file, GlibString string) => file -> Maybe string -> Bool -> [FileCreateFlags] -> Maybe Cancellable -> IO FileOutputStream

-- | Asynchronously opens file for appending.
--   
--   For more details, see <a>fileAppendTo</a> which is the synchronous
--   version of this call.
--   
--   When the operation is finished, callback will be called. You can then
--   call <a>fileAppendToFinish</a> to get the result of the operation.
fileAppendToAsync :: FileClass file => file -> [FileCreateFlags] -> Int -> Maybe Cancellable -> AsyncReadyCallback -> IO ()

-- | Finishes an asynchronous file append operation started with
--   <a>fileAppendToAsync</a>.
fileAppendToFinish :: FileClass file => file -> AsyncResult -> IO FileOutputStream

-- | Asynchronously creates a new file and returns an output stream for
--   writing to it. The file must not already exist.
--   
--   For more details, see <a>fileCreate</a> which is the synchronous
--   version of this call.
--   
--   When the operation is finished, callback will be called. You can then
--   call <a>fileCreateFinish</a> to get the result of the operation.
fileCreateAsync :: FileClass file => file -> [FileCreateFlags] -> Int -> Maybe Cancellable -> AsyncReadyCallback -> IO ()

-- | Finishes an asynchronous file create operation started with
--   <a>fileCreateAsync</a>.
fileCreateFinish :: FileClass file => file -> AsyncResult -> IO FileOutputStream

-- | Asynchronously overwrites the file, replacing the contents, possibly
--   creating a backup copy of the file first.
--   
--   For more details, see <a>fileReplace</a> which is the synchronous
--   version of this call.
--   
--   When the operation is finished, callback will be called. You can then
--   call <a>fileReplaceFinish</a> to get the result of the operation.
fileReplaceAsync :: (FileClass file, GlibString string) => file -> string -> Bool -> [FileCreateFlags] -> Int -> Maybe Cancellable -> AsyncReadyCallback -> IO ()

-- | Finishes an asynchronous file replace operation started with
--   <a>fileReplaceAsync</a>.
fileReplaceFinish :: FileClass file => file -> AsyncResult -> IO FileOutputStream

-- | Gets the requested information about specified file. The result is a
--   <a>FileInfo</a> object that contains key-value attributes (such as the
--   type or size of the file).
--   
--   The attribute value is a string that specifies the file attributes
--   that should be gathered. It is not an error if it's not possible to
--   read a particular requested attribute from a file - it just won't be
--   set. attribute should be a comma-separated list of attribute or
--   attribute wildcards. The wildcard "*" means all attributes, and a
--   wildcard like "standard::*" means all attributes in the standard
--   namespace. An example attribute query be "standard::*,<tt>user</tt>".
--   The standard attributes are available as defines, like
--   <tt>FileAttributeStandardName</tt>.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
--   
--   For symlinks, normally the information about the target of the symlink
--   is returned, rather than information about the symlink itself. However
--   if you pass <a>FileQueryInfoNofollowSymlinks</a> in flags the
--   information about the symlink itself will be returned. Also, for
--   symlinks that point to non-existing files the information about the
--   symlink itself will be returned.
--   
--   If the file does not exist, the <a>IoErrorNotFound</a> error will be
--   returned. Other errors are possible too, and depend on what kind of
--   filesystem the file is on.
fileQueryInfo :: (FileClass file, GlibString string) => file -> string -> [FileQueryInfoFlags] -> Maybe Cancellable -> IO FileInfo

-- | Asynchronously gets the requested information about specified file.
--   The result is a <a>FileInfo</a> object that contains key-value
--   attributes (such as type or size for the file).
--   
--   For more details, see <a>fileQueryInfo</a> which is the synchronous
--   version of this call.
--   
--   When the operation is finished, callback will be called. You can then
--   call <a>fileQueryInfoFinish</a> to get the result of the operation.
fileQueryInfoAsync :: (FileClass file, GlibString string) => file -> string -> [FileQueryInfoFlags] -> Int -> Maybe Cancellable -> AsyncReadyCallback -> IO ()

-- | Finishes an asynchronous file info query. See
--   <a>fileQueryInfoAsync</a>.
fileQueryInfoFinish :: FileClass file => file -> AsyncResult -> IO FileInfo

-- | Utility function to check if a particular file exists. This is
--   implemented using <a>fileQueryInfo</a> and as such does blocking I/O.
--   
--   Note that in many cases it is racy to first check for file existence
--   and then execute something based on the outcome of that, because the
--   file might have been created or removed in between the operations. The
--   general approach to handling that is to not check, but just do the
--   operation and handle the errors as they come.
--   
--   As an example of race-free checking, take the case of reading a file,
--   and if it doesn't exist, creating it. There are two racy versions:
--   read it, and on error create it; and: check if it exists, if not
--   create it. These can both result in two processes creating the file
--   (with perhaps a partially written file as the result). The correct
--   approach is to always try to create the file with <a>fileCreate</a>
--   which will either atomically create the file or fail with a
--   <a>IoErrorExists</a> error.
--   
--   However, in many cases an existence check is useful in a user
--   interface, for instance to make a menu item sensitive/ insensitive, so
--   that you don't have to fool users that something is possible and then
--   just show and error dialog. If you do this, you should make sure to
--   also handle the errors that can happen due to races when you execute
--   the operation.
fileQueryExists :: FileClass file => file -> Maybe Cancellable -> Bool

-- | Utility function to inspect the <a>FileType</a> of a file. This is
--   implemented using <a>fileQueryInfo</a> and as such does blocking I/O.
--   
--   The primary use case of this method is to check if a file is a regular
--   file, directory, or symlink.
fileQueryFileType :: FileClass file => file -> [FileQueryInfoFlags] -> Maybe Cancellable -> FileType

-- | Similar to <a>fileQueryInfo</a>, but obtains information about the
--   filesystem the file is on, rather than the file itself. For instance
--   the amount of space available and the type of the filesystem.
--   
--   The attribute value is a string that specifies the file attributes
--   that should be gathered. It is not an error if it's not possible to
--   read a particular requested attribute from a file - it just won't be
--   set. attribute should be a comma-separated list of attribute or
--   attribute wildcards. The wildcard "*" means all attributes, and a
--   wildcard like "fs:*" means all attributes in the fs namespace. The
--   standard namespace for filesystem attributes is "fs". Common
--   attributes of interest are 'FILEAttributeFilesystemSize (The Total
--   Size Of The Filesystem In Bytes)', 'FILEAttributeFilesystemFree
--   (Number Of Bytes Available)', and <tt>FileAttributeFilesystemType</tt>
--   (type of the filesystem).
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
--   
--   If the file does not exist, the <a>IoErrorNotFound</a> error will be
--   returned. Other errors are possible too, and depend on what kind of
--   filesystem the file is on.
fileQueryFilesystemInfo :: (FileClass file, GlibString string) => file -> string -> Maybe Cancellable -> IO FileInfo

-- | Asynchronously gets the requested information about the filesystem
--   that the specified file is on. The result is a <a>FileInfo</a> object
--   that contains key-value attributes (such as type or size for the
--   file).
--   
--   For more details, see <a>fileQueryFilesystemInfo</a> which is the
--   synchronous version of this call.
--   
--   When the operation is finished, callback will be called. You can then
--   call <a>fileQueryInfoFinish</a> to get the result of the operation.
fileQueryFilesystemInfoAsync :: (FileClass file, GlibString string) => file -> string -> Int -> Maybe Cancellable -> AsyncReadyCallback -> IO ()

-- | Finishes an asynchronous filesystem info query. See
--   <a>fileQueryFilesystemInfoAsync</a>.
fileQueryFilesystemInfoFinish :: FileClass file => file -> AsyncResult -> IO FileInfo

-- | Returns the <a>AppInfo</a> that is registered as the default
--   application to handle the file specified by file.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
fileQueryDefaultHandler :: FileClass file => file -> Maybe Cancellable -> IO AppInfo

-- | Gets a <a>Mount</a> for the <a>File</a>.
--   
--   If the <tt>FileIface</tt> for file does not have a mount (e.g.
--   possibly a remote share), error will be set to <a>IoErrorNotFound</a>
--   and <a>Nothing</a> will be returned.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
fileFindEnclosingMount :: FileClass file => file -> Maybe Cancellable -> IO Mount

-- | Asynchronously gets the mount for the file.
--   
--   For more details, see <a>fileFindEnclosingMount</a> which is the
--   synchronous version of this call.
--   
--   When the operation is finished, callback will be called. You can then
--   call <a>fileFindEnclosingMountFinish</a> to get the result of the
--   operation.
fileFindEnclosingMountAsync :: FileClass file => file -> Int -> Maybe Cancellable -> AsyncReadyCallback -> IO ()

-- | Finishes an asynchronous find mount request. See
--   <a>fileFindEnclosingMountAsync</a>.
fileFindEnclosingMountFinish :: FileClass file => file -> AsyncResult -> IO Mount

-- | Gets the requested information about the files in a directory. The
--   result is a <a>FileEnumerator</a> object that will give out
--   <a>FileInfo</a> objects for all the files in the directory.
--   
--   The attribute value is a string that specifies the file attributes
--   that should be gathered. It is not an error if it's not possible to
--   read a particular requested attribute from a file - it just won't be
--   set. attribute should be a comma-separated list of attribute or
--   attribute wildcards. The wildcard "*" means all attributes, and a
--   wildcard like "standard::*" means all attributes in the standard
--   namespace. An example attribute query be "standard::*,<tt>user</tt>".
--   The standard attributes are available as defines, like
--   <tt>FileAttributeStandardName</tt>.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
--   
--   If the file does not exist, the <a>IoErrorNotFound</a> error will be
--   returned. If the file is not a directory, the <tt>FileErrorNotdir</tt>
--   error will be returned. Other errors are possible too.
fileEnumerateChildren :: FileClass file => file -> String -> [FileQueryInfoFlags] -> Maybe Cancellable -> IO FileEnumerator

-- | Asynchronously gets the requested information about the files in a
--   directory. The result is a <a>FileEnumerator</a> object that will give
--   out <a>FileInfo</a> objects for all the files in the directory.
--   
--   For more details, see <a>fileEnumerateChildren</a> which is the
--   synchronous version of this call.
--   
--   When the operation is finished, callback will be called. You can then
--   call <a>fileEnumerateChildrenFinish</a> to get the result of the
--   operation.
fileEnumerateChildrenAsync :: (FileClass file, GlibString string) => file -> string -> [FileQueryInfoFlags] -> Int -> Maybe Cancellable -> AsyncReadyCallback -> IO ()

-- | Finishes an async enumerate children operation. See
--   <a>fileEnumerateChildrenAsync</a>.
fileEnumerateChildrenFinish :: FileClass file => file -> AsyncResult -> IO FileEnumerator

-- | Renames file to the specified display name.
--   
--   The display name is converted from UTF8 to the correct encoding for
--   the target filesystem if possible and the file is renamed to this.
--   
--   If you want to implement a rename operation in the user interface the
--   edit name (<tt>FileAttributeStandardEditName</tt>) should be used as
--   the initial value in the rename widget, and then the result after
--   editing should be passed to <a>fileSetDisplayName</a>.
--   
--   On success the resulting converted filename is returned.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
fileSetDisplayName :: (FileClass file, GlibString string) => file -> string -> Maybe Cancellable -> IO File

-- | Asynchronously sets the display name for a given <a>File</a>.
--   
--   For more details, see <a>fileSetDisplayName</a> which is the
--   synchronous version of this call.
--   
--   When the operation is finished, callback will be called. You can then
--   call <a>fileSetDisplayNameFinish</a> to get the result of the
--   operation.
fileSetDisplayNameAsync :: (FileClass file, GlibString string) => file -> string -> Int -> Maybe Cancellable -> AsyncReadyCallback -> IO ()

-- | Finishes setting a display name started with
--   <a>fileSetDisplayNameAsync</a>.
fileSetDisplayNameFinish :: FileClass file => file -> AsyncResult -> IO File

-- | Deletes a file. If the file is a directory, it will only be deleted if
--   it is empty.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
fileDelete :: FileClass file => file -> Maybe Cancellable -> IO ()

-- | Sends file to the <a>Trashcan</a>, if possible. This is similar to
--   deleting it, but the user can recover it before emptying the trashcan.
--   Not all file systems support trashing, so this call can return the
--   <a>IoErrorNotSupported</a> error.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
fileTrash :: FileClass file => file -> Maybe Cancellable -> IO ()

-- | Copies the file source to the location specified by destination. Can
--   not handle recursive copies of directories.
--   
--   If the flag <a>FileCopyOverwrite</a> is specified an already existing
--   destination file is overwritten.
--   
--   If the flag <a>FileCopyNofollowSymlinks</a> is specified then symlinks
--   will be copied as symlinks, otherwise the target of the source symlink
--   will be copied.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
--   
--   If <tt>progressCallback</tt> is not <a>Nothing</a>, then the operation
--   can be monitored by setting this to a <a>FileProgressCallback</a>
--   function. <tt>progressCallbackData</tt> will be passed to this
--   function. It is guaranteed that this callback will be called after all
--   data has been transferred with the total number of bytes copied during
--   the operation.
--   
--   If the source file does not exist then the <a>IoErrorNotFound</a>
--   error is returned, independent on the status of the destination.
--   
--   If <a>FileCopyOverwrite</a> is not specified and the target exists,
--   then the error <a>IoErrorExists</a> is returned.
--   
--   If trying to overwrite a file over a directory the
--   <a>IoErrorIsDirectory</a> error is returned. If trying to overwrite a
--   directory with a directory the <a>IoErrorWouldMerge</a> error is
--   returned.
--   
--   If the source is a directory and the target does not exist, or
--   <a>FileCopyOverwrite</a> is specified and the target is a file, then
--   the <a>IoErrorWouldRecurse</a> error is returned.
--   
--   If you are interested in copying the <a>File</a> object itself (not
--   the on-disk file), see <tt>fileDup</tt>.
fileCopy :: (FileClass source, FileClass destination) => source -> destination -> [FileCopyFlags] -> Maybe Cancellable -> Maybe FileProgressCallback -> IO ()

-- | Copies the file source to the location specified by destination
--   asynchronously. For details of the behaviour, see <a>fileCopy</a>.
--   
--   If <tt>progressCallback</tt> is not <a>Nothing</a>, then that function
--   that will be called just like in <a>fileCopy</a>, however the callback
--   will run in the main loop, not in the thread that is doing the I/O
--   operation.
--   
--   When the operation is finished, callback will be called. You can then
--   call <a>fileCopyFinish</a> to get the result of the operation.
fileCopyAsync :: (FileClass source, FileClass destination) => source -> destination -> [FileCopyFlags] -> Int -> Maybe Cancellable -> Maybe FileProgressCallback -> AsyncReadyCallback -> IO ()

-- | Finishes copying the file started with <a>fileCopyAsync</a>.
--   
--   Throws a <a>GError</a> if an error occurs.
fileCopyFinish :: FileClass file => file -> AsyncResult -> IO ()

-- | Tries to move the file or directory source to the location specified
--   by destination. If native move operations are supported then this is
--   used, otherwise a copy + delete fallback is used. The native
--   implementation may support moving directories (for instance on moves
--   inside the same filesystem), but the fallback code does not.
--   
--   If the flag <a>FileCopyOverwrite</a> is specified an already existing
--   destination file is overwritten.
--   
--   If the flag <a>FileCopyNofollowSymlinks</a> is specified then symlinks
--   will be copied as symlinks, otherwise the target of the source symlink
--   will be copied.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
--   
--   If <tt>progressCallback</tt> is not <a>Nothing</a>, then the operation
--   can be monitored by setting this to a <a>FileProgressCallback</a>
--   function. <tt>progressCallbackData</tt> will be passed to this
--   function. It is guaranteed that this callback will be called after all
--   data has been transferred with the total number of bytes copied during
--   the operation.
--   
--   If the source file does not exist then the <a>IoErrorNotFound</a>
--   error is returned, independent on the status of the destination.
--   
--   If <a>FileCopyOverwrite</a> is not specified and the target exists,
--   then the error <a>IoErrorExists</a> is returned.
--   
--   If trying to overwrite a file over a directory the
--   <a>IoErrorIsDirectory</a> error is returned. If trying to overwrite a
--   directory with a directory the <a>IoErrorWouldMerge</a> error is
--   returned.
--   
--   If the source is a directory and the target does not exist, or
--   <a>FileCopyOverwrite</a> is specified and the target is a file, then
--   the <a>IoErrorWouldRecurse</a> error may be returned (if the native
--   move operation isn't available).
fileMove :: (FileClass source, FileClass destination) => source -> destination -> [FileCopyFlags] -> Maybe Cancellable -> Maybe FileProgressCallback -> IO ()

-- | Creates a directory. Note that this will only create a child directory
--   of the immediate parent directory of the path or URI given by the
--   <a>File</a>. To recursively create directories, see
--   <a>fileMakeDirectoryWithParents</a>. This function will fail if the
--   parent directory does not exist, setting error to
--   <a>IoErrorNotFound</a>. If the file system doesn't support creating
--   directories, this function will fail, setting error to
--   <a>IoErrorNotSupported</a>.
--   
--   For a local <a>File</a> the newly created directory will have the
--   default (current) ownership and permissions of the current process.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
fileMakeDirectory :: FileClass file => file -> Maybe Cancellable -> IO ()

-- | Creates a directory and any parent directories that may not exist
--   similar to 'mkdir -p'. If the file system does not support creating
--   directories, this function will fail, setting error to
--   <a>IoErrorNotSupported</a>.
--   
--   For a local <a>File</a> the newly created directories will have the
--   default (current) ownership and permissions of the current process.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
fileMakeDirectoryWithParents :: FileClass file => file -> Maybe Cancellable -> IO ()

-- | Creates a symbolic link.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
fileMakeSymbolicLink :: FileClass file => file -> ByteString -> Maybe Cancellable -> IO ()

-- | Obtain the list of settable attributes for the file.
--   
--   Returns the type and full attribute name of all the attributes that
--   can be set on this file. This doesn't mean setting it will always
--   succeed though, you might get an access failure, or some specific file
--   may not support a specific attribute.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
fileQuerySettableAttributes :: FileClass file => file -> Maybe Cancellable -> IO [FileAttributeInfo]

-- | Obtain the list of attribute namespaces where new attributes can be
--   created by a user. An example of this is extended attributes (in the
--   "xattr" namespace).
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
fileQueryWritableNamespaces :: FileClass file => file -> Maybe Cancellable -> IO [FileAttributeInfo]

-- | Tries to set all attributes in the <a>FileInfo</a> on the target
--   values, not stopping on the first error.
--   
--   If there is any error during this operation then error will be set to
--   the first error. Error on particular fields are flagged by setting the
--   "status" field in the attribute value to
--   <a>FileAttributeStatusErrorSetting</a>, which means you can also
--   detect further errors.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
fileSetAttributesFromInfo :: FileClass file => file -> FileInfo -> [FileQueryInfoFlags] -> Maybe Cancellable -> IO ()

-- | Asynchronously sets the attributes of file with info.
--   
--   For more details, see <a>fileSetAttributesFromInfo</a> which is the
--   synchronous version of this call.
--   
--   When the operation is finished, callback will be called. You can then
--   call <a>fileSetAttributesFinish</a> to get the result of the
--   operation.
fileSetAttributesFromInfoAsync :: FileClass file => file -> FileInfo -> [FileQueryInfoFlags] -> Int -> Maybe Cancellable -> AsyncReadyCallback -> IO ()

-- | Finishes setting an attribute started in
--   <tt>fileSetAttributesAsync</tt>.
--   
--   Throws a <a>GError</a> if an error occurs.
fileSetAttributesFinish :: FileClass file => file -> AsyncResult -> FileInfo -> IO ()

-- | Sets attribute of type <a>FileAttributeTypeString</a> to value. If
--   attribute is of a different type, this operation will fail.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
fileSetAttributeString :: (FileClass file, GlibString string) => file -> string -> string -> [FileQueryInfoFlags] -> Maybe Cancellable -> IO ()

-- | Sets attribute of type <a>FileAttributeTypeByteString</a> to value. If
--   attribute is of a different type, this operation will fail, returning
--   <a>False</a>.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
fileSetAttributeByteString :: (FileClass file, GlibString string) => file -> string -> string -> [FileQueryInfoFlags] -> Maybe Cancellable -> IO ()

-- | Sets attribute of type <tt>FileAttributeTypeUint32</tt> to value. If
--   attribute is of a different type, this operation will fail.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
fileSetAttributeWord32 :: (FileClass file, GlibString string) => file -> string -> Word32 -> [FileQueryInfoFlags] -> Maybe Cancellable -> IO ()

-- | Sets attribute of type <a>FileAttributeTypeInt32</a> to value. If
--   attribute is of a different type, this operation will fail.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
fileSetAttributeInt32 :: (FileClass file, GlibString string) => file -> string -> Int32 -> [FileQueryInfoFlags] -> Maybe Cancellable -> IO ()

-- | Sets attribute of type <tt>FileAttributeTypeUint64</tt> to value. If
--   attribute is of a different type, this operation will fail.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
fileSetAttributeWord64 :: (FileClass file, GlibString string) => file -> string -> Word64 -> [FileQueryInfoFlags] -> Maybe Cancellable -> IO ()

-- | Sets attribute of type <a>FileAttributeTypeInt64</a> to value. If
--   attribute is of a different type, this operation will fail.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
fileSetAttributeInt64 :: (FileClass file, GlibString string) => file -> string -> Int64 -> [FileQueryInfoFlags] -> Maybe Cancellable -> IO ()

-- | Copies the file attributes from source to destination.
--   
--   Normally only a subset of the file attributes are copied, those that
--   are copies in a normal file copy operation (which for instance does
--   not include e.g. owner). However if <a>FileCopyAllMetadata</a> is
--   specified in flags, then all the metadata that is possible to copy is
--   copied. This is useful when implementing move by copy + delete source.
fileCopyAttributes :: (FileClass source, FileClass destination) => source -> destination -> [FileCopyFlags] -> Maybe Cancellable -> IO ()

-- | Obtains a directory monitor for the given file. This may fail if
--   directory monitoring is not supported.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
fileMonitorDirectory :: FileClass file => file -> [FileMonitorFlags] -> Maybe Cancellable -> IO FileMonitor

-- | Obtains a file monitor for the given file. If no file notification
--   mechanism exists, then regular polling of the file is used.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
fileMonitorFile :: FileClass file => file -> [FileMonitorFlags] -> Maybe Cancellable -> IO FileMonitor

-- | Obtains a file or directory monitor for the given file, depending on
--   the type of the file.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
fileMonitor :: FileClass file => file -> [FileMonitorFlags] -> Maybe Cancellable -> IO FileMonitor

-- | Mounts a file of type <a>FileTypeMountable</a>. Using
--   <tt>mountOperation</tt>, you can request callbacks when, for instance,
--   passwords are needed during authentication.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
--   
--   When the operation is finished, callback will be called. You can then
--   call <a>fileMountMountableFinish</a> to get the result of the
--   operation.
fileMountMountable :: FileClass file => file -> [MountMountFlags] -> Maybe MountOperation -> Maybe Cancellable -> AsyncReadyCallback -> IO ()

-- | Finishes a mount operation. See <a>fileMountMountable</a> for details.
--   
--   Finish an asynchronous mount operation that was started with
--   <a>fileMountMountable</a>.
fileMountMountableFinish :: FileClass file => file -> AsyncResult -> IO File

-- | Unmounts a file of type <a>FileTypeMountable</a>.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
--   
--   When the operation is finished, callback will be called. You can then
--   call <tt>fileUnmountMountableFinish</tt> to get the result of the
--   operation.
fileUnmountMountableWithOperation :: FileClass file => file -> [MountUnmountFlags] -> Maybe MountOperation -> Maybe Cancellable -> AsyncReadyCallback -> IO ()

-- | Finishes an unmount operation, see
--   <a>fileUnmountMountableWithOperation</a> for details.
--   
--   Finish an asynchronous unmount operation that was started with
--   <a>fileUnmountMountableWithOperation</a>.
--   
--   Throws a <a>GError</a> if an error occurs.
fileUnmountMountableWithOperationFinish :: FileClass file => file -> AsyncResult -> IO ()

-- | Starts an asynchronous eject on a mountable. When this operation has
--   completed, callback will be called with <tt>userUser</tt> data, and
--   the operation can be finalized with
--   <a>fileEjectMountableWithOperationFinish</a>.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
fileEjectMountableWithOperation :: FileClass file => file -> [MountUnmountFlags] -> Maybe MountOperation -> Maybe Cancellable -> AsyncReadyCallback -> IO ()

-- | Finishes an asynchronous eject operation started by
--   <a>fileEjectMountableWithOperation</a>.
--   
--   Throws a <a>GError</a> if an error occurs.
fileEjectMountableWithOperationFinish :: FileClass file => file -> AsyncResult -> IO ()

-- | Starts a file of type <a>FileTypeMountable</a>. Using
--   <tt>startOperation</tt>, you can request callbacks when, for instance,
--   passwords are needed during authentication.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
--   
--   When the operation is finished, callback will be called. You can then
--   call <a>fileMountMountableFinish</a> to get the result of the
--   operation.
fileStartMountable :: FileClass file => file -> [DriveStartFlags] -> Maybe MountOperation -> Maybe Cancellable -> AsyncReadyCallback -> IO ()

-- | Finishes a start operation. See <a>fileStartMountable</a> for details.
--   
--   Finish an asynchronous start operation that was started with
--   <a>fileStartMountable</a>.
--   
--   Throws a <a>GError</a> if an error occurs.
fileStartMountableFinish :: FileClass file => file -> AsyncResult -> IO ()

-- | Stops a file of type <a>FileTypeMountable</a>.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
--   
--   When the operation is finished, callback will be called. You can then
--   call <a>fileStopMountableFinish</a> to get the result of the
--   operation.
fileStopMountable :: FileClass file => file -> [MountUnmountFlags] -> Maybe MountOperation -> Maybe Cancellable -> AsyncReadyCallback -> IO ()

-- | Finishes a stop operation. See <a>fileStopMountable</a> for details.
--   
--   Finish an asynchronous stop operation that was stoped with
--   <a>fileStopMountable</a>.
--   
--   Throws a <a>GError</a> if an error occurs.
fileStopMountableFinish :: FileClass file => file -> AsyncResult -> IO ()

-- | Polls a file of type <a>FileTypeMountable</a>.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
--   
--   When the operation is finished, callback will be called. You can then
--   call <a>fileMountMountableFinish</a> to get the result of the
--   operation.
filePollMountable :: FileClass file => file -> Maybe Cancellable -> AsyncReadyCallback -> IO ()

-- | Finishes a poll operation. See <a>filePollMountable</a> for details.
--   
--   Finish an asynchronous poll operation that was polled with
--   <a>filePollMountable</a>.
filePollMountableFinish :: FileClass file => file -> AsyncResult -> IO Bool

-- | Starts a <tt>mountOperation</tt>, mounting the volume that contains
--   the file location.
--   
--   When this operation has completed, callback will be called with
--   <tt>userUser</tt> data, and the operation can be finalized with
--   <a>fileMountEnclosingVolumeFinish</a>.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned.
fileMountEnclosingVolume :: FileClass file => file -> [MountMountFlags] -> Maybe MountOperation -> Maybe Cancellable -> AsyncReadyCallback -> IO ()

-- | Finishes a mount operation started by <a>fileMountEnclosingVolume</a>.
fileMountEnclosingVolumeFinish :: FileClass file => file -> AsyncResult -> IO Bool

-- | Checks if file supports thread-default contexts. If this returns
--   <a>False</a>, you cannot perform asynchronous operations on file in a
--   thread that has a thread-default context.
fileSupportsThreadContexts :: FileClass file => file -> IO Bool
instance GHC.Classes.Eq System.GIO.Types.File


module System.GIO.File.FileEnumerator
newtype FileEnumerator
FileEnumerator :: (ForeignPtr (FileEnumerator)) -> FileEnumerator
class GObjectClass o => FileEnumeratorClass o

-- | Returns information for the next file in the enumerated object. Will
--   block until the information is available. The <a>FileInfo</a> returned
--   from this function will contain attributes that match the attribute
--   string that was passed when the <a>FileEnumerator</a> was created.
--   
--   On error, a <a>GError</a> is thrown. If the enumerator is at the end,
--   <a>Nothing</a> will be returned.
fileEnumeratorNextFile :: FileEnumeratorClass enumerator => enumerator -> Maybe Cancellable -> IO (Maybe FileInfo)

-- | Releases all resources used by this enumerator, making the enumerator
--   return GIoErrorClosed on all calls.
--   
--   This will be automatically called when the last reference is dropped,
--   but you might want to call this function to make sure resources are
--   released as early as possible.
--   
--   Throws a <a>GError</a> if an error occurs.
fileEnumeratorClose :: FileEnumeratorClass enumerator => enumerator -> Maybe Cancellable -> IO ()

-- | Request information for a number of files from the enumerator
--   asynchronously. When all i/o for the operation is finished the
--   callback will be called with the requested information.
--   
--   The callback can be called with less than <tt>numFiles</tt> files in
--   case of error or at the end of the enumerator. In case of a partial
--   error the callback will be called with any succeeding items and no
--   error, and on the next request the error will be reported. If a
--   request is cancelled the callback will be called with
--   <a>IoErrorCancelled</a>.
--   
--   During an async request no other sync and async calls are allowed, and
--   will result in <a>IoErrorPending</a> errors.
--   
--   Any outstanding i/o request with higher priority (lower numerical
--   value) will be executed before an outstanding request with lower
--   priority. Default priority is GPriorityDefault.
fileEnumeratorNextFilesAsync :: FileEnumeratorClass enumerator => enumerator -> Int -> Int -> Maybe Cancellable -> AsyncReadyCallback -> IO ()

-- | Finishes the asynchronous operation started with
--   <a>fileEnumeratorNextFilesAsync</a>.
fileEnumeratorNextFilesFinish :: FileEnumeratorClass enumerator => enumerator -> AsyncResult -> IO [FileInfo]

-- | Asynchronously closes the file enumerator.
--   
--   If cancellable is not <a>Nothing</a>, then the operation can be
--   cancelled by triggering the cancellable object from another thread. If
--   the operation was cancelled, the error <a>IoErrorCancelled</a> will be
--   returned in <a>fileEnumeratorCloseFinish</a>.
fileEnumeratorCloseAsync :: FileEnumeratorClass enumerator => enumerator -> Int -> Maybe Cancellable -> AsyncReadyCallback -> IO ()

-- | Finishes closing a file enumerator, started from
--   <a>fileEnumeratorCloseAsync</a>.
--   
--   If the file enumerator was already closed when
--   <a>fileEnumeratorCloseAsync</a> was called, then this function will
--   report GIoErrorClosed in error, and return <a>False</a>. If the file
--   enumerator had pending operation when the close operation was started,
--   then this function will report <a>IoErrorPending</a>, and return
--   <a>False</a>. If cancellable was not <a>Nothing</a>, then the
--   operation may have been cancelled by triggering the cancellable object
--   from another thread. If the operation was cancelled, the <a>GError</a>
--   <a>IoErrorCancelled</a> will be thrown.
fileEnumeratorCloseFinish :: FileEnumeratorClass enumerator => enumerator -> AsyncResult -> IO ()

-- | Checks if the file enumerator has been closed.
fileEnumeratorIsClosed :: FileEnumeratorClass enumerator => enumerator -> IO Bool

-- | Checks if the file enumerator has pending operations.
fileEnumeratorHasPending :: FileEnumeratorClass enumerator => enumerator -> IO Bool

-- | Sets the file enumerator as having pending operations.
fileEnumeratorSetPending :: FileEnumeratorClass enumerator => enumerator -> Bool -> IO ()

-- | Get the <a>File</a> container which is being enumerated.
fileEnumeratorGetContainer :: FileEnumeratorClass enumerator => enumerator -> IO File


module System.GIO.Volumes.Drive
newtype Drive
Drive :: (ForeignPtr (Drive)) -> Drive
class GObjectClass o => DriveClass o

-- | Enumeration describing how a drive can be started/stopped.
data DriveStartStopType
DriveStartStopTypeUnknown :: DriveStartStopType
DriveStartStopTypeShutdown :: DriveStartStopType
DriveStartStopTypeNetwork :: DriveStartStopType
DriveStartStopTypeMultidisk :: DriveStartStopType
DriveStartStopTypePassword :: DriveStartStopType

-- | Flags used when starting a drive.
data DriveStartFlags
DriveStartNone :: DriveStartFlags

-- | Gets the name of drive.
driveGetName :: (DriveClass drive, GlibString string) => drive -> IO string

-- | Gets the icon for drive.
driveGetIcon :: DriveClass drive => drive -> IO Icon

-- | Check if drive has any mountable volumes.
driveHasVolumes :: DriveClass drive => drive -> IO Bool

-- | Get a list of mountable volumes for drive.
driveGetVolumes :: DriveClass drive => drive -> IO [Volume]

-- | Checks if drive can be eject.
driveCanEject :: DriveClass drive => drive -> IO Bool

-- | Gets a hint about how a drive can be started/stopped.
driveGetStartStopType :: DriveClass drive => drive -> IO DriveStartStopType

-- | Checks if a drive can be started.
driveCanStart :: DriveClass drive => drive -> IO Bool

-- | Checks if a drive can be started degraded.
driveCanStartDegraded :: DriveClass drive => drive -> IO Bool

-- | Checks if a drive can be stoped.
driveCanStop :: DriveClass drive => drive -> IO Bool

-- | Checks if a drive can be polled for media changes.
driveCanPollForMedia :: DriveClass drive => drive -> IO Bool

-- | Asynchronously polls drive to see if media has been inserted or
--   removed.
--   
--   When the operation is finished, callback will be called. You can then
--   call <a>drivePollForMediaFinish</a> to obtain the result of the
--   operation.
drivePollForMedia :: DriveClass drive => drive -> Maybe Cancellable -> AsyncReadyCallback -> IO ()

-- | Checks if the drive has media. Note that the OS may not be polling the
--   drive for media changes; see <a>driveIsMediaCheckAutomatic</a> for
--   more details.
driveHasMedia :: DriveClass drive => drive -> IO Bool

-- | Checks if drive is capabable of automatically detecting media changes.
driveIsMediaCheckAutomatic :: DriveClass drive => drive -> IO Bool

-- | Checks if the drive supports removable media.
driveIsMediaRemovable :: DriveClass drive => drive -> IO Bool

-- | Ejects a drive. This is an asynchronous operation, and is finished by
--   calling <a>driveEjectWithOperationFinish</a> with the drive and
--   <a>AsyncResult</a> data returned in the callback.
driveEjectWithOperation :: DriveClass drive => drive -> [MountUnmountFlags] -> Maybe MountOperation -> Maybe Cancellable -> AsyncReadyCallback -> IO ()

-- | Finishes ejecting a drive. If any errors occurred during the
--   operation, error will be set to contain the errors and <a>False</a>
--   will be returned.
--   
--   Throws a <a>GError</a> if an error occurs.
driveEjectWithOperationFinish :: DriveClass drive => drive -> AsyncResult -> IO ()

-- | Asynchronously starts a drive.
--   
--   When the operation is finished, callback will be called. You can then
--   call <a>driveStartFinish</a> to obtain the result of the operation.
driveStart :: DriveClass drive => drive -> [DriveStartFlags] -> Maybe MountOperation -> Maybe Cancellable -> AsyncReadyCallback -> IO ()

-- | Finishes starting a drive.
--   
--   Throws a <a>GError</a> if an error occurs.
driveStartFinish :: DriveClass drive => drive -> AsyncResult -> IO ()

-- | Finishes stoping a drive.
--   
--   Throws a <a>GError</a> if an error occurs.
driveStopFinish :: DriveClass drive => drive -> AsyncResult -> IO ()

-- | Gets the kinds of identifiers that drive has. Use
--   <tt>driveGetIdentifer</tt> to obtain the identifiers themselves.
driveEnumerateIdentifiers :: (DriveClass drive, GlibString string) => drive -> IO [string]

-- | Gets the identifier of the given kind for drive. See the introduction
--   for more information about drive identifiers.
driveGetIdentifier :: (DriveClass drive, GlibString string) => drive -> string -> IO string

-- | Emitted when a drive changes.
driveChanged :: DriveClass drive => Signal drive (Drive -> IO ())

-- | Emitted when a drive changes.
driveDisconnected :: DriveClass drive => Signal drive (Drive -> IO ())

-- | Emitted when the eject button is pressed on drive.
driveEjectButton :: DriveClass drive => Signal drive (Drive -> IO ())

-- | Emitted when the stop button is pressed on drive.
driveStopButton :: DriveClass drive => Signal drive (Drive -> IO ())


module System.GIO.Volumes.Mount
newtype Mount
Mount :: (ForeignPtr (Mount)) -> Mount
class GObjectClass o => MountClass o

-- | Gets the name of mount.
mountGetName :: (MountClass mount, GlibString string) => mount -> IO string

-- | Gets the UUID for the mount. The reference is typically based on the
--   file system UUID for the mount in question and should be considered an
--   opaque string. Returns <a>Nothing</a> if there is no UUID available.
mountGetUUID :: (MountClass mount, GlibString string) => mount -> IO (Maybe string)

-- | Gets the icon for mount.
mountGetIcon :: MountClass mount => mount -> IO Icon

-- | Gets the drive for the mount.
--   
--   This is a convenience method for getting the <a>Volume</a> and then
--   using that object to get the <a>Drive</a>.
mountGetDrive :: MountClass mount => mount -> IO (Maybe Drive)

-- | Gets the root directory on mount.
mountGetRoot :: MountClass mount => mount -> IO File

-- | Gets the volume directory on mount.
mountGetVolume :: MountClass mount => mount -> IO (Maybe Volume)

-- | Gets the default location of mount. The default location of the given
--   mount is a path that reflects the main entry point for the user (e.g.
--   the home directory, or the root of the volume). | Gets the root
--   directory on mount.
mountGetDefaultLocation :: MountClass mount => mount -> IO File

-- | Checks if mount can be mounted.
mountCanUnmount :: MountClass mount => mount -> IO Bool

-- | Unmounts a mount. This is an asynchronous operation, and is finished
--   by calling <a>mountUnmountWithOperationFinish</a> with the mount and
--   <a>AsyncResult</a> data returned in the callback.
mountUnmountWithOperation :: MountClass mount => mount -> [MountUnmountFlags] -> Maybe MountOperation -> Maybe Cancellable -> AsyncReadyCallback -> IO ()

-- | Finishes unmounting a mount. If any errors occurred during the
--   operation, error will be set to contain the errors and <a>False</a>
--   will be returned.
--   
--   Throws a <a>GError</a> if an error occurs.
mountUnmountWithOperationFinish :: MountClass mount => mount -> AsyncResult -> IO ()

-- | Remounts a mount. This is an asynchronous operation, and is finished
--   by calling <a>mountRemountFinish</a> with the mount and
--   <a>AsyncResult</a>s data returned in the callback.
--   
--   Remounting is useful when some setting affecting the operation of the
--   volume has been changed, as these may need a remount to take affect.
--   While this is semantically equivalent with unmounting and then
--   remounting not all backends might need to actually be unmounted.
mountRemount :: MountClass mount => mount -> [MountMountFlags] -> Maybe MountOperation -> Maybe Cancellable -> AsyncReadyCallback -> IO ()

-- | Finishes remounting a mount. If any errors occurred during the
--   operation, error will be set to contain the errors and <a>False</a>
--   will be returned.
--   
--   Throws a <a>GError</a> if an error occurs.
mountRemountFinish :: MountClass mount => mount -> AsyncResult -> IO ()

-- | Checks if mount can be eject.
mountCanEject :: MountClass mount => mount -> IO Bool

-- | Ejects a mount. This is an asynchronous operation, and is finished by
--   calling <a>mountEjectWithOperationFinish</a> with the mount and
--   <a>AsyncResult</a> data returned in the callback.
mountEjectWithOperation :: MountClass mount => mount -> [MountUnmountFlags] -> Maybe MountOperation -> Maybe Cancellable -> AsyncReadyCallback -> IO ()

-- | Finishes ejecting a mount. If any errors occurred during the
--   operation.
--   
--   Throws a <a>GError</a> if an error occurs.
mountEjectWithOperationFinish :: MountClass mount => mount -> AsyncResult -> IO ()

-- | Tries to guess the type of content stored on mount. Returns one or
--   more textual identifiers of well-known content types (typically
--   prefixed with "x-content<i>"), e.g. x-content</i>image-dcf for camera
--   memory cards. See the shared-mime-info specification for more on
--   x-content types.
--   
--   This is an asynchronous operation (see
--   <a>mountGuessContentTypeSync</a> for the synchronous version), and is
--   finished by calling <a>mountGuessContentTypeFinish</a> with the mount
--   and <a>AsyncResult</a> data returned in the callback.
mountGuessContentType :: MountClass mount => mount -> Bool -> Maybe Cancellable -> AsyncReadyCallback -> IO ()

-- | Finishes guessing content types of mount. If any errors occured during
--   the operation, error will be set to contain the errors and
--   <a>False</a> will be returned. In particular, you may get an
--   <a>IoErrorNotSupported</a> if the mount does not support content
--   guessing.
mountGuessContentTypeFinish :: (MountClass mount, GlibString string) => mount -> AsyncResult -> IO [string]

-- | Tries to guess the type of content stored on mount. Returns one or
--   more textual identifiers of well-known content types (typically
--   prefixed with "x-content<i>"), e.g. x-content</i>image-dcf for camera
--   memory cards. See the shared-mime-info specification for more on
--   x-content types.
--   
--   This is an synchronous operation and as such may block doing IO; see
--   <a>mountGuessContentType</a> for the asynchronous version.
mountGuessContentTypeSync :: (MountClass mount, GlibString string) => mount -> Bool -> Maybe Cancellable -> IO [string]

-- | Determines if mount is shadowed. Applications or libraries should
--   avoid displaying mount in the user interface if it is shadowed.
--   
--   A mount is said to be shadowed if there exists one or more user
--   visible objects (currently <a>Mount</a> objects) with a root that is
--   inside the root of mount.
--   
--   One application of shadow mounts is when exposing a single file system
--   that is used to address several logical volumes. In this situation, a
--   <a>VolumeMonitor</a> implementation would create two <a>Volume</a>
--   objects (for example, one for the camera functionality of the device
--   and one for a SD card reader on the device) with activation URIs
--   gphoto2: gphoto2: mounted, said <a>VolumeMonitor</a> implementation
--   would create two <a>Mount</a> objects (each with their root matching
--   the corresponding volume activation root) that would shadow the
--   original mount.
--   
--   The proxy monitor in GVfs 2.26 and later, automatically creates and
--   manage shadow mounts (and shadows the underlying mount) if the
--   activation root on a <a>Volume</a> is set.
mountIsShadowed :: MountClass mount => mount -> IO Bool

-- | Increments the shadow count on mount. Usually used by
--   <a>VolumeMonitor</a> implementations when creating a shadow mount for
--   mount, see <a>mountIsShadowed</a> for more information. The caller
--   will need to emit the "changed" signal on mount manually.
mountShadow :: MountClass mount => mount -> IO ()

-- | Decrements the shadow count on mount. Usually used by
--   <a>VolumeMonitor</a> implementations when destroying a shadow mount
--   for mount, see <a>mountIsShadowed</a> for more information. The caller
--   will need to emit the "changed" signal on mount manually.
mountUnshadow :: MountClass mount => mount -> IO ()

-- | Emitted when the mount has been changed.
mountChanged :: MountClass mount => Signal mount (IO ())

-- | This signal is emitted when the <a>Mount</a> is about to be unmounted.
mountPreUnmount :: MountClass mount => Signal mount (IO ())

-- | This signal is emitted when the <a>Mount</a> have been unmounted. If
--   the recipient is holding references to the object they should release
--   them so the object can be finalized.
mountUnmounted :: MountClass mount => Signal mount (IO ())


module System.GIO.Volumes.Volume
newtype Volume
Volume :: (ForeignPtr (Volume)) -> Volume
class GObjectClass o => VolumeClass o

-- | Gets the name of volume.
volumeGetName :: (VolumeClass volume, GlibString string) => volume -> IO string

-- | Gets the UUID for the volume. The reference is typically based on the
--   file system UUID for the volume in question and should be considered
--   an opaque string. Returns <a>Nothing</a> if there is no UUID
--   available.
volumeGetUUID :: (VolumeClass volume, GlibString string) => volume -> IO (Maybe string)

-- | Gets the icon for volume.
volumeGetIcon :: VolumeClass volume => volume -> IO Icon

-- | Gets the drive for the volume.
volumeGetDrive :: VolumeClass volume => volume -> IO (Maybe Drive)

-- | Gets the mount for the volume.
volumeGetMount :: VolumeClass volume => volume -> IO (Maybe Mount)

-- | Checks if a volume can be mounted.
volumeCanMount :: VolumeClass volume => volume -> IO Bool

-- | Returns whether the volume should be automatically mounted.
volumeShouldAutomount :: VolumeClass volume => volume -> IO Bool

-- | Gets the activation root for a <a>Volume</a> if it is known ahead of
--   mount time. Returns <a>Nothing</a> otherwise. If not <a>Nothing</a>
--   and if volume is mounted, then the result of <tt>mountGetRoot</tt> on
--   the <a>Mount</a> object obtained from <a>volumeGetMount</a> will
--   always either be equal or a prefix of what this function returns.
volumeGetActivationRoot :: VolumeClass volume => volume -> IO (Maybe File)

-- | Mounts a volume. This is an asynchronous operation, and is finished by
--   calling <a>volumeMountFinish</a> with the volume and
--   <a>AsyncResult</a> returned in the callback.
volumeMount :: VolumeClass volume => volume -> [MountMountFlags] -> Maybe MountOperation -> Maybe Cancellable -> AsyncReadyCallback -> IO ()

-- | Finishes mounting a volume. If any errors occured during the
--   operation, error will be set to contain the errors and <a>False</a>
--   will be returned.
--   
--   If the mount operation succeeded, <a>volumeGetMount</a> on volume is
--   guaranteed to return the mount right after calling this function;
--   there's no need to listen for the 'mount-added' signal on
--   <a>VolumeMonitor</a>.
--   
--   Throws a <a>GError</a> if an error occurs.
volumeMountFinish :: VolumeClass volume => volume -> AsyncResult -> IO ()

-- | Checks if a volume can be ejected.
volumeCanEject :: VolumeClass volume => volume -> IO Bool

-- | Ejects a volume. This is an asynchronous operation, and is finished by
--   calling <a>volumeEjectWithOperationFinish</a> with the volume and
--   <a>AsyncResult</a> data returned in the callback.
volumeEjectWithOperation :: VolumeClass volume => volume -> [MountUnmountFlags] -> Maybe MountOperation -> Maybe Cancellable -> AsyncReadyCallback -> IO ()

-- | Finishes ejecting a volume. If any errors occurred during the
--   operation, error will be set to contain the errors and <a>False</a>
--   will be returned.
--   
--   Throws a <a>GError</a> if an error occurs.
volumeEjectWithOperationFinish :: VolumeClass volume => volume -> AsyncResult -> IO ()

-- | Gets the kinds of identifiers that volume has. Use
--   <tt>volumeGetIdentifer</tt> to obtain the identifiers themselves.
volumeEnumerateIdentifiers :: (VolumeClass volume, GlibString string) => volume -> IO [string]

-- | Gets the identifier of the given kind for volume. See the introduction
--   for more information about volume identifiers.
volumeGetIdentifier :: (VolumeClass volume, GlibString string) => volume -> string -> IO string

-- | Emitted when the volume has been changed.
volumeChanged :: VolumeClass volume => Signal volume (IO ())

-- | This signal is emitted when the <a>Volume</a> have been removed. If
--   the recipient is holding references to the object they should release
--   them so the object can be finalized.
volumeRemoved :: VolumeClass volume => Signal volume (IO ())


module System.GIO