1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818
|
<?xml version="1.0" encoding="ISO-8859-1"?>
<fpdoc-descriptions>
<package name="fcl">
<!--
====================================================================
daemonapp
====================================================================
-->
<module name="daemonapp">
<short>Daemon (service) application class</short>
<descr>
<p>
The <file>daemonapp</file> unit implements a <var>TApplication</var> class
which encapsulates a daemon or service application. It handles installation
where this is necessary, and does instantiation of the various daemons where necessary.
</p>
<p>
The unit consists of 3 separate classes which cooperate tightly:
</p>
<dl>
<dt>TDaemon</dt><dd>This is a class that implements the daemon's
functionality. One or more descendents of this class can be implemented and
instantiated in a single daemon application. For more information, see
<link id="TDaemon"/>.</dd>
<dt>TDaemonApplication</dt>
<dd>This is the actual daemon application class. A global instance of this
class is instantiated. It handles the command-line arguments, and instantiates
the various daemons. For more information, see
<link id="TDaemonApplication"/>.</dd>
<dt>TDaemonDef</dt>
<dd>This class defines the daemon in the operation system. The
<var>TDaemonApplication</var> class has a collection of
<var>TDaemonDef</var> instances, which it uses to start the various daemons.
For more information, see <link id="TDaemonDef"/>.</dd>
</dl>
<p>
As can be seen, a single application can implement one ore more daemons
(services). Each daemon will be run in a separate thread which is controlled
by the application class.
</p>
<p>
The classes take care of logging through the
<link id="#fcl.eventlog.TEventLog">TEventLog</link> class.
</p>
<p>
Many options are needed only to make the application behave as a windows
service application on windows. These options are ignored in UNIX-like
environment. The documentation will mention this.
</p>
</descr>
<!-- unresolved type reference Visibility: default -->
<element name="Custapp">
<short>Definition of <var>TCustomApplication</var></short>
</element>
<!-- unresolved type reference Visibility: default -->
<element name="Classes">
<short>Components and collections.</short>
</element>
<!-- unresolved type reference Visibility: default -->
<element name="SysUtils">
<short>Exception support and formatting routines</short>
</element>
<!-- unresolved type reference Visibility: default -->
<element name="eventlog">
<short>Event logging class.</short>
</element>
<!-- unresolved type reference Visibility: default -->
<element name="rtlconsts">
<short>Constant strings for messages</short>
</element>
<!--
********************************************************************
#fcl.daemonapp.TCustomDaemon
********************************************************************
-->
<!-- object Visibility: default -->
<element name="TCustomDaemon">
<short>Base daemon application class</short>
<descr>
<p>
<var>TCustomDaemon</var> implements all the basic calls that are needed
for a daemon to function. Descendents of <var>TCustomDaemon</var> can
override these calls to implement the daemon-specific behaviour.
</p>
<p>
<var>TCustomDaemon</var> is an abstract class, it should never be
instantiated. Either a descendent of it must be created and instantiated, or
a descendent of <link id="TDaemon"/> can be designed to implement the
behaviour of the daemon.
</p>
</descr>
<seealso>
<link id="TDaemon"/>
<link id="TDaemonDef"/>
<link id="TDaemonController"/>
<link id="TDaemonApplication"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.daemonapp.TDaemonController
********************************************************************
-->
<!-- object Visibility: default -->
<element name="TDaemonController">
<short>Internal daemon controller class</short>
<descr>
<var>TDaemonController</var> is a class that is used by the <link
id="TDaemonApplication"/> class to control the daemon during runtime.
The <var>TDaemonApplication</var> class instantiates an instance of
<var>TDaemonController</var> for each daemon in the application and
communicates with the daemon through the <var>TDaemonController</var>
instance. It should rarely be necessary to access or use this class.
</descr>
<seealso>
<link id="TCustomDaemon"/>
<link id="TDaemonApplication"/>
</seealso>
</element>
<!-- procedure type Visibility: default -->
<element name="TDaemonEvent">
<short>Daemon event handler prototype</short>
<descr>
<var>TDaemonEvent</var> is used in event handling. The <var>Sender</var>
is the <link id="TCustomDaemon"/> instance that has initiated the event.
</descr>
</element>
<!-- argument Visibility: default -->
<element name="TDaemonEvent.Sender">
<short>Daemon instance</short>
</element>
<!-- procedure type Visibility: default -->
<element name="TDaemonOKEvent">
<short>Daemon acknowledgement event handler</short>
<descr>
<var>TDaemonOKEvent</var> is used in event handling, when a boolean result
must be obtained, for instance, to see if an operation was performed
successfully.
</descr>
</element>
<!-- argument Visibility: default -->
<element name="TDaemonOKEvent.Sender">
<short>Daemon instance</short>
</element>
<!-- argument Visibility: default -->
<element name="TDaemonOKEvent.OK">
<short>Operation was successful</short>
</element>
<!-- enumeration type Visibility: default -->
<element name="TDaemonOption">
<short>Daemon options</short>
<descr>
Enumerated that enumerates the various daemon operation options.
</descr>
</element>
<!-- enumeration value Visibility: default -->
<element name="TDaemonOption.doAllowStop">
<short>The daemon can be stopped.</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TDaemonOption.doAllowPause">
<short>The daemon can be paused.</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TDaemonOption.doInteractive">
<short>The daemon interacts with the desktop.</short>
</element>
<!-- set type Visibility: default -->
<element name="TDaemonOptions">
<short>Set of <link id="TDaemonOption"/> options.</short>
<descr>
<var>TDaemonOption</var> enumerates the various options a daemon can have.
</descr>
</element>
<!-- enumeration type Visibility: default -->
<element name="TDaemonRunMode">
<short>Daemon application run mode</short>
<descr>
<var>TDaemonRunMode</var> indicates in what mode the daemon application
(as a whole) is currently running.
</descr>
<seealso>
<link id="TCustomDaemonApplication.RunMode">RunMode</link>
</seealso>
</element>
<!-- enumeration value Visibility: default -->
<element name="TDaemonRunMode.drmUnknown">
<short>Unknown mode</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TDaemonRunMode.drmInstall">
<short>Daemon install mode (windows only)</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TDaemonRunMode.drmUninstall">
<short>Daemon uninstall mode (windows only)</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TDaemonRunMode.drmRun">
<short>Daemon is running normally</short>
</element>
<!--
********************************************************************
#fcl.daemonapp.TDaemonDef
********************************************************************
-->
<!-- object Visibility: default -->
<element name="TDaemonDef">
<short>Daemon definition</short>
<descr>
<var>TDaemonDef</var> contains the definition of a daemon in the
application: The name of the daemon, which <link id="TCustomDaemon"/>
descendent should be started to run the daemon, a description, and various
other options should be set in this class.
The global <var>TDaemonApplication</var> instance maintains a collection
of <var>TDaemonDef</var> instances and will use these definitions to
install or start the various daemons.
</descr>
<seealso>
<link id="TDaemonApplication"/>
<link id="TDaemon"/>
</seealso>
</element>
<element name="TDaemonDef.RunArguments">
<short>Additional command-line arguments when running daemon.</short>
<descr>
<var>RunArguments</var> specifies any additional command-line arguments that
should be specified when running the daemon: these arguments will be passed
to the service manager when registering the service on windows.
</descr>
</element>
<!-- enumeration type Visibility: default -->
<element name="TCurrentStatus">
<short>Current daemon status</short>
<descr>
<var>TCurrentStatus</var> indicates the current state of the daemon. It
changes from one state to the next during the time the instance is active.
The daemon application changes the state of the daemon, depending on signals
it gets from the operating system, by calling the appropriate methods.
</descr>
</element>
<!-- enumeration value Visibility: default -->
<element name="TCurrentStatus.csStopped">
<short>The daemon is stopped, i.e. inactive.</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TCurrentStatus.csStartPending">
<short>The daemon is starting, but not yet fully running.</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TCurrentStatus.csStopPending">
<short>The daemon is stopping, but not yet fully stopped.</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TCurrentStatus.csRunning">
<short>The daemon is running (it is operational).</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TCurrentStatus.csContinuePending">
<short>The daemon is continuing, but not yet running</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TCurrentStatus.csPausePending">
<short>The daemon is about to be paused.</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TCurrentStatus.csPaused">
<short>The daemon is paused: running but not active.</short>
</element>
<element name="TCustomDaemon.CheckControlMessages">
<short/>
<descr/>
<seealso/>
</element>
<element name="TCustomDaemon.CheckControlMessages.Wait">
<short/>
</element>
<!-- procedure Visibility: public -->
<element name="TCustomDaemon.LogMessage">
<short>Log a message to the system log</short>
<descr>
<p>
<var>LogMessage</var> can be used to send a message <var>Msg</var> to the system log.
A <link id="#fcl.eventlog.Teventlog">TEventLog</link> instance is used to
actually send messages to the system log.
</p>
<p>
The message is sent with an 'error' flag (using <link
id="#fcl.eventlog.Teventlog.Error">TEventLog.Error</link>).
</p>
</descr>
<errors>
None.
</errors>
<seealso>
<link id="TCustomDaemon.ReportStatus">ReportStatus</link>
</seealso>
</element>
<!-- argument Visibility: default -->
<element name="TCustomDaemon.LogMessage.Msg">
<short>Message to send to the system log</short>
</element>
<!-- procedure Visibility: public -->
<element name="TCustomDaemon.ReportStatus">
<short>Report the current status to the operating system</short>
<descr>
<p>
<var>ReportStatus</var> can be used to report the current status to the
operating system. The start and stop or pause and continue operations
can be slow to start up. This call can (and should) be used to report the
current status to the operating system during such lengthy operations,
or else it may conclude that the daemon has died.
</p>
<p>
This call is mostly important on windows operating systems, to notify the
service manager that the operation is still in progress.
</p>
<p>
The implementation of <var>ReportStatus</var> simply calls
<var>ReportStatus</var> in the controller.
</p>
</descr>
<errors>
None.
</errors>
<seealso>
<link id="TCustomDaemon.LogMessage">LogMessage</link>
</seealso>
</element>
<!-- property Visibility: public -->
<element name="TCustomDaemon.Definition">
<short>The definition used to instantiate this daemon instance</short>
<descr>
<var>Definition</var> is the <link id="TDaemonDef"/> definition that was
used to start the daemon instance. It can be used to retrieve additional
information about the intended behaviour of the daemon.
</descr>
<seealso>
<link id="TDaemonDef"/>
</seealso>
</element>
<!-- property Visibility: public -->
<element name="TCustomDaemon.DaemonThread">
<short>Thread in which daemon is running</short>
<descr>
<var>DaemonThread</var> is the thread in which the daemon instance is running.
Each daemon instance in the application runs in it's own thread, none of
which are the main thread of the application. The application main thread is
used to handle control messages coming from the operating system.
</descr>
<seealso>
<link id="TCustomDaemon.Controller">Controller</link>
</seealso>
</element>
<!-- property Visibility: public -->
<element name="TCustomDaemon.Controller">
<short><var>TDaemonController</var> instance controlling this daemon instance</short>
<descr>
<var>Controller</var> points to the <var>TDaemonController</var> instance
that was created by the application instance to control this daemon.
</descr>
<seealso>
<link id="TCustomDaemon.DaemonThread">DaemonThread</link>
</seealso>
</element>
<!-- property Visibility: public -->
<element name="TCustomDaemon.Status">
<short>Current status of the daemon</short>
<descr>
<p>
<var>Status</var> indicates the current status of the daemon. It is set by
the various operations that the controller operates on the daemon, and
should not be set manually.
</p>
<p>
<var>Status</var> is the value which <var>ReportStatus</var> will send
to the operating system.
</p>
</descr>
<seealso>
<link id="TCustomDaemon.ReportStatus">ReportStatus</link>
</seealso>
</element>
<!-- property Visibility: public -->
<element name="TCustomDaemon.Logger">
<short><var>TEventLog</var> instance used to send messages to the system log</short>
<descr>
<var>Logger</var> is the <link id="#fcl.eventlog.TEventLog">TEventLog</link>
instance used to send messages to the system log. It is used by the
<link id="TCustomDaemon.LogMessage">LogMessage</link> call, but is accessible
through the <var>Logger</var> property in case more configurable logging is
needed than offered by <var>LogMessage</var>.
</descr>
<seealso>
<link id="TCustomDaemon.LogMessage">LogMessage</link>
<link id="#fcl.eventlog.TEventLog">TEventLog</link>
</seealso>
</element>
<!-- "class of" type Visibility: default -->
<element name="TCustomDaemonClass">
<short>Class type for <var>TCustomDaemon</var></short>
<descr>
The class type is needed in the <link id="TDaemonDef"/> definition.
</descr>
<seealso>
<link id="TDaemonDef"/>
</seealso>
</element>
<!-- procedure type Visibility: default -->
<element name="TCustomControlCodeEvent">
<short>Prototype for event to handle a custom control code</short>
<descr>
In case the system sends a non-standard control code to the daemon, an event
handler is executed with this prototype.
</descr>
</element>
<!-- argument Visibility: default -->
<element name="TCustomControlCodeEvent.Sender">
<short>Daemon instance for which the control event was meant</short>
</element>
<!-- argument Visibility: default -->
<element name="TCustomControlCodeEvent.ACode">
<short>Control code being sent to the daemon</short>
</element>
<!-- argument Visibility: default -->
<element name="TCustomControlCodeEvent.Handled">
<short>Was the control code handled ?</short>
</element>
<element name="TCustomControlCodeEvEvent">
<short/>
<descr>
<p>
TCustomControlCodeEvEvent is the type used for the OnControlCodeEvent
property in TDaemon.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomControlCodeEvEvent.Sender">
<short>Daemon instance for the event notification</short>
</element>
<element name="TCustomControlCodeEvEvent.ACode">
<short>Control code sent to the daemon</short>
</element>
<element name="TCustomControlCodeEvEvent.AEventType">
<short>Event type for the notification</short>
</element>
<element name="TCustomControlCodeEvEvent.AEventData">
<short>Pointer to the arbitrary data for the notification</short>
</element>
<element name="TCustomControlCodeEvEvent.Handled">
<short>True if the control code and event type were handled</short>
</element>
<!--
********************************************************************
#fcl.daemonapp.TDaemon
********************************************************************
-->
<!-- object Visibility: default -->
<element name="TDaemon">
<short>Daemon class for visual development</short>
<descr>
<p>
<var>TDaemon</var> is a <link id="TCustomDaemon"/> descendent which is
meant for development in a visual environment: it contains event handlers
for all major operations. Whenever a <var>TCustomDaemon</var> method is
executed, it's execution is shunted to the event handler, which can be
filled with code in the IDE.
</p>
<p>
All the events of the daemon are executed in the thread in which the
daemon's controller is running (as given by
<link id="TCustomDaemon.DaemonThread">DaemonThread</link>), which is
not the main program thread.
</p>
</descr>
<seealso>
<link id="TCustomDaemon"/>
<link id="TDaemonController"/>
</seealso>
</element>
<!-- property Visibility: public -->
<element name="TDaemon.Definition" link="TCustomDaemon.Definition">
</element>
<!-- property Visibility: public -->
<element name="TDaemon.Status" link="TCustomDaemon.Status">
</element>
<!-- property Visibility: published -->
<element name="TDaemon.OnStart">
<short>Daemon start event</short>
<descr>
<p>
<var>OnStart</var> is the event called when the daemon must be started. This
event handler should return as quickly as possible. If it must perform
lengthy operations, it is best to report the status to the operating system
at regular intervals using the <link id="TCustomDaemon.ReportStatus">ReportStatus</link> method.
</p>
<p>
If the start of the daemon should do some continuous action, then this
action should be performed in a new thread: this thread should then be
created and started in the <link id="TDaemon.OnExecute">OnExecute</link>
event handler, so the event handler can return at once.
</p>
</descr>
<seealso>
<link id="TDaemon.OnStop"/>
<link id="TDaemon.OnExecute"/>
<link id="TDaemon.OnContinue"/>
<link id="TCustomDaemon.ReportStatus">ReportStatus</link>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TDaemon.OnStop">
<short>Daemon stop event</short>
<descr>
<p>
<var>OnStart</var> is the event called when the daemon must be stopped. This
event handler should return as quickly as possible. If it must perform
lengthy operations, it is best to report the status to the operating system
at regular intervals using the <link id="TCustomDaemon.ReportStatus">ReportStatus</link> method.
</p>
<p>
If a thread was started in the <link id="TDaemon.OnExecute">OnExecute</link>
event, this is the place where the thread should be stopped.
</p>
</descr>
<seealso>
<link id="TDaemon.OnStart"/>
<link id="TDaemon.OnPause"/>
<link id="TCustomDaemon.ReportStatus">ReportStatus</link>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TDaemon.OnPause">
<short>Daemon pause event</short>
<descr>
<p>
<var>OnPause</var> is the event called when the daemon must be stopped. This
event handler should return as quickly as possible. If it must perform
lengthy operations, it is best to report the status to the operating system
at regular intervals using the <link id="TCustomDaemon.ReportStatus">ReportStatus</link> method.
</p>
<p>
If a thread was started in the <link id="TDaemon.OnExecute">OnExecute</link>
event, this is the place where the thread's execution should be suspended.
</p>
</descr>
<seealso>
<link id="TDaemon.OnStop"/>
<link id="TDaemon.OnContinue"/>
<link id="TCustomDaemon.ReportStatus">ReportStatus</link>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TDaemon.OnContinue">
<short>Daemon continue</short>
<descr>
<p>
<var>OnPause</var> is the event called when the daemon must be stopped. This
event handler should return as quickly as possible. If it must perform
lengthy operations, it is best to report the status to the operating system
at regular intervals using the <link
id="TCustomDaemon.ReportStatus">ReportStatus</link> method.
</p>
<p>
If a thread was started in the <link id="TDaemon.OnExecute">OnExecute</link>
event and it was suspended in a <link id="TDaemon.OnStart">OnPause</link>
event, this is the place where the thread's executed should be resumed.
</p>
</descr>
<seealso>
<link id="TDaemon.OnStart"/>
<link id="TDaemon.OnPause"/>
<link id="TCustomDaemon.ReportStatus">ReportStatus</link>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TDaemon.OnShutDown">
<short>Daemon shutdown</short>
<descr>
<p>
<var>OnShutDown</var> is the event called when the daemon must be shut down.
When the system is being shut down and the daemon does not respond to stop
signals, then a shutdown message is sent to the daemon. This event can be
used to respond to such a message. The daemon process will simply be stopped
after this event.
</p>
<p>
If a thread was started in the <link id="TDaemon.OnExecute">OnExecute</link>,
this is the place where the thread's executed should be stopped or the
thread freed from memory.
</p>
</descr>
<seealso>
<link id="TDaemon.OnStart"/>
<link id="TDaemon.OnPause"/>
<link id="TCustomDaemon.ReportStatus">ReportStatus</link>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TDaemon.OnExecute">
<short>Daemon execute event</short>
<descr>
<p>
<var>OnExecute</var> is executed once after the daemon was started.
If assigned, it should perform whatever operation the daemon is designed.
</p>
<p>
If the daemon's action is event based, then no <var>OnExecute</var> handler
is needed, and the events will control the daemon's execution: the daemon
thread will then go in a loop, passing control messages to the daemon.
</p>
<p>
If an <var>OnExecute</var> event handler is present, the checking for
control messages must be done by the implementation of the
<var>OnExecute</var> handler.
</p>
</descr>
<seealso>
<link id="TDaemon.OnStart"/>
<link id="TDaemon.OnStop"/>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TDaemon.BeforeInstall">
<short>Called before the daemon will be installed</short>
<descr>
<var>BeforeInstall</var> is called before the daemon is installed. It can be
done to specify extra dependencies, or change the daemon description etc.
</descr>
<seealso>
<link id="TDaemon.AfterInstall">AfterInstall</link>
<link id="TDaemon.BeforeUnInstall">BeforeUnInstall</link>
<link id="TDaemon.AfterUnInstall">AfterUnInstall</link>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TDaemon.AfterInstall">
<short>Called after the daemon was installed</short>
<descr>
<var>AfterInstall</var> is called after the daemon was successfully installed.
</descr>
<seealso>
<link id="TDaemon.BeforeInstall">BeforeInstall</link>
<link id="TDaemon.BeforeUnInstall">BeforeUnInstall</link>
<link id="TDaemon.AfterUnInstall">AfterUnInstall</link>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TDaemon.BeforeUnInstall">
<short>Called before the daemon is uninstalled</short>
<descr>
<var>BeforeUnInstall</var> is called before the daemon is uninstalled.
</descr>
<seealso>
<link id="TDaemon.BeforeInstall">BeforeInstall</link>
<link id="TDaemon.AfterInstall">AfterInstall</link>
<link id="TDaemon.AfterUnInstall">AfterUnInstall</link>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TDaemon.AfterUnInstall">
<short>Called after the daemon is uninstalled</short>
<descr>
<var>AfterUnInstall</var> is called after the daemon is successfully uninstalled.
</descr>
<seealso>
<link id="TDaemon.BeforeInstall">BeforeInstall</link>
<link id="TDaemon.AfterInstall">AfterInstall</link>
<link id="TDaemon.BeforeUnInstall">BeforeUnInstall</link>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TDaemon.OnControlCode">
<short>Called when a control code is received for the daemon</short>
<descr>
<var>OnControlCode</var> is called when the daemon receives a control code.
If the daemon has not handled the control code, it should set the
<var>Handled</var> parameter to <var>False</var>. By default it is set to
<var>True</var>.
</descr>
<seealso>
<link id="daemonapp.architecture">Architecture</link>
</seealso>
</element>
<element name="TDaemon.OnControlCodeEvent">
<short/>
<descr/>
<seealso/>
</element>
<!-- constructor Visibility: public -->
<element name="TDaemonController.Create">
<short>Create a new instance of the <var>TDaemonController</var> class</short>
<descr>
<var>Create</var> creates a new instance of the <var>TDaemonController</var>
class. It should never be necessary to create a new instance manually,
because the controllers are created by the global <link id="TDaemonApplication"/>
instance, and <var>AOwner</var> will be set to the global <link
id="TDaemonApplication"/> instance.
</descr>
<seealso>
<link id="TDaemonApplication"/>
<link id="TDaemonController.Destroy">Destroy</link>
</seealso>
</element>
<!-- argument Visibility: default -->
<element name="TDaemonController.Create.AOwner">
<short>Owner of the controller.</short>
</element>
<!-- destructor Visibility: public -->
<element name="TDaemonController.Destroy">
<short>Free a <var>TDaemonController</var> instance.</short>
<descr>
<var>Destroy</var> deallocates some resources allocated when the instance
was created.
</descr>
<seealso>
<link id="TDaemonController.Create">Create</link>
</seealso>
</element>
<!-- procedure Visibility: public -->
<element name="TDaemonController.StartService">
<short>Start the service</short>
<descr>
<var>StartService</var> starts the service controlled by this instance.
</descr>
<errors>
None.
</errors>
<seealso>
<link id="TDaemonController.Main"/>
</seealso>
</element>
<!-- procedure Visibility: public -->
<element name="TDaemonController.Main">
<short>Daemon main entry point</short>
<descr>
<p>
<var>Main</var> is the service's main entry point, called when the system
wants to start the service. The global application will call this function
whenever required, with the appropriate arguments.
</p>
<p>
The standard implementation starts the daemon thread, and waits for it to
stop. All other daemon action - such as responding to control code events -
is handled by the thread.
</p>
</descr>
<errors>
If the daemon thread cannot be created, an exception is raised.
</errors>
<seealso>
<link id="TDaemonThread"/>
</seealso>
</element>
<!-- argument Visibility: default -->
<element name="TDaemonController.Main.Argc">
<short>Command-line arguments passed by the OS. The first is normally the
service name</short>
</element>
<!-- argument Visibility: default -->
<element name="TDaemonController.Main.Args">
<short>Arguments for the service.</short>
</element>
<!-- procedure Visibility: public -->
<element name="TDaemonController.Controller">
<short>Controller</short>
<descr>
<p>
<var>Controller</var> is responsible for sending the control code to the
daemon thread so it can be processed.
</p>
<p>
This routine is currently only used on windows, as there is no service
manager on Linux. Later on this may be changed to respond to signals on
Linux as well.
</p>
</descr>
<seealso>
<link id="TDaemon.OnControlCode"/>
</seealso>
</element>
<!-- argument Visibility: default -->
<element name="TDaemonController.Controller.ControlCode">
<short>Control code sent by the system</short>
</element>
<!-- argument Visibility: default -->
<element name="TDaemonController.Controller.EventType">
<short>Event type sent by the system</short>
</element>
<!-- argument Visibility: default -->
<element name="TDaemonController.Controller.EventData">
<short>Additional event data sent by the system</short>
</element>
<!-- function Visibility: public -->
<element name="TDaemonController.ReportStatus">
<short>Report the status to the operating system.</short>
<descr>
<var>ReportStatus</var> reports the status of the daemon to the operating
system. On windows, this sends the current service status to the service
manager. On other operating systems, this sends a message to the system
log.
</descr>
<errors>
If an error occurs, an error message is sent to the system log.
</errors>
<seealso>
<link id="TCustomDaemon.ReportStatus"/>
<link id="TDaemonController.LastStatus"/>
</seealso>
</element>
<!-- function result Visibility: default -->
<element name="TDaemonController.ReportStatus.Result">
<short><var>True</var> if the status was reported successfully</short>
</element>
<!-- property Visibility: public -->
<element name="TDaemonController.Daemon">
<short>Daemon instance this controller controls.</short>
<descr>
<var>Daemon</var> is the daemon instance that is controller by this
instance of the <var>TDaemonController</var> class.
</descr>
</element>
<!-- property Visibility: public -->
<element name="TDaemonController.Params">
<short>Parameters passed to the daemon</short>
<descr>
<var>Params</var> contains the parameters passed to the daemon application
by the operating system, comparable to the application's command-line
parameters. The property is set by the <link
id="TDaemonController.Main">Main</link> method.
</descr>
</element>
<!-- property Visibility: public -->
<element name="TDaemonController.LastStatus">
<short>Last reported status</short>
<descr>
<var>LastStatus</var> is the last status reported to the operating system.
</descr>
<seealso>
<link id="TDaemonController.ReportStatus">ReportStatus</link>
</seealso>
</element>
<!-- property Visibility: public -->
<element name="TDaemonController.CheckPoint">
<short>Send checkpoint signal to the operating system</short>
<descr>
<var>CheckPoint</var> can be used to send a checkpoint signal during lengthy
operations, to signal that a lengthy operation is in progress. This should
be used mainly on windows, to signal the service manager that the service is
alive.
</descr>
<seealso>
<link id="TDaemonController.ReportStatus">ReportStatus</link>
</seealso>
</element>
<!-- "class of" type Visibility: default -->
<element name="TDaemonClass">
<short>Class type of <var>TDaemon</var></short>
</element>
<!-- enumeration type Visibility: default -->
<element name="TServiceType">
<short>Type of service (Windows only)</short>
<descr>
The type of service. This type is used on windows only,
to signal the operating system what kind of service is
being installed or run.
</descr>
<seealso>
</seealso>
</element>
<!-- enumeration value Visibility: default -->
<element name="TServiceType.stWin32">
<short>Regular win32 service</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TServiceType.stDevice">
<short>Device driver</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TServiceType.stFileSystem">
<short>File system driver</short>
</element>
<!-- enumeration type Visibility: default -->
<element name="TErrorSeverity">
<short>Severity of a startup error (Windows only)</short>
<descr>
<var>TErrorSeverity</var> determines what action windows takes
when the daemon fails to start. It is used on windows only, and is ignored
on other platforms.
</descr>
</element>
<!-- enumeration value Visibility: default -->
<element name="TErrorSeverity.esIgnore">
<short>Ignore startup errors</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TErrorSeverity.esNormal">
<short>Error is logged, but startup continues</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TErrorSeverity.esSevere">
<short>Error is logged, and startup is continued if last known good
configuration is active, or system is restarted using last known good
configuration</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TErrorSeverity.esCritical">
<short>Error is logged, and startup is stopped if last known good
configuration is active, or system is restarted using last known good
configuration</short>
</element>
<!-- enumeration type Visibility: default -->
<element name="TStartType">
<short>When should the daemon be started (windows only)</short>
<descr>
<var>TStartType</var> can be used to define when the service must be started
on windows. This type is not used on other platforms.
</descr>
<seealso>
</seealso>
</element>
<!-- enumeration value Visibility: default -->
<element name="TStartType.stBoot">
<short>During system boot</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TStartType.stSystem">
<short>During load of device drivers</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TStartType.stAuto">
<short>Started automatically by service manager during system startup</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TStartType.stManual">
<short>Started manually by the user or other processes.</short>
</element>
<!-- enumeration value Visibility: default -->
<element name="TStartType.stDisabled">
<short>Service is not started, it is disabled</short>
</element>
<!--
********************************************************************
#fcl.daemonapp.TDependency
********************************************************************
-->
<!-- object Visibility: default -->
<element name="TDependency">
<short>Container to define dependencies on other services.</short>
<descr>
<var>TDependency</var> is a collection item used to specify dependencies on
other daemons (services) in windows. It is used only on windows and when
installing the daemon: changing the dependencies of a running daemon has no
effect.
</descr>
<seealso>
<link id="TDependencies"/>
<link id="TDaemonDef"/>
</seealso>
</element>
<!-- procedure Visibility: public -->
<element name="TDependency.Assign" link="#rtl.classes.tpersistent.Assign">
<short>Assign <var>TDependency</var> instance to another</short>
<descr>
<var>Assign</var> is overridden by <var>TDependency</var> to copy all
properties from one instance to another.
</descr>
</element>
<!-- argument Visibility: default -->
<element name="TDependency.Assign.Source">
<short>Source instance to copy properties from</short>
</element>
<!-- property Visibility: published -->
<element name="TDependency.Name">
<short>Name of the service</short>
<descr>
<var>Name</var> is the name of a service or service group that the current daemon depends on.
</descr>
<seealso>
<link id="TDependency.IsGroup"/>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TDependency.IsGroup">
<short>Name refers to a service group</short>
<descr>
<var>IsGroup</var> can be set to <var>True</var> to indicate that
<var>Name</var> refers to the name of a service group.
</descr>
<seealso>
<link id="TDependency.Name"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.daemonapp.TDependencies
********************************************************************
-->
<!-- object Visibility: default -->
<element name="TDependencies">
<short>Dependencies collection for a daemon</short>
<descr>
<var>TDependencies</var> is just a descendent of <var>TCollection</var>
which contains a series of dependencies on other services. It overrides the
default property of <var>TCollection</var> to return <link
id="TDependency"/> instances.
</descr>
<seealso>
<link id="TDependency"/>
</seealso>
</element>
<!-- constructor Visibility: public -->
<element name="TDependencies.Create">
<short>Create a new instance of a <var>TDependencies</var> collection.</short>
<descr>
<var>Create</var> Create a new instance of a <var>TDependencies</var> collection.
</descr>
</element>
<!-- argument Visibility: default -->
<element name="TDependencies.Create.AOwner">
<short>Owner of the collection - normally a <var>TDaemonDef</var> instance.</short>
</element>
<!-- property Visibility: public -->
<element name="TDependencies.Items">
<short>Default property override</short>
<descr>
<var>Items</var> overrides the default property of <var>TCollection</var> so
the items are of type <link id="TDependency"/>.
</descr>
<seealso>
<link id="TDependency"/>
</seealso>
</element>
<!-- argument Visibility: default -->
<element name="TDependencies.Items.Index">
<short>Zero based index of the dependency</short>
</element>
<element name="TWinControlCode">
<short/>
<descr/>
<seealso/>
</element>
<element name="TWinControlCode.wccNetBindChange">
<short/>
</element>
<element name="TWinControlCode.wccParamChange">
<short/>
</element>
<element name="TWinControlCode.wccPreShutdown">
<short/>
</element>
<element name="TWinControlCode.wccShutdown">
<short/>
</element>
<element name="TWinControlCode.wccHardwareProfileChange">
<short/>
</element>
<element name="TWinControlCode.wccPowerEvent">
<short/>
</element>
<element name="TWinControlCode.wccSessionChange">
<short/>
</element>
<element name="TWinControlCode.wccTimeChange">
<short/>
</element>
<element name="TWinControlCode.wccTriggerEvent">
<short/>
</element>
<element name="TWinControlCode.wccUserModeReboot">
<short/>
</element>
<element name="TWinControlCodes">
<short/>
<descr/>
<seealso/>
</element>
<!--
********************************************************************
#fcl.daemonapp.TWinBindings
********************************************************************
-->
<!-- object Visibility: default -->
<element name="TWinBindings">
<short>Windows Daemon bindings (windows only)</short>
<descr>
<var>TWinBindings</var> contains windows-specific properties for the daemon
definition (in <link id="TDaemonDef.WinBindings"/>). If the daemon should not run
on Windows, then the properties can be ignored.
</descr>
<seealso>
<link id="TDaemonDef"/>
<link id="TDaemonDef.WinBindings"/>
</seealso>
</element>
<!-- constructor Visibility: public -->
<element name="TWinBindings.Create">
<short>Create a new <var>TWinBindings</var> instance</short>
<descr>
<var>Create</var> initializes various properties such as the dependencies.
</descr>
<seealso>
<link id="TDaemonDef"/>
<link id="TDaemonDef.WinBindings"/>
<link id="TWinBindings.Dependencies"/>
</seealso>
</element>
<!-- destructor Visibility: public -->
<element name="TWinBindings.Destroy">
<short>Remove a <var>TWinBindings</var> instance from memory</short>
<descr>
<var>Destroy</var> cleans up the <var>TWinBindings</var> instance.
</descr>
<seealso>
<link id="TWinBindings.Dependencies"/>
<link id="TWinBindings.Create"/>
</seealso>
</element>
<!-- procedure Visibility: public -->
<element name="TWinBindings.Assign">
<short>Copies all properties</short>
<descr>
<var>Assign</var> is overridden by <var>TWinBindings</var> so all properties
are copied from <var>Source</var> to the <var>TWinBindings</var> instance.
</descr>
</element>
<!-- argument Visibility: default -->
<element name="TWinBindings.Assign.Source">
<short><var>TWinBindings</var> instance to copy properties from</short>
</element>
<!-- property Visibility: public -->
<element name="TWinBindings.ErrCode">
<short>Service specific error code</short>
<descr>
<var>ErrCode</var> contains a service specific error code that is reported with
<link id="TCustomDaemon.ReportStatus"/> to the windows service manager. If it is zero,
then the contents of <link id="TWinBindings.Win32ErrCode">Win32ErrCode</link>
are reported. If it is nonzero, then the windows-errorcode is set to
<var>ERROR_SERVICE_SPECIFIC_ERROR</var>.
</descr>
<seealso>
<link id="TWinBindings.Win32ErrCode"/>
</seealso>
</element>
<!-- property Visibility: public -->
<element name="TWinBindings.Win32ErrCode">
<short>General windows error code</short>
<descr>
<var>Win32ErrCode</var> is a general windows service error code that can be
reported with <link id="TCustomDaemon.ReportStatus"/> to the windows service manager.
It is sent if <link id="TWinBindings.ErrCode">ErrCode</link> is zero.
</descr>
<seealso>
<link id="TWinBindings.ErrCode">ErrCode</link>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TWinBindings.Dependencies">
<short>Service dependencies</short>
<descr>
<p>
<var>Dependencies</var> contains the list of other services (or service
groups) that this service depends on. Windows will first attempt to
start these services prior to starting this service. If they cannot be
started, then the service will not be started either.
</p>
<p>
This property is only used during installation of the service.
</p>
</descr>
</element>
<!-- property Visibility: published -->
<element name="TWinBindings.GroupName">
<short>Service group name</short>
<descr>
<p>
<var>GroupName</var> specifies the name of a service group that the service
belongs to. If it is empty, then the service does not belong to any group.
</p>
<p>
This property is only used during installation of the service.
</p>
</descr>
<seealso>
<link id="TDependency.IsGroup"/>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TWinBindings.Password">
<short>Password for service startup</short>
<descr>
<p>
<var>Password</var> contains the service password: if the service is started
with credentials other than one of the system users, then the password for
the user must be entered here.
</p>
<p>
This property is only used during installation of the service.
</p>
</descr>
<seealso>
<link id="TWinBindings.UserName">UserName</link>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TWinBindings.UserName">
<short>Username to run service as</short>
<descr>
<p>
<var>Username</var> specifies the name of a user whose credentials should
be used to run the service. If it is left empty, the service is run as the
system user. The password can be set in the <link id="TWinBindings.Password">Password</link>
property.
</p>
<p>
This property is only used during installation of the service.
</p>
</descr>
<seealso>
<link id="TWinBindings.Password">Password</link>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TWinBindings.StartType">
<short>Service startup type.</short>
<descr>
<p>
<var>StartType</var> specifies when the service should be started during system
startup.
</p>
<p>
This property is only used during installation of the service.
</p>
</descr>
<seealso>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TWinBindings.WaitHint">
<short>Timeout wait hint</short>
<descr>
<p>
<var>WaitHint</var> specifies the estimated time for a start/stop/pause or
continue operation (in milliseconds). Reportstatus should be called prior
to this time to report the next status.
</p>
</descr>
<seealso>
<link id="TCustomDaemon.ReportStatus"/>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TWinBindings.IDTag">
<short>Location in the service group</short>
<descr>
<p>
<var>IDTag</var> contains the location of the service in the service group
after installation of the service. It should not be set, it is reported by
the service manager.
</p>
<p>
This property is only used during installation of the service.
</p>
</descr>
</element>
<!-- property Visibility: published -->
<element name="TWinBindings.ServiceType">
<short>Type of service</short>
<descr>
<p>
<var>ServiceType</var> specifies what kind of service is being installed.
</p>
<p>
This property is only used during installation of the service.
</p>
</descr>
<seealso>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TWinBindings.ErrorSeverity">
<short>Error severity in case of startup failure</short>
<descr>
<p>
<var>ErrorSeverity</var> can be used at installation time to tell the windows
service manager how to behave when the service fails to start during system startup.
</p>
<p>
This property is only used during installation of the service.
</p>
</descr>
</element>
<element name="TWinBindings.AcceptedCodes">
<short/>
<descr/>
<seealso/>
</element>
<!-- constructor Visibility: public -->
<element name="TDaemonDef.Create">
<short>Create a new <var>TDaemonDef</var> instance</short>
<descr>
<var>Create</var> initializes a new <var>TDaemonDef</var> instance. It
should not be necessary to instantiate a definition manually, it is handled
by the collection.
</descr>
<seealso>
<link id="TDaemonDefs"/>
</seealso>
</element>
<!-- argument Visibility: default -->
<element name="TDaemonDef.Create.ACollection">
<short>Collection the item belongs in.</short>
</element>
<!-- destructor Visibility: public -->
<element name="TDaemonDef.Destroy">
<short>Free a <var>TDaemonDef</var> from memory</short>
<descr>
<var>Destroy</var> removes the <var>TDaemonDef</var> from memory.
</descr>
</element>
<!-- property Visibility: public -->
<element name="TDaemonDef.DaemonClass">
<short><var>TDaemon</var> class to use for this daemon</short>
<descr>
<var>DaemonClass</var> is the <var>TDaemon</var> class that is used
when this service is requested. It is looked up in the application's
global daemon mapper by it's name in <link id="TDaemonDef.DaemonClassName">DaemonClassName</link>.
</descr>
<seealso>
<link id="TDaemonDef.DaemonClassName">DaemonClassName</link>
<link id="TDaemonMapper"/>
</seealso>
</element>
<!-- property Visibility: public -->
<element name="TDaemonDef.Instance">
<short>Instance of the daemon class</short>
<descr>
<var>Instance</var> points to the <link id="TDaemon"/> instance that is used
when the service is in operation at runtime.
</descr>
<seealso>
<link id="TDaemonDef.DaemonClass"/>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TDaemonDef.DaemonClassName">
<short>Name of the <var>TDaemon</var> class to use for this daemon</short>
<descr>
<var>DaemonClassName</var> is the name of the <var>TCustomDaemon</var> class that
will be used whenever the service is needed. The name is used to look up the
class pointer registered in the daemon mapper, when <link
id="TCustomDaemonApplication"/> creates an instance of
the daemon.
</descr>
<seealso>
<link id="TDaemonDef.Instance"/>
<link id="TDaemonDef.DaemonClass"/>
<link id="RegisterDaemonClass"/>
<link id="TCustomDaemon"/>
<link id="TCustomDaemonApplication"/>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TDaemonDef.Name">
<short>Name of the daemon (service)</short>
<descr>
<var>Name</var> is the internal name of the daemon as it is known to the operating
system.
</descr>
<seealso>
<link id="TDaemonDef.DisplayName"/>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TDaemonDef.DisplayName">
<short>Displayed name of the daemon (service)</short>
<descr>
<var>DisplayName</var> is the displayed name of the daemon as it is known to the
operating system.
</descr>
<seealso>
<link id="TDaemonDef.Name"/>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TDaemonDef.Options">
<short>Service options</short>
<descr>
<p>
<var>Options</var> tells the operating system which operations can be
performed on the daemon while it is running.
</p>
<p>
This option is only used during the installation of the daemon.
</p>
</descr>
</element>
<!-- property Visibility: published -->
<element name="TDaemonDef.Enabled">
<short>Is the daemon enabled or not</short>
<descr>
<var>Enabled</var> specifies whether a daemon should be installed, run or
uninstalled. Disabled daemons are not installed, run or uninstalled.
</descr>
</element>
<!-- property Visibility: published -->
<element name="TDaemonDef.WinBindings">
<short>Windows-specific bindings (windows only)</short>
<descr>
<var>WinBindings</var> is used to group together the windows-specific
properties of the daemon. This property is totally ignored on other
platforms.
</descr>
<seealso>
<link id="TWinBindings"/>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TDaemonDef.OnCreateInstance">
<short>Event called when a daemon in instantiated</short>
<descr>
<var>OnCreateInstance</var> is called whenever an instance of the daemon is
created. This can be used for instance when a single <var>TDaemon</var>
class is used to run several services, to correctly initialize the TDaemon.
</descr>
<seealso>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TDaemonDef.LogStatusReport">
<short>Log the status report to the system log</short>
<descr>
<var>LogStatusReport</var> can be set to <var>True</var> to send the status
reports also to the system log. This can be used to track the progress of
the daemon.
</descr>
<seealso>
<link id="TCustomDaemon.ReportStatus"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.daemonapp.TDaemonDefs
********************************************************************
-->
<!-- object Visibility: default -->
<element name="TDaemonDefs">
<short>Collection of daemon definitions.</short>
<descr>
<p>
<var>TDaemonDefs</var> is the class of the global list of daemon
definitions. It contains an item for each daemon in the application.
</p>
<p>
Normally it is not necessary to create an instance of <var>TDaemonDefs</var>
manually. The global <link id="TCustomDaemonMapper"/> instance will create
a collection and maintain it.
</p>
</descr>
<seealso>
<link id="TCustomDaemonMapper"/>
<link id="TDaemonDef"/>
</seealso>
</element>
<!-- constructor Visibility: public -->
<element name="TDaemonDefs.Create">
<short>Create a new instance of a <var>TDaemonDefs</var> collection.</short>
<descr>
<p>
<var>Create</var> creates a new instance of the <var>TDaemonDefs</var>
collection. It keeps the <var>AOwner</var> parameter for future reference
and calls the inherited constructor.
</p>
<p>
Normally it is not necessary to create an instance of <var>TDaemonDefs</var>
manually. The global <link id="TCustomDaemonMapper"/> instance will create
a collection and maintain it.
</p>
</descr>
<seealso>
<link id="TDaemonDef"/>
</seealso>
</element>
<!-- argument Visibility: default -->
<element name="TDaemonDefs.Create.AOwner">
<short>Collection owner</short>
</element>
<!-- argument Visibility: default -->
<element name="TDaemonDefs.Create.AClass">
<short>Item class.</short>
</element>
<!-- function Visibility: public -->
<element name="TDaemonDefs.IndexOfDaemonDef">
<short>Return index of daemon definition</short>
<descr>
<var>IndexOfDaemonDef</var> searches the collection for a
<link id="TDaemonDef"/> instance with a name equal to <var>DaemonName</var>,
and returns it's index. It returns -1 if no definition was found with this
name. The search is case insensitive.
</descr>
<seealso>
<link id="TDaemonDefs.FindDaemonDef"/>
<link id="TDaemonDefs.DaemonDefByName"/>
</seealso>
</element>
<!-- function result Visibility: default -->
<element name="TDaemonDefs.IndexOfDaemonDef.Result">
<short>Index of found definition, or -1</short>
</element>
<!-- argument Visibility: default -->
<element name="TDaemonDefs.IndexOfDaemonDef.DaemonName">
<short>Daemon Name to search for.</short>
</element>
<!-- function Visibility: public -->
<element name="TDaemonDefs.FindDaemonDef">
<short>Find and return instance of daemon definition with given name.</short>
<descr>
<var>FindDaemonDef</var> searches the list of daemon definitions and returns
the <link id="TDaemonDef"/> instance whose name matches
<var>DaemonName</var>. If no definition is found, <var>Nil</var> is
returned.
</descr>
<seealso>
<link id="TDaemonDefs.IndexOfDaemonDef"/>
<link id="TDaemonDefs.DaemonDefByName"/>
</seealso>
</element>
<!-- function result Visibility: default -->
<element name="TDaemonDefs.FindDaemonDef.Result">
<short>Matching <var>TDaemonDef</var> instance or <var>Nil</var> if none was found.</short>
</element>
<!-- argument Visibility: default -->
<element name="TDaemonDefs.FindDaemonDef.DaemonName">
<short>Daemon name to search for.</short>
</element>
<!-- function Visibility: public -->
<element name="TDaemonDefs.DaemonDefByName">
<short>Find and return instance of daemon definition with given name.</short>
<descr>
<p>
<var>FindDaemonDef</var> searches the list of daemon definitions and returns
the <link id="TDaemonDef"/> instance whose name matches
<var>DaemonName</var>. If no definition is found, an <link id="EDaemon"/>
exception is raised.
</p>
<p>
The <link id="TDaemonDefs.FindDaemonDef">FindDaemonDef</link>
call does not raise an error, but returns <var>Nil</var> instead.
</p>
</descr>
<errors>
If no definition is found, an <link id="EDaemon"/> exception is raised.
</errors>
<seealso>
<link id="TDaemonDefs.IndexOfDaemonDef"/>
<link id="TDaemonDefs.FindDaemonDef"/>
</seealso>
</element>
<!-- function result Visibility: default -->
<element name="TDaemonDefs.DaemonDefByName.Result">
<short>Matching <var>TDaemonDef</var> instance</short>
</element>
<!-- argument Visibility: default -->
<element name="TDaemonDefs.DaemonDefByName.DaemonName">
<short>Daemon name to search for.</short>
</element>
<!-- property Visibility: public -->
<element name="TDaemonDefs.Daemons">
<short>Indexed access to <var>TDaemonDef</var> instances</short>
<descr>
<var>Daemons</var> is the default property of <var>TDaemonDefs</var>, it
gives access to the <var>TDaemonDef</var> instances in the collection.
</descr>
<seealso>
<link id="TDaemonDef"/>
</seealso>
</element>
<!-- argument Visibility: default -->
<element name="TDaemonDefs.Daemons.Index">
<short>Zero-based index.</short>
</element>
<!--
********************************************************************
#fcl.daemonapp.TCustomDaemonMapper
********************************************************************
-->
<!-- object Visibility: default -->
<element name="TCustomDaemonMapper">
<short>Daemon mapper</short>
<descr>
<p>
The <var>TCustomDaemonMapper</var> class is responsible for mapping
a daemon definition to an actual <var>TDaemon</var> instance. It maintains
a <link id="TDaemonDefs"/> collection with daemon definitions, which can
be used to map the definition of a daemon to a <var>TDaemon</var> descendent
class.
</p>
<p>
An IDE such as Lazarus can design a <var>TCustomDaemonMapper</var> instance
visually, to help establish the relationship between various <link
id="TDaemonDef"/> definitions and the actual <link id="TDaemon"/> instances
that will be used to run the daemons.
</p>
<p>
The <var>TCustomDaemonMapper</var> class has no support for streaming. The
<link id="TDaemonMapper"/> class has support for streaming (and hence visual
designing).
</p>
</descr>
<seealso>
<link id="TDaemon"/>
<link id="TDaemonDef"/>
<link id="TDaemonDefs"/>
<link id="TDaemonMapper"/>
</seealso>
</element>
<!-- constructor Visibility: public -->
<element name="TCustomDaemonMapper.Create">
<short>Create a new instance of <var>TCustomDaemonMapper</var></short>
<descr>
<var>Create</var> creates a new instance of a
<var>TCustomDaemonMapper</var>. It creates the <link id="TDaemonDefs"/> collection
and then calls the inherited constructor. It should never be necessary to
create a daemon mapper manually, the application will create a global
<var>TCustomDaemonMapper</var> instance.
</descr>
<seealso>
<link id="TDaemonDefs"/>
<link id="TCustomDaemonApplication"/>
<link id="TCustomDaemonMapper.Destroy"/>
</seealso>
</element>
<!-- argument Visibility: default -->
<element name="TCustomDaemonMapper.Create.AOwner">
<short>Instance owner</short>
</element>
<!-- destructor Visibility: public -->
<element name="TCustomDaemonMapper.Destroy">
<short>Clean up and destroy a <var>TCustomDaemonMapper</var> instance.</short>
<descr>
<var>Destroy</var> frees the
<link id="TCustomDaemonMapper.DaemonDefs">DaemonDefs</link> collection and
calls the inherited destructor.
</descr>
<seealso>
<link id="TDaemonDefs"/>
<link id="TCustomDaemonMapper.Create"/>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TCustomDaemonMapper.DaemonDefs">
<short>Collection of daemons</short>
<descr>
<var>DaemonDefs</var> is the application's global collection of daemon
definitions. This collection will be used to decide at runtime which
<var>TDaemon</var> class must be created to run or install a daemon.
</descr>
<seealso>
<link id="TCustomDaemonApplication"/>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TCustomDaemonMapper.OnCreate">
<short>Event called when the daemon mapper is created</short>
<descr>
<var>OnCreate</var> is an event that is called when the
<var>TCustomDaemonMapper</var> instance is created.
It can for instance be used to dynamically create daemon definitions at
runtime.
</descr>
<seealso>
<link id="TCustomDaemonMapper.OnDestroy">OnDestroy</link>
<link id="TCustomDaemonMapper.OnUnInstall">OnUnInstall</link>
<link id="TCustomDaemonMapper.OnCreate">OnCreate</link>
<link id="TCustomDaemonMapper.OnDestroy">OnDestroy</link>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TCustomDaemonMapper.OnDestroy">
<short>Event called when the daemon mapper is freed.</short>
<descr>
<var>OnDestroy</var> is called when the global daemon mapper instance is
destroyed. it can be used to release up any resources that were allocated
when the instance was created, in the
<link id="TCustomDaemonMapper.OnCreate">OnCreate</link> event.
</descr>
<seealso>
<link id="TCustomDaemonMapper.OnCreate">OnCreate</link>
<link id="TCustomDaemonMapper.OnInstall">OnInstall</link>
<link id="TCustomDaemonMapper.OnUnInstall">OnUnInstall</link>
<link id="TCustomDaemonMapper.OnCreate">OnCreate</link>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TCustomDaemonMapper.OnRun">
<short>Event called when the daemons are executed.</short>
<descr>
<var>OnRun</var> is the event called when the daemon application is executed
to run the daemons (with command-line parameter '-r'). it is called exactly once.
</descr>
<seealso>
<link id="TCustomDaemonMapper.OnInstall">OnInstall</link>
<link id="TCustomDaemonMapper.OnUnInstall">OnUnInstall</link>
<link id="TCustomDaemonMapper.OnCreate">OnCreate</link>
<link id="TCustomDaemonMapper.OnDestroy">OnDestroy</link>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TCustomDaemonMapper.OnInstall">
<short>Event called when the daemons are installed</short>
<descr>
<var>OnInstall</var> is the event called when the daemon application is executed
to install the daemons (with command-line parameter '-i' or '/install').
it is called exactly once.
</descr>
<seealso>
<link id="TCustomDaemonMapper.OnRun">OnRun</link>
<link id="TCustomDaemonMapper.OnUnInstall">OnUnInstall</link>
<link id="TCustomDaemonMapper.OnCreate">OnCreate</link>
<link id="TCustomDaemonMapper.OnDestroy">OnDestroy</link>
</seealso>
</element>
<!-- property Visibility: published -->
<element name="TCustomDaemonMapper.OnUnInstall">
<short>Event called when the daemons are uninstalled</short>
<descr>
<var>OnUnInstall</var> is the event called when the daemon application is
executed to uninstall the daemons (with command-line parameter '-u' or '/uninstall').
it is called exactly once.
</descr>
<seealso>
<link id="TCustomDaemonMapper.OnRun">OnRun</link>
<link id="TCustomDaemonMapper.OnInstall">OnInstall</link>
<link id="TCustomDaemonMapper.OnCreate">OnCreate</link>
<link id="TCustomDaemonMapper.OnDestroy">OnDestroy</link>
</seealso>
</element>
<!--
********************************************************************
#fcl.daemonapp.TDaemonMapper
********************************************************************
-->
<!-- object Visibility: default -->
<element name="TDaemonMapper">
<short>Daemon mapper for designing in IDE</short>
<descr>
<p>
<var>TDaemonMapper</var> is a direct descendent of <link
id="TCustomDaemonMapper"/>, but introduces no new functionality. It's sole
purpose is to make it possible for an IDE to stream the
<var>TDaemonMapper</var> instance.
</p>
<p>
For this purpose, it overrides the <var>Create</var> constructor and
tries to find a resource with the same name as the class name, and tries
to stream the instance from this resource.
</p>
<p>
If the instance should not be streamed, the
<link id="TDaemonMapper.CreateNew">CreateNew</link> constructor can be used
instead.
</p>
</descr>
<seealso>
<link id="TDaemonMapper.CreateNew">CreateNew</link>
<link id="TDaemonMapper.Create">Create</link>
</seealso>
</element>
<!-- constructor Visibility: default -->
<element name="TDaemonMapper.Create">
<short>Create a new <var>TDaemonMapper</var> instance and initializes it
from streamed resources.</short>
<descr>
<p>
<var>Create</var> initializes a new instance of <var>TDaemonMapper</var> and
attempts to read the component from resources compiled in the application.
</p>
<p>
If the instance should not be streamed, the
<link id="TDaemonMapper.CreateNew">CreateNew</link> constructor can be used
instead.
</p>
</descr>
<errors>
If no streaming system is found, or no resource exists for the class, an
exception is raised.
</errors>
<seealso>
<link id="TDaemonMapper.CreateNew">CreateNew</link>
</seealso>
</element>
<!-- argument Visibility: default -->
<element name="TDaemonMapper.Create.AOwner">
<short>Instance owner</short>
</element>
<!-- constructor Visibility: default -->
<element name="TDaemonMapper.CreateNew">
<short>Create a new <var>TDaemonMapper</var> instance without initialization</short>
<descr>
<var>CreateNew</var> initializes a new instance of <var>TDaemonMapper</var>.
In difference with the <var>Create</var> constructor, it does not attempt to
read the component from a stream.
</descr>
<seealso>
<link id="TDaemonMapper.Create">Create</link>
</seealso>
</element>
<!-- argument Visibility: default -->
<element name="TDaemonMapper.CreateNew.AOwner">
<short>Owner of the instance</short>
</element>
<!-- argument Visibility: default -->
<element name="TDaemonMapper.CreateNew.Dummy">
<short>Ignored.</short>
</element>
<!-- "class of" type Visibility: default -->
<element name="TCustomDaemonMapperClass">
<short>Class of <var>TCustomDaemonMapper</var></short>
<descr>
<var>TCustomDaemonMapperClass</var> is the class of <var>TCustomDaemonMapper</var>.
It is used in the <link id="RegisterDaemonMapper"/> call.
</descr>
<seealso>
<link id="RegisterDaemonMapper"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.daemonapp.TDaemonThread
********************************************************************
-->
<!-- object Visibility: default -->
<element name="TDaemonThread">
<short>Thread to run daemons in</short>
<descr>
<p>
<var>TDaemonThread</var> is the thread in which the daemons in the
application are run. Each daemon is run in it's own thread.
</p>
<p>
It should not be necessary to create these threads manually, the
<link id="TDaemonController"/> class will take care of this.
</p>
</descr>
<seealso>
<link id="TDaemonController"/>
<link id="TDaemon"/>
</seealso>
</element>
<!-- constructor Visibility: public -->
<element name="TDaemonThread.Create">
<short>Create a new thread</short>
<descr>
<var>Create</var> creates a new thread instance. It initializes the
<var>Daemon</var> property with the passed <var>ADaemon</var>. The thread is
created suspended.
</descr>
<seealso>
<link id="TDaemonThread.Daemon"/>
</seealso>
</element>
<!-- argument Visibility: default -->
<element name="TDaemonThread.Create.ADaemon">
<short>Daemon instance which is running in this thread</short>
</element>
<!-- procedure Visibility: public -->
<element name="TDaemonThread.Execute">
<short>Run the daemon</short>
<descr>
<var>Execute</var> starts executing the daemon and waits till the daemon
stops. It also listens for control codes for the daemon.
</descr>
<seealso>
<link id="TDaemon.Execute"/>
</seealso>
</element>
<!-- procedure Visibility: public -->
<element name="TDaemonThread.CheckControlMessage">
<short>Check if a control message has arrived</short>
<descr>
<var>CheckControlMessage</var> checks if a control message has arrived for
the daemon and executes the appropriate daemon message. If the parameter
<var>WaitForMessage</var> is <var>True</var>, then the routine waits for
the message to arrive. If it is <var>False</var> and no message is present,
it returns at once.
</descr>
<seealso>
</seealso>
</element>
<!-- argument Visibility: default -->
<element name="TDaemonThread.CheckControlMessage.WaitForMessage">
<short>If true, routine waits for message to arrive before returning.</short>
</element>
<!-- function Visibility: public -->
<element name="TDaemonThread.StopDaemon">
<short>Stops the daemon</short>
<descr>
<var>StopDaemon</var> attempts to stop the <var>Daemon</var> by calling
methods in the <var>TCustomDaemon</var> instance. StopDaemon also
terminates the thread. The return value is True if the Daemon was successfully
stopped in the method.
</descr>
<seealso>
<link id="TDaemonThread.Daemon"/>
<link id="TDaemonThread.PauseDaemon"/>
<link id="TDaemonThread.ShutDownDaemon"/>
<link id="TCustomDaemon"/>
<link id="#rtl.classes.TThread.Terminate">TThread.Terminate</link>
</seealso>
</element>
<!-- function result Visibility: default -->
<element name="TDaemonThread.StopDaemon.Result">
<short><var>True</var> if the daemon was stopped successfully.</short>
</element>
<!-- function Visibility: public -->
<element name="TDaemonThread.PauseDaemon">
<short>Pause the daemon</short>
<descr>
<p>
<var>PauseDaemon</var> attempts to pause the <var>Daemon</var> by calling
methods in the <link id="TCustomDaemon"/> instance, and calling <var>Suspend</var>
to suspend the thread. It returns <var>True</var> if the attempt was successful.
</p>
</descr>
<seealso>
<link id="TDaemonThread.StopDaemon"/>
<link id="TDaemonThread.ContinueDaemon"/>
<link id="TDaemonThread.ShutDownDaemon"/>
<link id="TCustomDaemon"/>
<link id="#rtl.classes.TThread.Suspend">TThread.Suspend</link>
</seealso>
</element>
<!-- function result Visibility: default -->
<element name="TDaemonThread.PauseDaemon.Result">
<short><var>True</var> if the daemon was successfully paused</short>
</element>
<!-- function Visibility: public -->
<element name="TDaemonThread.ContinueDaemon">
<short>Continue the daemon</short>
<descr>
<var>ContinueDaemon</var> attempts to restart the <var>Daemon</var>
by calling methods in the <link id="TCustomDaemon"/> instance. It returns
<var>True</var> if the attempt was successful.
</descr>
<seealso>
<link id="TDaemonThread.Daemon"/>
<link id="TDaemonThread.StopDaemon"/>
<link id="TDaemonThread.PauseDaemon"/>
<link id="TDaemonThread.ShutDownDaemon"/>
<link id="TCustomDaemon"/>
</seealso>
</element>
<!-- function result Visibility: default -->
<element name="TDaemonThread.ContinueDaemon.Result">
<short><var>True</var> if the daemon was successfully restarted</short>
</element>
<!-- function Visibility: public -->
<element name="TDaemonThread.ShutDownDaemon">
<short>Shut down daemon</short>
<descr>
<var>ShutDownDaemon</var> shuts down the <var>Daemon</var> for the thread.
This happens normally only when the system is shut down and the daemon didn't
respond to the stop request. The return valuie is the result from the method in the
<link id="TCustomDaemon"/> instance. The thread is terminated in this method.
</descr>
<seealso>
<link id="TDaemonThread.StopDaemon"/>
<link id="TDaemonThread.PauseDaemon"/>
<link id="TDaemonThread.ContinueDaemon"/>
<link id="TCustomDaemon"/>
<link id="#rtl.classes.TThread.Terminate">TThread.Terminate</link>
</seealso>
</element>
<!-- function result Visibility: default -->
<element name="TDaemonThread.ShutDownDaemon.Result">
<short>The result from the <var>Daemon</var> method</short>
</element>
<!-- function Visibility: public -->
<element name="TDaemonThread.InterrogateDaemon">
<short>Report the daemon status</short>
<descr>
<var>InterrogateDaemon</var> simply calls <link id="TCustomDaemon.ReportStatus"/>
for the daemon that is running in this thread. It always returns
<var>True</var>.
</descr>
<seealso>
<link id="TCustomDaemon.ReportStatus"/>
</seealso>
</element>
<!-- function result Visibility: default -->
<element name="TDaemonThread.InterrogateDaemon.Result">
<short>Always <var>True</var>.</short>
</element>
<!-- property Visibility: public -->
<element name="TDaemonThread.Daemon">
<short>Daemon instance</short>
<descr>
<var>Daemon</var> is the daemon instance which is running in this thread.
</descr>
<seealso>
<link id="TDaemon"/>
</seealso>
</element>
<!-- procedure type Visibility: default -->
<element name="TGuiLoopEvent">
<short>GUI loop event mechanism</short>
<descr>
<var>TGuiLoopEvent</var> is the main GUI loop event procedure prototype.
It is called by the application instance in case the daemon has a visual
part, which needs to handle visual events. It is run in the main application
thread.
</descr>
<seealso>
<link id="TCustomDaemonApplication.GUIMainLoop"/>
<link id="TCustomDaemonApplication.GUIHandle"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.daemonapp.TCustomDaemonApplication
********************************************************************
-->
<!-- object Visibility: default -->
<element name="TCustomDaemonApplication">
<short>Custom daemon application class</short>
<descr>
<p>
<var>TCustomDaemonApplication</var> is a <link
id="#fcl.custapp.TCustomApplication">TCustomApplication</link> descendent
which is the main application instance for a daemon. It handles the
command-line and decides what to do when the application is started,
depending on the command-line options given to the application, by calling
the various methods.
</p>
<p>
It creates the necessary <link id="TDaemon"/> instances by checking the
<link id="TCustomDaemonMapperClass"/> instance that contains the daemon
maps.
</p>
</descr>
<seealso>
<link id="#fcl.custapp.TCustomApplication">TCustomApplication</link>
<link id="TCustomDaemonMapperClass"/>
</seealso>
</element>
<element name="TCustomDaemonApplication.Create">
<short>Constructor for the class instance</short>
<descr/>
<seealso/>
</element>
<element name="TCustomDaemonApplication.Create.AOwner">
<short>Owner of the class instance</short>
</element>
<!-- procedure Visibility: public -->
<element name="TCustomDaemonApplication.ShowException">
<short>Show an exception</short>
<descr>
<var>ShowException</var> is overridden by
<var>TCustomDaemonApplication</var>, it sends the exception message to the
system log.
</descr>
<seealso>
</seealso>
</element>
<!-- argument Visibility: default -->
<element name="TCustomDaemonApplication.ShowException.E">
<short>Exception to show.</short>
</element>
<!-- function Visibility: public -->
<element name="TCustomDaemonApplication.CreateDaemon">
<short>Create daemon instance</short>
<descr>
<var>CreateDaemon</var> is called whenever a <link id="TCustomDaemon"/> instance
must be created from a <link id="TDaemonDef"/> daemon definition, passed in
<var>DaemonDef</var>. It initializes the <var>TCustomDaemon</var> instance,
and creates a controller instance of type <link id="TDaemonController"/> to
control the daemon. Finally, it assigns the created daemon to the <link
id="TDaemonDef.Instance"/> property.
</descr>
<errors>
In case of an error, an exception may be raised.
</errors>
<seealso>
<link id="TDaemonController"/>
<link id="TCustomDaemon"/>
<link id="TDaemonDef"/>
<link id="TDaemonDef.Instance"/>
</seealso>
</element>
<!-- function result Visibility: default -->
<element name="TCustomDaemonApplication.CreateDaemon.Result">
<short>New <var>TCustomDaemon</var> instance.</short>
</element>
<!-- argument Visibility: default -->
<element name="TCustomDaemonApplication.CreateDaemon.DaemonDef">
<short>Daemon definition containing information to create a daemon.</short>
</element>
<!-- procedure Visibility: public -->
<element name="TCustomDaemonApplication.StopDaemons">
<short>Stop all daemons</short>
<descr>
<var>StopDaemons</var> sends the <var>STOP</var> control code to all daemons,
or the <var>SHUTDOWN</var> control code in case <var>Force</var> is <var>True</var>.
</descr>
<seealso>
<link id="TDaemonController.Controller"/>
<link id="TCustomDaemonApplication.UnInstallDaemons"/>
<link id="TCustomDaemonApplication.RunDaemons"/>
</seealso>
</element>
<!-- argument Visibility: default -->
<element name="TCustomDaemonApplication.StopDaemons.Force">
<short>If <var>True</var>, send the <var>SHUTDOWN</var> control code</short>
</element>
<!-- procedure Visibility: public -->
<element name="TCustomDaemonApplication.InstallDaemons">
<short>Install all daemons.</short>
<descr>
<var>InstallDaemons</var> installs all known daemons, i.e. registers them
with the service manager on Windows. This method is called if the
application is run with the <var>-i</var> or <var>--install</var> or
<var>/install</var> command-line option.
</descr>
<seealso>
<link id="TCustomDaemonApplication.UnInstallDaemons"/>
<link id="TCustomDaemonApplication.RunDaemons"/>
<link id="TCustomDaemonApplication.StopDaemons"/>
</seealso>
</element>
<!-- procedure Visibility: public -->
<element name="TCustomDaemonApplication.RunDaemons">
<short>Run all daemons.</short>
<descr>
<var>RunDaemons</var> runs (starts) all known daemons.
This method is called if the application is run with the <var>-r</var> or
<var>--run</var> methods.
</descr>
<errors>
</errors>
<seealso>
<link id="TCustomDaemonApplication.UnInstallDaemons"/>
<link id="TCustomDaemonApplication.InstallDaemons"/>
<link id="TCustomDaemonApplication.StopDaemons"/>
</seealso>
</element>
<!-- procedure Visibility: public -->
<element name="TCustomDaemonApplication.UnInstallDaemons">
<short>Uninstall all daemons</short>
<descr>
<var>UnInstallDaemons</var> uninstalls all known daemons, i.e. deregisters them
with the service manager on Windows. This method is called if the
application is run with the <var>-u</var> or <var>--uninstall</var> or
<var>/uninstall</var> command-line option.
</descr>
<seealso>
<link id="TCustomDaemonApplication.RunDaemons"/>
<link id="TCustomDaemonApplication.InstallDaemons"/>
<link id="TCustomDaemonApplication.StopDaemons"/>
</seealso>
</element>
<!-- procedure Visibility: public -->
<element name="TCustomDaemonApplication.CreateForm">
<short>Create a component</short>
<descr>
<var>CreateForm</var> creates an instance of <var>InstanceClass</var> and
fills <var>Reference</var> with the class instance pointer. It's main
purpose is to give an IDE a means of assuring that forms or datamodules
are created on application startup: the IDE will generate calls for all
modules that are auto-created.
</descr>
<errors>
An exception may arise if the instance wants to stream itself from
resources, but no resources are found.
</errors>
<seealso>
<link id="TCustomDaemonApplication.CreateDaemon"/>
</seealso>
</element>
<!-- argument Visibility: default -->
<element name="TCustomDaemonApplication.CreateForm.InstanceClass">
<short>Class pointer of component instance to create</short>
</element>
<!-- argument Visibility: default -->
<element name="TCustomDaemonApplication.CreateForm.Reference">
<short>Variable to store the instance pointer in.</short>
</element>
<!-- property Visibility: public -->
<element name="TCustomDaemonApplication.Logger">
<short>Event logging instance used for logging messages</short>
<descr>
<var>Logger</var> contains a reference to the <link
id="#fcl.eventlog.TEventLog">TEventLog</link> instance that can be
used to send messages to the system log.
</descr>
<seealso>
<link id="TCustomDaemon.LogMessage"/>
</seealso>
</element>
<!-- property Visibility: public -->
<element name="TCustomDaemonApplication.GUIMainLoop">
<short>GUI main loop callback</short>
<descr>
<var>GUIMainLoop</var> contains a reference to a method that can be called
to process a main GUI loop. The procedure should return only when the main
GUI has finished and the application should exit. It is called when the
daemons are running.
</descr>
<seealso>
<link id="TCustomDaemonApplication.GuiHandle"/>
</seealso>
</element>
<!-- property Visibility: public -->
<element name="TCustomDaemonApplication.GuiHandle">
<short>Handle of GUI loop main application window handle</short>
<descr>
<var>GuiHandle</var> is the handle of a GUI window which can be used
to run a message handling loop on. It is created when no <link
id="TCustomDaemonApplication.GUIMainLoop">GUIMainLoop</link> procedure
exists, and the application creates and runs a message loop by itself.
</descr>
<seealso>
<link id="TCustomDaemonApplication.GUIMainLoop">GUIMainLoop</link>
</seealso>
</element>
<!-- property Visibility: public -->
<element name="TCustomDaemonApplication.RunMode">
<short>Application mode</short>
<descr>
<var>RunMode</var> indicates in which mode the application is running
currently. It is set automatically by examining the command-line, and when
set, one of
<link id="TCustomDaemonApplication.InstallDaemons">InstallDaemons</link>,
<link id="TCustomDaemonApplication.RunDaemons">RunDaemons</link> or
<link id="TCustomDaemonApplication.UnInstallDaemons">UnInstallDaemons</link>
is called.
</descr>
<seealso>
<link id="TCustomDaemonApplication.InstallDaemons">InstallDaemons</link>
<link id="TCustomDaemonApplication.RunDaemons">RunDaemons</link>
<link id="TCustomDaemonApplication.UnInstallDaemons">UnInstallDaemons</link>
</seealso>
</element>
<element name="TCustomDaemonApplication.AutoRegisterMessageFile">
<short>Automatically register the message file</short>
<descr>
<p><var>AutoRegisterMessageFile</var> can be set to <var>True</var> to automatically
register the service binary as the source of resource strings for the event viewer.
</p>
<p>
The event log mechanism uses several resource strings in the <file>fclel.res</file> file.
These resource strings must be registered in the windows event viewer.
Setting this property to <var>True</var> takes case of this registration when the program is started.
</p>
</descr>
<seealso/>
</element>
<!-- "class of" type Visibility: default -->
<element name="TCustomDaemonApplicationClass">
<short>Class pointer for <var>TCustomDaemonApplication</var></short>
<descr>
</descr>
<seealso>
<link id="TCustomDaemonApplication"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.daemonapp.TDaemonApplication
********************************************************************
-->
<!-- object Visibility: default -->
<element name="TDaemonApplication">
<short>Default descendent of <var>CustomDaemonApplication</var></short>
<descr>
<var>TDaemonApplication</var> is the default <link
id="TCustomDaemonApplication"/> descendent that is used to run the daemon
application. It is possible to register an alternative
<var>TCustomDaemonApplication</var> class (using <link
id="RegisterDaemonApplicationClass"/>) to run the application in a
different manner.
</descr>
<seealso>
<link id="TCustomDaemonApplication"/>
<link id="RegisterDaemonApplicationClass"/>
</seealso>
</element>
<!--
********************************************************************
#fcl.daemonapp.EDaemon
********************************************************************
-->
<!-- object Visibility: default -->
<element name="EDaemon">
<short>Exception used in all daemon application code</short>
<descr>
<var>EDaemon</var> is the exception class used by all code in the
<file>DaemonApp</file> unit.
</descr>
<seealso>
<link id="DaemonError"/>
</seealso>
</element>
<!-- function Visibility: default -->
<element name="Application">
<short>Application instance</short>
<descr>
<var>Application</var> is the <link id="TCustomDaemonApplication"/> instance
used by this application. The instance is created at the first invocation of
this function, so it is possible to use <link id="RegisterDaemonApplicationClass"/>
to register an alternative <var>TCustomDaemonApplication</var> class to run the application.
</descr>
<seealso>
<link id="TCustomDaemonApplication"/>
<link id="RegisterDaemonApplicationClass"/>
</seealso>
</element>
<!-- function result Visibility: default -->
<element name="Application.Result">
<short><link id="TCustomDaemonApplication"/> instance used by application</short>
</element>
<!-- procedure Visibility: default -->
<element name="RegisterDaemonMapper">
<short>Register a daemon mapper class</short>
<descr>
<var>RegisterDaemonMapper</var> can be used to register an alternative class
for the global daemonmapper. The daemonmapper will be used only when the
application is being run, by the <link id="TCustomDaemonApplication"/> code,
so registering an alternative mapping class should happen in the
initialization section of the application units.
</descr>
<seealso>
<link id="TCustomDaemonApplication"/>
<link id="TCustomDaemonMapperClass"/>
</seealso>
</element>
<!-- argument Visibility: default -->
<element name="RegisterDaemonMapper.AMapperClass">
<short>New <var>TCustomDaemonMapperClass</var> class</short>
</element>
<!-- procedure Visibility: default -->
<element name="RegisterDaemonClass">
<short>Register daemon</short>
<descr>
<var>RegisterDaemonClass</var> must be called for each <link
id="TCustomDaemon"/> descendent that is used in the class: the class pointer
and class name are used by the <link id="TCustomDaemonMapperClass"/> class to
create a <var>TCustomDaemon</var> instance when a daemon is required.
</descr>
<seealso>
<link id="TCustomDaemonMapperClass"/>
<link id="TCustomDaemon"/>
</seealso>
</element>
<!-- argument Visibility: default -->
<element name="RegisterDaemonClass.AClass">
<short><var>TCustomDaemon</var> descendent class to be registered.</short>
</element>
<!-- procedure Visibility: default -->
<element name="RegisterDaemonApplicationClass">
<short>Register alternative <var>TCustomDaemonApplication</var> class.</short>
<descr>
<var>RegisterDaemonApplicationClass</var> can be used to register an
alternative <link id="TCustomDaemonApplication"/> descendent which will
be used when creating the global <link id="Application"/> instance. Only the
last registered class pointer will be used.
</descr>
<seealso>
<link id="TCustomDaemonApplication"/>
<link id="Application"/>
</seealso>
</element>
<!-- argument Visibility: default -->
<element name="RegisterDaemonApplicationClass.AClass">
<short>New class pointer to be used</short>
</element>
<!-- procedure Visibility: default -->
<element name="DaemonError">
<short>Raise an <var>EDaemon</var> exception</short>
<descr>
<var>DaemonError</var> raises an <link id="EDaemon"/> exception with
message <var>Msg</var> or it formats the message using <var>Fmt</var>
and <var>Args</var>.
</descr>
<seealso>
<link id="EDaemon"/>
</seealso>
</element>
<!-- argument Visibility: default -->
<element name="DaemonError.Msg">
<short>Message for the exception</short>
</element>
<!-- argument Visibility: default -->
<element name="DaemonError.Fmt">
<short>Formatting string for exception message</short>
</element>
<!-- argument Visibility: default -->
<element name="DaemonError.Args">
<short>Arguments to format for exception message</short>
</element>
<!-- resource string Visibility: default -->
<element name="SErrNoServiceMapper">
<short>No service mapper was found.</short>
</element>
<!-- resource string Visibility: default -->
<element name="SErrOnlyOneMapperAllowed">
<short>An attempt was made to install a second service mapper</short>
</element>
<!-- resource string Visibility: default -->
<element name="SErrNothingToDo">
<short>No operation can be performed</short>
</element>
<!-- resource string Visibility: default -->
<element name="SErrDuplicateName">
<short>Duplicate service name</short>
</element>
<!-- resource string Visibility: default -->
<element name="SErrUnknownDaemonClass">
<short>Unknown daemon class requested</short>
</element>
<!-- resource string Visibility: default -->
<element name="SErrDaemonStartFailed">
<short>The application failed to start the daemon</short>
</element>
<!-- resource string Visibility: default -->
<element name="SDaemonStatus">
<short>Daemon status report log message</short>
</element>
<!-- resource string Visibility: default -->
<element name="SControlFailed">
<short>The control code was not handled correctly</short>
</element>
<!-- resource string Visibility: default -->
<element name="SCustomCode">
<short>A custom code was received</short>
</element>
<!-- resource string Visibility: default -->
<element name="SErrServiceManagerStartFailed">
<short>Unable to start or contact the service manager</short>
</element>
<!-- resource string Visibility: default -->
<element name="SErrNoDaemonForStatus">
<short>Internal error: no daemon to report status for</short>
</element>
<!-- resource string Visibility: default -->
<element name="SErrNoDaemonDefForStatus">
<short>Internal error: no daemon definition to report status for</short>
</element>
<!-- resource string Visibility: default -->
<element name="SErrWindowClass">
<short>Could not register window class</short>
</element>
<!-- resource string Visibility: default -->
<element name="SErrApplicationAlreadyCreated">
<short>A second application instance is created</short>
</element>
<!-- variable Visibility: default -->
<element name="CurrentStatusNames">
<short>Names for various service statuses</short>
</element>
<!-- variable Visibility: default -->
<element name="SStatus">
<short>Status message</short>
</element>
<!-- variable Visibility: default -->
<element name="DefaultDaemonOptions">
<short>Default daemon options</short>
<descr>
<var>DefaultDaemonOptions</var> are the default options with which a daemon
definition (<link id="TDaemonDef"/>) is created.
</descr>
<seealso>
<link id="TDaemonDef"/>
</seealso>
</element>
<element name="TDaemonDef.Description">
<short>Description of the daemon</short>
<descr>
<var>Description</var> is the description shown in the Windows service
manager when managing this service. It is supplied to the windows service
manager when the daemon is installed.
</descr>
</element>
<element name="SHelpUsage">
<short>Usage message displayed when writing help to the console</short>
</element>
<element name="SHelpCommand">
<short>Options message displayed when writing help to the console</short>
</element>
<element name="SHelpInstall">
<short>Install option message displayed when writing help to the console</short>
</element>
<element name="SHelpUninstall">
<short>Uninstall option message displayed when writing help to the console</short>
</element>
<element name="SHelpRun">
<short>Run option message displayed when writing help to the console</short>
</element>
<element name="AppClass">
<short>Default class used when creating the application instance.</short>
<descr>
<var>AppClass</var> can be set to the class of a <link
id="TCustomDaemonApplication"/> descendant. When the <link
id="Application"/> function needs to create an application instance, this
class will be used. If <var>Application</var> was already called, the value
of <var>AppClass</var> will be ignored.
</descr>
<seealso>
<link id="Application"/>
<link id="TCustomDaemonApplication"/>
</seealso>
</element>
<element name="TCustomDaemonApplication.Destroy">
<short>Clean up the <var>TCustomDaemonApplication</var> instance</short>
<descr>
<var>Destroy</var> cleans up the event log instance and then calls the
inherited destroy.
</descr>
<seealso>
<link id="TCustomDaemonApplication.EventLog"/>
</seealso>
</element>
<element name="TCustomDaemonApplication.ShowHelp">
<short>Display a help message</short>
<descr>
<var>ShowHelp</var> displays a help message explaining the command-line
options on standard output.
</descr>
</element>
<element name="TCustomDaemonApplication.OnRun">
<short>Event executed when the daemon is run.</short>
<descr>
<var>OnRun</var> is triggered when the daemon application is run and no
appropriate options (one of install, uninstall or run) was given.
</descr>
<seealso>
<link id="TCustomDaemonApplication.RunDaemons"/>
<link id="TCustomDaemonApplication.InstallDaemons"/>
<link id="TCustomDaemonApplication.UnInstallDaemons"/>
</seealso>
</element>
<element name="TCustomDaemonApplication.EventLog">
<short>Event logger instance</short>
<descr>
<var>EventLog</var> is the <link id="#fcl.eventlog.TEventLog">TEventLog</link>
instance which is used to log events to the system log. It is created when the
application instance is created, and destroyed when the application is destroyed.
</descr>
<seealso>
<link id="#fcl.eventlog.TEventLog">TEventLog</link>
</seealso>
</element>
</module> <!-- daemonapp -->
</package>
</fpdoc-descriptions>
|