/usr/share/gir-1.0/TrackerControl-2.0.gir is in libtracker-control-2.0-dev 2.0.3-1ubuntu4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 | <?xml version="1.0"?>
<!-- This file was automatically generated from C sources - DO NOT EDIT!
To affect the contents of this file, edit the original C definitions,
and/or use gtk-doc annotations. -->
<repository version="1.2"
xmlns="http://www.gtk.org/introspection/core/1.0"
xmlns:c="http://www.gtk.org/introspection/c/1.0"
xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
<include name="Gio" version="2.0"/>
<c:include name="libtracker-control/tracker-control.h"/>
<namespace name="TrackerControl"
version="2.0"
shared-library="libtracker-control-2.0.so.0"
c:identifier-prefixes="Tracker"
c:symbol-prefixes="tracker">
<class name="MinerManager"
c:symbol-prefix="miner_manager"
c:type="TrackerMinerManager"
parent="GObject.Object"
glib:type-name="TrackerMinerManager"
glib:get-type="tracker_miner_manager_get_type"
glib:type-struct="MinerManagerClass">
<doc xml:space="preserve">Object to query and control miners.</doc>
<implements name="Gio.Initable"/>
<constructor name="new"
c:identifier="tracker_miner_manager_new"
version="0.8">
<doc xml:space="preserve">Creates a new #TrackerMinerManager instance.
Note: Auto-starting miners when querying status will be enabled.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a #TrackerMinerManager or #NULL if an error happened.</doc>
<type name="MinerManager" c:type="TrackerMinerManager*"/>
</return-value>
</constructor>
<constructor name="new_full"
c:identifier="tracker_miner_manager_new_full"
version="0.10.5"
throws="1">
<doc xml:space="preserve">Creates a new #TrackerMinerManager.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a #TrackerMinerManager. On error, #NULL is returned and @error is set
accordingly.</doc>
<type name="MinerManager" c:type="TrackerMinerManager*"/>
</return-value>
<parameters>
<parameter name="auto_start" transfer-ownership="none">
<doc xml:space="preserve">Flag to disable auto-starting the miners when querying status</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</constructor>
<function name="error_quark"
c:identifier="tracker_miner_manager_error_quark"
version="0.8">
<return-value transfer-ownership="none">
<doc xml:space="preserve">the #GQuark used to identify miner manager errors in
GError structures.</doc>
<type name="GLib.Quark" c:type="GQuark"/>
</return-value>
</function>
<virtual-method name="miner_activated">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<type name="MinerManager" c:type="TrackerMinerManager*"/>
</instance-parameter>
<parameter name="miner_name" transfer-ownership="none">
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="miner_deactivated">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<type name="MinerManager" c:type="TrackerMinerManager*"/>
</instance-parameter>
<parameter name="miner_name" transfer-ownership="none">
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="miner_paused">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<type name="MinerManager" c:type="TrackerMinerManager*"/>
</instance-parameter>
<parameter name="miner_name" transfer-ownership="none">
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="miner_progress">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<type name="MinerManager" c:type="TrackerMinerManager*"/>
</instance-parameter>
<parameter name="miner_name" transfer-ownership="none">
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="status" transfer-ownership="none">
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="progress" transfer-ownership="none">
<type name="gdouble" c:type="gdouble"/>
</parameter>
</parameters>
</virtual-method>
<virtual-method name="miner_resumed">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<type name="MinerManager" c:type="TrackerMinerManager*"/>
</instance-parameter>
<parameter name="miner_name" transfer-ownership="none">
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</virtual-method>
<method name="get_available"
c:identifier="tracker_miner_manager_get_available"
version="0.8">
<doc xml:space="preserve">Returns a list of references for all available miners. Available
miners are miners which may or may not be running in a process at
the current time.</doc>
<return-value transfer-ownership="full" nullable="1">
<doc xml:space="preserve">a #GSList which
must be freed with g_slist_free() and all contained data with g_free().
Otherwise %NULL is returned if there are no miners.</doc>
<type name="GLib.SList" c:type="GSList*">
<type name="utf8"/>
</type>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">a #TrackerMinerManager</doc>
<type name="MinerManager" c:type="TrackerMinerManager*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_description"
c:identifier="tracker_miner_manager_get_description"
version="0.8">
<doc xml:space="preserve">Returns the description for the given @miner.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">A string which should not be freed or %NULL if none is specified.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">a #TrackerMinerManager</doc>
<type name="MinerManager" c:type="TrackerMinerManager*"/>
</instance-parameter>
<parameter name="miner" transfer-ownership="none">
<doc xml:space="preserve">miner reference</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="get_display_name"
c:identifier="tracker_miner_manager_get_display_name"
version="0.8">
<doc xml:space="preserve">Returns a translated display name for @miner.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">A string which should not be freed or %NULL.</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">a #TrackerMinerManager</doc>
<type name="MinerManager" c:type="TrackerMinerManager*"/>
</instance-parameter>
<parameter name="miner" transfer-ownership="none">
<doc xml:space="preserve">miner reference</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="get_running"
c:identifier="tracker_miner_manager_get_running"
version="0.8">
<doc xml:space="preserve">Returns a list of references for all active miners. Active miners
are miners which are running within a process.</doc>
<return-value transfer-ownership="full" nullable="1">
<doc xml:space="preserve">a #GSList which
must be freed with g_slist_free() and all contained data with g_free().
Otherwise %NULL is returned if there are no miners.</doc>
<type name="GLib.SList" c:type="GSList*">
<type name="utf8"/>
</type>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">a #trackerMinerManager</doc>
<type name="MinerManager" c:type="TrackerMinerManager*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_status"
c:identifier="tracker_miner_manager_get_status"
version="0.12">
<doc xml:space="preserve">Returns the current status, progress and remaining time for @miner.
@remaining_time will be 0 if not possible to compute it yet,
and less than zero if it is not applicable.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE if the status could be retrieved successfully,
otherwise %FALSE</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">a #TrackerMinerManager</doc>
<type name="MinerManager" c:type="TrackerMinerManager*"/>
</instance-parameter>
<parameter name="miner" transfer-ownership="none">
<doc xml:space="preserve">miner reference</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="status"
direction="out"
caller-allocates="0"
transfer-ownership="full"
optional="1"
allow-none="1">
<doc xml:space="preserve">return location for status</doc>
<type name="utf8" c:type="gchar**"/>
</parameter>
<parameter name="progress"
direction="out"
caller-allocates="0"
transfer-ownership="full"
optional="1"
allow-none="1">
<doc xml:space="preserve">return location for progress</doc>
<type name="gdouble" c:type="gdouble*"/>
</parameter>
<parameter name="remaining_time"
direction="out"
caller-allocates="0"
transfer-ownership="full"
optional="1"
allow-none="1">
<doc xml:space="preserve">return location for remaining time</doc>
<type name="gint" c:type="gint*"/>
</parameter>
</parameters>
</method>
<method name="index_file"
c:identifier="tracker_miner_manager_index_file"
version="2.0"
throws="1">
<doc xml:space="preserve">Tells the filesystem miner to start indexing the @file.
On failure @error will be set.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success, otherwise %FALSE.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">a #TrackerMinerManager</doc>
<type name="MinerManager" c:type="TrackerMinerManager*"/>
</instance-parameter>
<parameter name="file" transfer-ownership="none">
<doc xml:space="preserve">a URL valid in GIO of a file to give to the miner for processing</doc>
<type name="Gio.File" c:type="GFile*"/>
</parameter>
<parameter name="cancellable"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">a #GCancellable, or %NULL</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
</method>
<method name="index_file_async"
c:identifier="tracker_miner_manager_index_file_async"
version="0.16">
<doc xml:space="preserve">Tells the filesystem miner to start indexing the @file. Once the message has been sent,
@callback will be called. You can then call tracker_miner_manager_index_file_finish()
to get the result.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">a #TrackerMinerManager</doc>
<type name="MinerManager" c:type="TrackerMinerManager*"/>
</instance-parameter>
<parameter name="file" transfer-ownership="none">
<doc xml:space="preserve">a URL valid in GIO of a file to give to the miner for processing</doc>
<type name="Gio.File" c:type="GFile*"/>
</parameter>
<parameter name="cancellable"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">a #GCancellable, or %NULL</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback"
transfer-ownership="none"
nullable="1"
allow-none="1"
scope="async"
closure="3">
<doc xml:space="preserve">a #GAsyncReadyCallback to call when the request is satisfied</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">the data to pass to the callback function</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</method>
<method name="index_file_finish"
c:identifier="tracker_miner_manager_index_file_finish"
version="0.16"
throws="1">
<doc xml:space="preserve">Finishes a request to index a file. See tracker_miner_manager_index_file_async()
On failure @error will be set.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success, otherwise %FALSE.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">a #TrackerMinerManager</doc>
<type name="MinerManager" c:type="TrackerMinerManager*"/>
</instance-parameter>
<parameter name="result" transfer-ownership="none">
<doc xml:space="preserve">a #GAsyncResult</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
</method>
<method name="index_file_for_process"
c:identifier="tracker_miner_manager_index_file_for_process"
version="1.10"
throws="1">
<doc xml:space="preserve">This function operates exactly the same way as
tracker_miner_manager_index_file() with the exception that if the
calling process dies, the indexing is cancelled. This API is useful
for cases where the calling process wants to tie the indexing
operation closely to its own lifetime.
On failure @error will be set.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success, otherwise %FALSE.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">a #TrackerMinerManager</doc>
<type name="MinerManager" c:type="TrackerMinerManager*"/>
</instance-parameter>
<parameter name="file" transfer-ownership="none">
<doc xml:space="preserve">a URL valid in GIO of a file to give to the miner for processing</doc>
<type name="Gio.File" c:type="GFile*"/>
</parameter>
<parameter name="cancellable"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">a #GCancellable, or %NULL</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
</method>
<method name="index_file_for_process_async"
c:identifier="tracker_miner_manager_index_file_for_process_async"
version="1.10">
<doc xml:space="preserve">This function operates exactly the same way as
tracker_miner_manager_index_file() with the exception that if the
calling process dies, the indexing is cancelled. This API is useful
for cases where the calling process wants to tie the indexing
operation closely to its own lifetime.
When the operation is finished, @callback will be called. You can
then call tracker_miner_manager_index_file_for_process_finish() to
get the result of the operation.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">a #TrackerMinerManager</doc>
<type name="MinerManager" c:type="TrackerMinerManager*"/>
</instance-parameter>
<parameter name="file" transfer-ownership="none">
<doc xml:space="preserve">a URL valid in GIO of a file to give to the miner for processing</doc>
<type name="Gio.File" c:type="GFile*"/>
</parameter>
<parameter name="cancellable"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">a #GCancellable, or %NULL</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback"
transfer-ownership="none"
nullable="1"
allow-none="1"
scope="async"
closure="3">
<doc xml:space="preserve">a #GAsyncReadyCallback to call when the request is satisfied</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">the data to pass to the callback function</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</method>
<method name="index_file_for_process_finish"
c:identifier="tracker_miner_manager_index_file_for_process_finish"
version="1.10"
throws="1">
<doc xml:space="preserve">Finishes a request to index a file. See tracker_miner_manager_index_file_for_process_async()
On failure @error will be set.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success, otherwise %FALSE.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">a #TrackerMinerManager</doc>
<type name="MinerManager" c:type="TrackerMinerManager*"/>
</instance-parameter>
<parameter name="result" transfer-ownership="none">
<doc xml:space="preserve">a #GAsyncResult</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
</method>
<method name="is_active"
c:identifier="tracker_miner_manager_is_active"
version="0.8">
<doc xml:space="preserve">Returns the miner's current activity.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE if the @miner is active, otherwise %FALSE.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">a #TrackerMinerManager</doc>
<type name="MinerManager" c:type="TrackerMinerManager*"/>
</instance-parameter>
<parameter name="miner" transfer-ownership="none">
<doc xml:space="preserve">miner reference</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="is_paused"
c:identifier="tracker_miner_manager_is_paused"
version="0.8">
<doc xml:space="preserve">This function either returns %FALSE if the miner is not paused,
or returns %TRUE and fills in @applications and @reasons with
the pause reasons and the applications that asked for it. Both
arrays will have the same lengh, and will be sorted so the
application/pause reason pairs have the same index.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE if @miner is paused, otherwise %FALSE.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">a #TrackerMinerManager</doc>
<type name="MinerManager" c:type="TrackerMinerManager*"/>
</instance-parameter>
<parameter name="miner" transfer-ownership="none">
<doc xml:space="preserve">miner reference</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="applications"
direction="out"
caller-allocates="0"
transfer-ownership="full"
optional="1"
allow-none="1">
<doc xml:space="preserve">
return location for application names.</doc>
<array c:type="GStrv*">
<type name="utf8"/>
</array>
</parameter>
<parameter name="reasons"
direction="out"
caller-allocates="0"
transfer-ownership="full"
optional="1"
allow-none="1">
<doc xml:space="preserve">
return location for pause reasons.</doc>
<array c:type="GStrv*">
<type name="utf8"/>
</array>
</parameter>
</parameters>
</method>
<method name="pause"
c:identifier="tracker_miner_manager_pause"
version="0.8">
<doc xml:space="preserve">Asks @miner to pause. a miner could be paused by
several reasons, and its activity won't be resumed
until all pause requests have been resumed.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE if the miner was paused successfully, otherwise
%FALSE.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">a #TrackerMinerManager.</doc>
<type name="MinerManager" c:type="TrackerMinerManager*"/>
</instance-parameter>
<parameter name="miner" transfer-ownership="none">
<doc xml:space="preserve">miner reference</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="reason" transfer-ownership="none">
<doc xml:space="preserve">reason to pause</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="cookie"
direction="out"
caller-allocates="0"
transfer-ownership="full"
optional="1"
allow-none="1">
<doc xml:space="preserve">return location for the pause cookie ID</doc>
<type name="guint32" c:type="guint32*"/>
</parameter>
</parameters>
</method>
<method name="pause_for_process"
c:identifier="tracker_miner_manager_pause_for_process"
version="0.10.15">
<doc xml:space="preserve">This function operates exactly the same way as
tracker_miner_manager_pause() with the exception that if the calling
process dies, the pause is resumed. This API is useful for cases
where the calling process has a risk of crashing without resuming
the pause.
NOTE: If you call g_object_unref() on the @manager before you
intend to resume the pause and it finalizes, it will automatically
resume.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE if the miner was paused successfully, otherwise
%FALSE.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">a #TrackerMinerManager.</doc>
<type name="MinerManager" c:type="TrackerMinerManager*"/>
</instance-parameter>
<parameter name="miner" transfer-ownership="none">
<doc xml:space="preserve">miner reference</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="reason" transfer-ownership="none">
<doc xml:space="preserve">reason to pause</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="cookie"
direction="out"
caller-allocates="0"
transfer-ownership="full"
optional="1"
allow-none="1">
<doc xml:space="preserve">return location for the pause cookie ID</doc>
<type name="guint32" c:type="guint32*"/>
</parameter>
</parameters>
</method>
<method name="reindex_by_mimetype"
c:identifier="tracker_miner_manager_reindex_by_mimetype"
version="0.10"
throws="1">
<doc xml:space="preserve">Tells the filesystem miner to reindex any file with a mimetype in
the @mimetypes list.
On failure @error will be set.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE on success, otherwise %FALSE.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">a #TrackerMinerManager</doc>
<type name="MinerManager" c:type="TrackerMinerManager*"/>
</instance-parameter>
<parameter name="mimetypes" transfer-ownership="none">
<doc xml:space="preserve">an array of mimetypes (E.G. "text/plain"). All items
with a mimetype in that list will be reindexed.</doc>
<array c:type="const GStrv">
<type name="utf8"/>
</array>
</parameter>
</parameters>
</method>
<method name="resume"
c:identifier="tracker_miner_manager_resume"
version="0.8">
<doc xml:space="preserve">Tells @miner to resume activity. The miner won't actually resume
operations until all pause requests have been resumed.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">%TRUE if the miner was successfully resumed, otherwise
%FALSE.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="manager" transfer-ownership="none">
<doc xml:space="preserve">a #TrackerMinerManager</doc>
<type name="MinerManager" c:type="TrackerMinerManager*"/>
</instance-parameter>
<parameter name="miner" transfer-ownership="none">
<doc xml:space="preserve">miner reference</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="cookie" transfer-ownership="none">
<doc xml:space="preserve">pause cookie</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
</parameters>
</method>
<property name="auto-start"
writable="1"
construct-only="1"
transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</property>
<property name="domain-ontology"
writable="1"
construct-only="1"
transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</property>
<field name="parent_instance">
<type name="GObject.Object" c:type="GObject"/>
</field>
<glib:signal name="miner-activated" when="last" version="0.8">
<doc xml:space="preserve">The ::miner-activated signal will be emitted whenever a miner
(referenced by @miner) is activated (technically, this means
the miner has appeared in the session bus).</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="miner" transfer-ownership="none">
<doc xml:space="preserve">miner reference</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="miner-deactivated" when="last" version="0.8">
<doc xml:space="preserve">The ::miner-deactivated signal will be emitted whenever a miner
(referenced by @miner) is deactivated (technically, this means
the miner has disappeared from the session bus).</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="miner" transfer-ownership="none">
<doc xml:space="preserve">miner reference</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="miner-paused" when="last" version="0.8">
<doc xml:space="preserve">The ::miner-paused signal will be emitted whenever a miner
(referenced by @miner) is paused.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="miner" transfer-ownership="none">
<doc xml:space="preserve">miner reference</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="miner-progress" when="last" version="0.12">
<doc xml:space="preserve">The ::miner-progress signal is meant to report status/progress changes
in any tracked miner.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="miner" transfer-ownership="none">
<doc xml:space="preserve">miner reference</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="status" transfer-ownership="none">
<doc xml:space="preserve">miner status</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="progress" transfer-ownership="none">
<doc xml:space="preserve">miner progress, from 0 to 1</doc>
<type name="gdouble" c:type="gdouble"/>
</parameter>
<parameter name="remaining_time" transfer-ownership="none">
<doc xml:space="preserve">remaining processing time</doc>
<type name="gint" c:type="gint"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="miner-resumed" when="last" version="0.8">
<doc xml:space="preserve">The ::miner-resumed signal will be emitted whenever a miner
(referenced by @miner) is resumed.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="miner" transfer-ownership="none">
<doc xml:space="preserve">miner reference</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</glib:signal>
</class>
<record name="MinerManagerClass"
c:type="TrackerMinerManagerClass"
glib:is-gtype-struct-for="MinerManager">
<field name="parent_class">
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
<field name="miner_progress">
<callback name="miner_progress">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="manager" transfer-ownership="none">
<type name="MinerManager" c:type="TrackerMinerManager*"/>
</parameter>
<parameter name="miner_name" transfer-ownership="none">
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="status" transfer-ownership="none">
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="progress" transfer-ownership="none">
<type name="gdouble" c:type="gdouble"/>
</parameter>
</parameters>
</callback>
</field>
<field name="miner_paused">
<callback name="miner_paused">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="manager" transfer-ownership="none">
<type name="MinerManager" c:type="TrackerMinerManager*"/>
</parameter>
<parameter name="miner_name" transfer-ownership="none">
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="miner_resumed">
<callback name="miner_resumed">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="manager" transfer-ownership="none">
<type name="MinerManager" c:type="TrackerMinerManager*"/>
</parameter>
<parameter name="miner_name" transfer-ownership="none">
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="miner_activated">
<callback name="miner_activated">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="manager" transfer-ownership="none">
<type name="MinerManager" c:type="TrackerMinerManager*"/>
</parameter>
<parameter name="miner_name" transfer-ownership="none">
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</callback>
</field>
<field name="miner_deactivated">
<callback name="miner_deactivated">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="manager" transfer-ownership="none">
<type name="MinerManager" c:type="TrackerMinerManager*"/>
</parameter>
<parameter name="miner_name" transfer-ownership="none">
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</callback>
</field>
</record>
<enumeration name="MinerManagerError"
version="0.8"
c:type="TrackerMinerManagerError">
<doc xml:space="preserve">Enumeration values used in errors returned by the
#TrackerMinerManager API.</doc>
<member name="not_available"
value="0"
c:identifier="TRACKER_MINER_MANAGER_ERROR_NOT_AVAILABLE">
<doc xml:space="preserve">The miner in question
is not active and can so can not be used.</doc>
</member>
<member name="noent"
value="1"
c:identifier="TRACKER_MINER_MANAGER_ERROR_NOENT">
<doc xml:space="preserve">The resource that the
miner is handling (for example a file or URI) does not exist.</doc>
</member>
</enumeration>
</namespace>
</repository>
|