/usr/share/gtk-doc/html/rhythmbox/RBPlayOrder.html is in rhythmbox-doc 3.3-1ubuntu7.
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 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>RBPlayOrder: Rhythmbox Development Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="Rhythmbox Development Reference Manual">
<link rel="up" href="ch05.html" title="Shell">
<link rel="prev" href="RBHistory.html" title="RBHistory">
<link rel="next" href="RBRandomPlayOrder.html" title="RBRandomPlayOrder">
<meta name="generator" content="GTK-Doc V1.25 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
<a href="#RBPlayOrder.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
<a href="#RBPlayOrder.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties"> <span class="dim">|</span>
<a href="#RBPlayOrder.properties" class="shortcut">Properties</a></span><span id="nav_signals"> <span class="dim">|</span>
<a href="#RBPlayOrder.signals" class="shortcut">Signals</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="ch05.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="RBHistory.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="RBRandomPlayOrder.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="RBPlayOrder"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="RBPlayOrder.top_of_page"></a>RBPlayOrder</span></h2>
<p>RBPlayOrder — base class for play order implementations</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="RBPlayOrder.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="RBPlayOrder.html#rb-play-order-playing-source-changed" title="rb_play_order_playing_source_changed ()">rb_play_order_playing_source_changed</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="RBPlayOrder.html#rb-play-order-query-model-changed" title="rb_play_order_query_model_changed ()">rb_play_order_query_model_changed</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="RBPlayOrder.html#rb-play-order-has-next" title="rb_play_order_has_next ()">rb_play_order_has_next</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">RhythmDBEntry</span> *
</td>
<td class="function_name">
<a class="link" href="RBPlayOrder.html#rb-play-order-get-next" title="rb_play_order_get_next ()">rb_play_order_get_next</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="RBPlayOrder.html#rb-play-order-go-next" title="rb_play_order_go_next ()">rb_play_order_go_next</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="RBPlayOrder.html#rb-play-order-has-previous" title="rb_play_order_has_previous ()">rb_play_order_has_previous</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">RhythmDBEntry</span> *
</td>
<td class="function_name">
<a class="link" href="RBPlayOrder.html#rb-play-order-get-previous" title="rb_play_order_get_previous ()">rb_play_order_get_previous</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="RBPlayOrder.html#rb-play-order-go-previous" title="rb_play_order_go_previous ()">rb_play_order_go_previous</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="RBPlayOrder.html#rb-play-order-set-playing-entry" title="rb_play_order_set_playing_entry ()">rb_play_order_set_playing_entry</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">RhythmDBEntry</span> *
</td>
<td class="function_name">
<a class="link" href="RBPlayOrder.html#rb-play-order-get-playing-entry" title="rb_play_order_get_playing_entry ()">rb_play_order_get_playing_entry</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="RBShellPlayer.html" title="RBShellPlayer"><span class="returnvalue">RBShellPlayer</span></a> *
</td>
<td class="function_name">
<a class="link" href="RBPlayOrder.html#rb-play-order-get-player" title="rb_play_order_get_player ()">rb_play_order_get_player</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="RBSource.html" title="RBSource"><span class="returnvalue">RBSource</span></a> *
</td>
<td class="function_name">
<a class="link" href="RBPlayOrder.html#rb-play-order-get-source" title="rb_play_order_get_source ()">rb_play_order_get_source</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="RhythmDB.html" title="RhythmDB"><span class="returnvalue">RhythmDB</span></a> *
</td>
<td class="function_name">
<a class="link" href="RBPlayOrder.html#rb-play-order-get-db" title="rb_play_order_get_db ()">rb_play_order_get_db</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="returnvalue">RhythmDBQueryModel</span></a> *
</td>
<td class="function_name">
<a class="link" href="RBPlayOrder.html#rb-play-order-get-query-model" title="rb_play_order_get_query_model ()">rb_play_order_get_query_model</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="RBPlayOrder.html#rb-play-order-model-not-empty" title="rb_play_order_model_not_empty ()">rb_play_order_model_not_empty</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="RBPlayOrder.html#rb-play-order-player-is-playing" title="rb_play_order_player_is_playing ()">rb_play_order_player_is_playing</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="RBPlayOrder.properties"></a><h2>Properties</h2>
<div class="informaltable"><table class="informaltable" border="0">
<colgroup>
<col width="150px" class="properties_type">
<col width="300px" class="properties_name">
<col width="200px" class="properties_flags">
</colgroup>
<tbody>
<tr>
<td class="property_type">
<a class="link" href="RBShellPlayer.html" title="RBShellPlayer"><span class="type">RBShellPlayer</span></a> *</td>
<td class="property_name"><a class="link" href="RBPlayOrder.html#RBPlayOrder--player" title="The “player” property">player</a></td>
<td class="property_flags">Read / Write / Construct Only</td>
</tr>
<tr>
<td class="property_type">
<span class="type">RhythmDBEntry</span> *</td>
<td class="property_name"><a class="link" href="RBPlayOrder.html#RBPlayOrder--playing-entry" title="The “playing-entry” property">playing-entry</a></td>
<td class="property_flags">Read / Write</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="RBPlayOrder.signals"></a><h2>Signals</h2>
<div class="informaltable"><table class="informaltable" border="0">
<colgroup>
<col width="150px" class="signals_return">
<col width="300px" class="signals_name">
<col width="200px" class="signals_flags">
</colgroup>
<tbody><tr>
<td class="signal_type"><span class="returnvalue">void</span></td>
<td class="signal_name"><a class="link" href="RBPlayOrder.html#RBPlayOrder-have-next-previous-changed" title="The “have-next-previous-changed” signal">have-next-previous-changed</a></td>
<td class="signal_flags"><a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></td>
</tr></tbody>
</table></div>
</div>
<div class="refsect1">
<a name="RBPlayOrder.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="RBPlayOrder.html#RBPlayOrder-struct" title="struct RBPlayOrder">RBPlayOrder</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="RBPlayOrder.html#RBPlayOrderClass" title="struct RBPlayOrderClass">RBPlayOrderClass</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="RBPlayOrder.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen"> <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
<span class="lineart">╰──</span> RBPlayOrder
<span class="lineart">╰──</span> <a class="link" href="RBRandomPlayOrder.html" title="RBRandomPlayOrder">RBRandomPlayOrder</a>
</pre>
</div>
<div class="refsect1">
<a name="RBPlayOrder.description"></a><h2>Description</h2>
<p>A play order defines an ordering of the entries from a <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> that
the <a class="link" href="RBShellPlayer.html" title="RBShellPlayer"><span class="type">RBShellPlayer</span></a> uses to get the next or previous entry to play.</p>
<p>Play order methods are invoked when changes are made to the query model, when
the query model is replaced, the playing source is changed, or a new playing
entry is selected.</p>
<p>The play order must implement methods to check for, retrieve, and move to the
next and previous entries in the play order. Only the go_next and go_previous
methods actually change anything.</p>
<p>The play order should also emit the have-next-previous-changed signal to hint that
the availability of either a next or previous entry in the order may have changed.
This information is used to update the sensitivity of the next and previous buttons.</p>
</div>
<div class="refsect1">
<a name="RBPlayOrder.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="rb-play-order-playing-source-changed"></a><h3>rb_play_order_playing_source_changed ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
rb_play_order_playing_source_changed (<em class="parameter"><code><a class="link" href="RBPlayOrder.html" title="RBPlayOrder"><span class="type">RBPlayOrder</span></a> *porder</code></em>,
<em class="parameter"><code><a class="link" href="RBSource.html" title="RBSource"><span class="type">RBSource</span></a> *source</code></em>);</pre>
<p>Sets the playing <a class="link" href="RBSource.html" title="RBSource"><span class="type">RBSource</span></a> for the play order. Should be called
by <a class="link" href="RBShellPlayer.html" title="RBShellPlayer"><span class="type">RBShellPlayer</span></a> when the active source changes. Subclasses
should implement <code class="function">playing_source_changed()</code> to make any necessary
changes.</p>
<div class="refsect3">
<a name="rb-play-order-playing-source-changed.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>porder</p></td>
<td class="parameter_description"><p><a class="link" href="RBPlayOrder.html" title="RBPlayOrder"><span class="type">RBPlayOrder</span></a> instance</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>source</p></td>
<td class="parameter_description"><p>New playing <a class="link" href="RBSource.html" title="RBSource"><span class="type">RBSource</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="rb-play-order-query-model-changed"></a><h3>rb_play_order_query_model_changed ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
rb_play_order_query_model_changed (<em class="parameter"><code><a class="link" href="RBPlayOrder.html" title="RBPlayOrder"><span class="type">RBPlayOrder</span></a> *porder</code></em>);</pre>
<p>Updates the <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> instance for the play order.
Called from the <a class="link" href="RBSource.html" title="RBSource"><span class="type">RBSource</span></a> notify signal handler, and also from
<span class="type">rb_play_order_source_changed</span>. Subclasses should implement
<code class="function">query_model_changed()</code> to make any necessary adjustments if they
store any state based on the contents of the <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a>.</p>
<div class="refsect3">
<a name="rb-play-order-query-model-changed.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>porder</p></td>
<td class="parameter_description"><p>RBPlayOrder instance</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="rb-play-order-has-next"></a><h3>rb_play_order_has_next ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
rb_play_order_has_next (<em class="parameter"><code><a class="link" href="RBPlayOrder.html" title="RBPlayOrder"><span class="type">RBPlayOrder</span></a> *porder</code></em>);</pre>
<p>If there is no current playing entry, returns true if the play order is non-empty.</p>
<div class="refsect3">
<a name="rb-play-order-has-next.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>porder</p></td>
<td class="parameter_description"><p>RBPlayOrder instance.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="rb-play-order-has-next.returns"></a><h4>Returns</h4>
<p> true if there is an entry after the current playing entry in the play order.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="rb-play-order-get-next"></a><h3>rb_play_order_get_next ()</h3>
<pre class="programlisting"><span class="returnvalue">RhythmDBEntry</span> *
rb_play_order_get_next (<em class="parameter"><code><a class="link" href="RBPlayOrder.html" title="RBPlayOrder"><span class="type">RBPlayOrder</span></a> *porder</code></em>);</pre>
<p>Returns the next entry in the play order, or the first if not currently playing.</p>
<div class="refsect3">
<a name="rb-play-order-get-next.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>porder</p></td>
<td class="parameter_description"><p>RBPlayOrder instance</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="rb-play-order-get-next.returns"></a><h4>Returns</h4>
<p> next entry to play. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="rb-play-order-go-next"></a><h3>rb_play_order_go_next ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
rb_play_order_go_next (<em class="parameter"><code><a class="link" href="RBPlayOrder.html" title="RBPlayOrder"><span class="type">RBPlayOrder</span></a> *porder</code></em>);</pre>
<p>Moves to the next entry in the play order. If not currently playing, sets the
first entry in the play order as the playing entry.</p>
<div class="refsect3">
<a name="rb-play-order-go-next.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>porder</p></td>
<td class="parameter_description"><p>RBPlayOrder instance</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="rb-play-order-has-previous"></a><h3>rb_play_order_has_previous ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
rb_play_order_has_previous (<em class="parameter"><code><a class="link" href="RBPlayOrder.html" title="RBPlayOrder"><span class="type">RBPlayOrder</span></a> *porder</code></em>);</pre>
<p>Returns <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if there is an entry before the current entry in the play order.
If not currently playing, returns <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>.</p>
<div class="refsect3">
<a name="rb-play-order-has-previous.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>porder</p></td>
<td class="parameter_description"><p>RBPlayOrder instance</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="rb-play-order-has-previous.returns"></a><h4>Returns</h4>
<p> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if previous entry exists</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="rb-play-order-get-previous"></a><h3>rb_play_order_get_previous ()</h3>
<pre class="programlisting"><span class="returnvalue">RhythmDBEntry</span> *
rb_play_order_get_previous (<em class="parameter"><code><a class="link" href="RBPlayOrder.html" title="RBPlayOrder"><span class="type">RBPlayOrder</span></a> *porder</code></em>);</pre>
<p>Returns the previous entry in the play order, or NULL if not currently playing.</p>
<div class="refsect3">
<a name="rb-play-order-get-previous.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>porder</p></td>
<td class="parameter_description"><p>RBPlayOrder instance</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="rb-play-order-get-previous.returns"></a><h4>Returns</h4>
<p> previous entry. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="rb-play-order-go-previous"></a><h3>rb_play_order_go_previous ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
rb_play_order_go_previous (<em class="parameter"><code><a class="link" href="RBPlayOrder.html" title="RBPlayOrder"><span class="type">RBPlayOrder</span></a> *porder</code></em>);</pre>
<p>Moves to the previous entry in the play order. If not currently playing, does nothing.</p>
<div class="refsect3">
<a name="rb-play-order-go-previous.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>porder</p></td>
<td class="parameter_description"><p>RBPlayOrder instance</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="rb-play-order-set-playing-entry"></a><h3>rb_play_order_set_playing_entry ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
rb_play_order_set_playing_entry (<em class="parameter"><code><a class="link" href="RBPlayOrder.html" title="RBPlayOrder"><span class="type">RBPlayOrder</span></a> *porder</code></em>,
<em class="parameter"><code><span class="type">RhythmDBEntry</span> *entry</code></em>);</pre>
<p>Sets the playing entry in the play order.</p>
<div class="refsect3">
<a name="rb-play-order-set-playing-entry.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>porder</p></td>
<td class="parameter_description"><p><a class="link" href="RBPlayOrder.html" title="RBPlayOrder"><span class="type">RBPlayOrder</span></a> instance</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>entry</p></td>
<td class="parameter_description"><p> The new playing entry (or NULL for none). </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>][<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="rb-play-order-get-playing-entry"></a><h3>rb_play_order_get_playing_entry ()</h3>
<pre class="programlisting"><span class="returnvalue">RhythmDBEntry</span> *
rb_play_order_get_playing_entry (<em class="parameter"><code><a class="link" href="RBPlayOrder.html" title="RBPlayOrder"><span class="type">RBPlayOrder</span></a> *porder</code></em>);</pre>
<p>Returns the current playing entry in the play order.</p>
<div class="refsect3">
<a name="rb-play-order-get-playing-entry.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>porder</p></td>
<td class="parameter_description"><p><a class="link" href="RBPlayOrder.html" title="RBPlayOrder"><span class="type">RBPlayOrder</span></a> instance</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="rb-play-order-get-playing-entry.returns"></a><h4>Returns</h4>
<p> playing entry. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="rb-play-order-get-player"></a><h3>rb_play_order_get_player ()</h3>
<pre class="programlisting"><a class="link" href="RBShellPlayer.html" title="RBShellPlayer"><span class="returnvalue">RBShellPlayer</span></a> *
rb_play_order_get_player (<em class="parameter"><code><a class="link" href="RBPlayOrder.html" title="RBPlayOrder"><span class="type">RBPlayOrder</span></a> *porder</code></em>);</pre>
<p>Only for use by <a class="link" href="RBPlayOrder.html" title="RBPlayOrder"><span class="type">RBPlayOrder</span></a> subclasses.</p>
<div class="refsect3">
<a name="rb-play-order-get-player.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>porder</p></td>
<td class="parameter_description"><p><a class="link" href="RBPlayOrder.html" title="RBPlayOrder"><span class="type">RBPlayOrder</span></a> instance</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="rb-play-order-get-player.returns"></a><h4>Returns</h4>
<p> <a class="link" href="RBShellPlayer.html" title="RBShellPlayer"><span class="type">RBShellPlayer</span></a> instance. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="rb-play-order-get-source"></a><h3>rb_play_order_get_source ()</h3>
<pre class="programlisting"><a class="link" href="RBSource.html" title="RBSource"><span class="returnvalue">RBSource</span></a> *
rb_play_order_get_source (<em class="parameter"><code><a class="link" href="RBPlayOrder.html" title="RBPlayOrder"><span class="type">RBPlayOrder</span></a> *porder</code></em>);</pre>
<p>Only for use by <a class="link" href="RBPlayOrder.html" title="RBPlayOrder"><span class="type">RBPlayOrder</span></a> subclasses.</p>
<div class="refsect3">
<a name="rb-play-order-get-source.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>porder</p></td>
<td class="parameter_description"><p><a class="link" href="RBPlayOrder.html" title="RBPlayOrder"><span class="type">RBPlayOrder</span></a> instance</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="rb-play-order-get-source.returns"></a><h4>Returns</h4>
<p> the playing <a class="link" href="RBSource.html" title="RBSource"><span class="type">RBSource</span></a> instance. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="rb-play-order-get-db"></a><h3>rb_play_order_get_db ()</h3>
<pre class="programlisting"><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="returnvalue">RhythmDB</span></a> *
rb_play_order_get_db (<em class="parameter"><code><a class="link" href="RBPlayOrder.html" title="RBPlayOrder"><span class="type">RBPlayOrder</span></a> *porder</code></em>);</pre>
<p>Only for use by <a class="link" href="RBPlayOrder.html" title="RBPlayOrder"><span class="type">RBPlayOrder</span></a> subclasses.</p>
<div class="refsect3">
<a name="rb-play-order-get-db.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>porder</p></td>
<td class="parameter_description"><p><a class="link" href="RBPlayOrder.html" title="RBPlayOrder"><span class="type">RBPlayOrder</span></a> instance</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="rb-play-order-get-db.returns"></a><h4>Returns</h4>
<p> the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> instance. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="rb-play-order-get-query-model"></a><h3>rb_play_order_get_query_model ()</h3>
<pre class="programlisting"><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="returnvalue">RhythmDBQueryModel</span></a> *
rb_play_order_get_query_model (<em class="parameter"><code><a class="link" href="RBPlayOrder.html" title="RBPlayOrder"><span class="type">RBPlayOrder</span></a> *porder</code></em>);</pre>
<p>Only for use by <a class="link" href="RBPlayOrder.html" title="RBPlayOrder"><span class="type">RBPlayOrder</span></a> subclasses.</p>
<div class="refsect3">
<a name="rb-play-order-get-query-model.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>porder</p></td>
<td class="parameter_description"><p><a class="link" href="RBPlayOrder.html" title="RBPlayOrder"><span class="type">RBPlayOrder</span></a> instance</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="rb-play-order-get-query-model.returns"></a><h4>Returns</h4>
<p> the active <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> for the playing source. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="rb-play-order-model-not-empty"></a><h3>rb_play_order_model_not_empty ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
rb_play_order_model_not_empty (<em class="parameter"><code><a class="link" href="RBPlayOrder.html" title="RBPlayOrder"><span class="type">RBPlayOrder</span></a> *porder</code></em>);</pre>
<p>Returns <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> is not empty.
Can be used to implement has_next and has_previous for play orders
that have no beginning or end.</p>
<div class="refsect3">
<a name="rb-play-order-model-not-empty.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>porder</p></td>
<td class="parameter_description"><p>RBPlayOrder instance</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="rb-play-order-model-not-empty.returns"></a><h4>Returns</h4>
<p> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if not empty</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="rb-play-order-player-is-playing"></a><h3>rb_play_order_player_is_playing ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
rb_play_order_player_is_playing (<em class="parameter"><code><a class="link" href="RBPlayOrder.html" title="RBPlayOrder"><span class="type">RBPlayOrder</span></a> *porder</code></em>);</pre>
<p>Returns <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if there is a current playing entry in the play order.</p>
<div class="refsect3">
<a name="rb-play-order-player-is-playing.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>porder</p></td>
<td class="parameter_description"><p><a class="link" href="RBPlayOrder.html" title="RBPlayOrder"><span class="type">RBPlayOrder</span></a> instance</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="rb-play-order-player-is-playing.returns"></a><h4>Returns</h4>
<p> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if playing</p>
</div>
</div>
</div>
<div class="refsect1">
<a name="RBPlayOrder.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="RBPlayOrder-struct"></a><h3>struct RBPlayOrder</h3>
<pre class="programlisting">struct RBPlayOrder;</pre>
</div>
<hr>
<div class="refsect2">
<a name="RBPlayOrderClass"></a><h3>struct RBPlayOrderClass</h3>
<pre class="programlisting">struct RBPlayOrderClass {
GObjectClass parent_class;
/* EVENTS */
void (*playing_source_changed) (RBPlayOrder *porder);
void (*db_changed) (RBPlayOrder *porder, RhythmDB *new_db);
void (*playing_entry_changed) (RBPlayOrder *porder, RhythmDBEntry *old_entry, RhythmDBEntry *new_entry);
void (*entry_added) (RBPlayOrder *porder, RhythmDBEntry *entry);
void (*entry_removed) (RBPlayOrder *porder, RhythmDBEntry *entry);
void (*query_model_changed) (RBPlayOrder *porder);
void (*db_entry_deleted) (RBPlayOrder *porder, RhythmDBEntry *entry);
void (*playing_entry_removed) (RBPlayOrder *porder, RhythmDBEntry *entry);
/* QUERIES */
/*
* Returns whether there is a next song. This controls the next
* button's sensitivity. If not implemented, defaults to
* get_next()!=NULL.
*
* Must not change any visible state.
*/
gboolean (*has_next) (RBPlayOrder* porder);
/*
* get_next() must return the next song to play. It's called when a
* song finishes, when the user clicks the next button, and when the
* user clicks play after playback is stopped.
*
* get_next() is also used to find the first song. You can figure out
* whether the player is currently playing by calling
* rb_play_order_player_is_playing(porder).
*
* Must not change any visible state.
*/
RhythmDBEntry* (*get_next) (RBPlayOrder* porder);
/*
* Tells the play order that the user has moved to the next song.
* Should be called before the EntryView::playing-entry property is
* changed.
*/
void (*go_next) (RBPlayOrder* porder);
/*
* Returns whether there is a previous song. This controls the previous
* button's sensitivity. If not implemented, defaults to
* get_previous()!=NULL.
*
* Must not change any visible state.
*/
gboolean (*has_previous) (RBPlayOrder* porder);
/*
* get_previous() must return the previous song to play. It's called
* when the user clicks the previous button within 2 seconds of the
* beginning of a song.
*
* Must not change any visible state.
*/
RhythmDBEntry* (*get_previous) (RBPlayOrder* porder);
/*
* Tells the play order that the user has moved to the previous song.
* Should be called before the EntryView::playing-entry property is
* changed.
*/
void (*go_previous) (RBPlayOrder* porder);
/* SIGNALS */
void (*have_next_previous_changed) (RBPlayOrder *porder, gboolean have_next, gboolean have_previous);
};
</pre>
</div>
</div>
<div class="refsect1">
<a name="RBPlayOrder.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="RBPlayOrder--player"></a><h3>The <code class="literal">“player”</code> property</h3>
<pre class="programlisting"> “player” <a class="link" href="RBShellPlayer.html" title="RBShellPlayer"><span class="type">RBShellPlayer</span></a> *</pre>
<p>The <a class="link" href="RBShellPlayer.html" title="RBShellPlayer"><span class="type">RBShellPlayer</span></a> instance</p>
<p>Flags: Read / Write / Construct Only</p>
</div>
<hr>
<div class="refsect2">
<a name="RBPlayOrder--playing-entry"></a><h3>The <code class="literal">“playing-entry”</code> property</h3>
<pre class="programlisting"> “playing-entry” <span class="type">RhythmDBEntry</span> *</pre>
<p>The current playing <span class="type">RhythmDBEntry</span></p>
<p>Flags: Read / Write</p>
</div>
</div>
<div class="refsect1">
<a name="RBPlayOrder.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2">
<a name="RBPlayOrder-have-next-previous-changed"></a><h3>The <code class="literal">“have-next-previous-changed”</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
user_function (<a class="link" href="RBPlayOrder.html" title="RBPlayOrder"><span class="type">RBPlayOrder</span></a> *porder,
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> have_next,
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> have_previous,
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
<p>Emitted as a hint to suggest that the sensitivity of next/previous
buttons may need to be updated.</p>
<div class="refsect3">
<a name="RBPlayOrder-have-next-previous-changed.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>porder</p></td>
<td class="parameter_description"><p>the <a class="link" href="RBPlayOrder.html" title="RBPlayOrder"><span class="type">RBPlayOrder</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>have_next</p></td>
<td class="parameter_description"><p>if <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, the play order has at least one more entry</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>have_previous</p></td>
<td class="parameter_description"><p>if <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, the play order has at least one entry
before the current entry</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p>Flags: <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></p>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.25</div>
</body>
</html>
|