File: RhythmDBQueryModel.html

package info (click to toggle)
rhythmbox 2.97-2.1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 40,820 kB
  • sloc: ansic: 117,691; xml: 28,786; sh: 11,150; python: 3,862; makefile: 2,561
file content (1448 lines) | stat: -rw-r--r-- 93,137 bytes parent folder | download
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>RhythmDBQueryModel</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="Rhythmbox Development Reference Manual">
<link rel="up" href="ch04.html" title="RhythmDB">
<link rel="prev" href="RhythmDBPropertyModel.html" title="RhythmDBPropertyModel">
<link rel="next" href="RhythmDBQueryResults.html" title="RhythmDBQueryResults">
<meta name="generator" content="GTK-Doc V1.18 (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="2">
<tr valign="middle">
<td><a accesskey="p" href="RhythmDBPropertyModel.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch04.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">Rhythmbox Development Reference Manual</th>
<td><a accesskey="n" href="RhythmDBQueryResults.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#RhythmDBQueryModel.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#RhythmDBQueryModel.description" class="shortcut">Description</a>
                   | 
                  <a href="#RhythmDBQueryModel.object-hierarchy" class="shortcut">Object Hierarchy</a>
                   | 
                  <a href="#RhythmDBQueryModel.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
                   | 
                  <a href="#RhythmDBQueryModel.properties" class="shortcut">Properties</a>
                   | 
                  <a href="#RhythmDBQueryModel.signals" class="shortcut">Signals</a>
</td></tr>
</table>
<div class="refentry">
<a name="RhythmDBQueryModel"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="RhythmDBQueryModel.top_of_page"></a>RhythmDBQueryModel</span></h2>
<p>RhythmDBQueryModel — a <span class="type">GtkTreeModel</span> containing <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> items</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="RhythmDBQueryModel.synopsis"></a><h2>Synopsis</h2>
<a name="RhythmDBQueryModelLimitType"></a><pre class="synopsis">struct              <a class="link" href="RhythmDBQueryModel.html#RhythmDBQueryModel-struct" title="struct RhythmDBQueryModel">RhythmDBQueryModel</a>;
struct              <a class="link" href="RhythmDBQueryModel.html#RhythmDBQueryModelClass" title="struct RhythmDBQueryModelClass">RhythmDBQueryModelClass</a>;
enum                <a class="link" href="RhythmDBQueryModel.html#RhythmDBQueryModelLimitType-enum" title="enum RhythmDBQueryModelLimitType">RhythmDBQueryModelLimitType</a>;
#define             <a class="link" href="RhythmDBQueryModel.html#RHYTHMDB-QUERY-MODEL-SUGGESTED-UPDATE-CHUNK:CAPS" title="RHYTHMDB_QUERY_MODEL_SUGGESTED_UPDATE_CHUNK">RHYTHMDB_QUERY_MODEL_SUGGESTED_UPDATE_CHUNK</a>
<a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="returnvalue">RhythmDBQueryModel</span></a> * <a class="link" href="RhythmDBQueryModel.html#rhythmdb-query-model-new" title="rhythmdb_query_model_new ()">rhythmdb_query_model_new</a>           (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
                                                         <em class="parameter"><code><span class="type">GPtrArray</span> *query</code></em>,
                                                         <em class="parameter"><code><span class="type">GCompareDataFunc</span> sort_func</code></em>,
                                                         <em class="parameter"><code><span class="type">gpointer</span> sort_data</code></em>,
                                                         <em class="parameter"><code><span class="type">GDestroyNotify</span> sort_data_destroy</code></em>,
                                                         <em class="parameter"><code><span class="type">gboolean</span> sort_reverse</code></em>);
<a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="returnvalue">RhythmDBQueryModel</span></a> * <a class="link" href="RhythmDBQueryModel.html#rhythmdb-query-model-new-empty" title="rhythmdb_query_model_new_empty ()">rhythmdb_query_model_new_empty</a>     (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="RhythmDBQueryModel.html#rhythmdb-query-model-copy-contents" title="rhythmdb_query_model_copy_contents ()">rhythmdb_query_model_copy_contents</a>  (<em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *dest</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *src</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="RhythmDBQueryModel.html#rhythmdb-query-model-chain" title="rhythmdb_query_model_chain ()">rhythmdb_query_model_chain</a>          (<em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *base</code></em>,
                                                         <em class="parameter"><code><span class="type">gboolean</span> import_entries</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="RhythmDBQueryModel.html#rhythmdb-query-model-add-entry" title="rhythmdb_query_model_add_entry ()">rhythmdb_query_model_add_entry</a>      (<em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><span class="type">gint</span> index</code></em>);
<span class="returnvalue">gboolean</span>            <a class="link" href="RhythmDBQueryModel.html#rhythmdb-query-model-remove-entry" title="rhythmdb_query_model_remove_entry ()">rhythmdb_query_model_remove_entry</a>   (<em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="RhythmDBQueryModel.html#rhythmdb-query-model-shuffle-entries" title="rhythmdb_query_model_shuffle_entries ()">rhythmdb_query_model_shuffle_entries</a>
                                                        (<em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="RhythmDBQueryModel.html#rhythmdb-query-model-move-entry" title="rhythmdb_query_model_move_entry ()">rhythmdb_query_model_move_entry</a>     (<em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><span class="type">gint</span> index</code></em>);
<span class="returnvalue">guint64</span>             <a class="link" href="RhythmDBQueryModel.html#rhythmdb-query-model-get-size" title="rhythmdb_query_model_get_size ()">rhythmdb_query_model_get_size</a>       (<em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model</code></em>);
<span class="returnvalue">long</span>                <a class="link" href="RhythmDBQueryModel.html#rhythmdb-query-model-get-duration" title="rhythmdb_query_model_get_duration ()">rhythmdb_query_model_get_duration</a>   (<em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model</code></em>);
<span class="returnvalue">gboolean</span>            <a class="link" href="RhythmDBQueryModel.html#rhythmdb-query-model-entry-to-iter" title="rhythmdb_query_model_entry_to_iter ()">rhythmdb_query_model_entry_to_iter</a>  (<em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><span class="type">GtkTreeIter</span> *iter</code></em>);
<span class="returnvalue">gboolean</span>            <a class="link" href="RhythmDBQueryModel.html#rhythmdb-query-model-has-pending-changes" title="rhythmdb_query_model_has_pending_changes ()">rhythmdb_query_model_has_pending_changes</a>
                                                        (<em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model</code></em>);
<a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="returnvalue">RhythmDBEntry</span></a> *     <a class="link" href="RhythmDBQueryModel.html#rhythmdb-query-model-tree-path-to-entry" title="rhythmdb_query_model_tree_path_to_entry ()">rhythmdb_query_model_tree_path_to_entry</a>
                                                        (<em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model</code></em>,
                                                         <em class="parameter"><code><span class="type">GtkTreePath</span> *path</code></em>);
<a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="returnvalue">RhythmDBEntry</span></a> *     <a class="link" href="RhythmDBQueryModel.html#rhythmdb-query-model-iter-to-entry" title="rhythmdb_query_model_iter_to_entry ()">rhythmdb_query_model_iter_to_entry</a>  (<em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model</code></em>,
                                                         <em class="parameter"><code><span class="type">GtkTreeIter</span> *entry_iter</code></em>);
<a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="returnvalue">RhythmDBEntry</span></a> *     <a class="link" href="RhythmDBQueryModel.html#rhythmdb-query-model-get-next-from-entry" title="rhythmdb_query_model_get_next_from_entry ()">rhythmdb_query_model_get_next_from_entry</a>
                                                        (<em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>);
<a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="returnvalue">RhythmDBEntry</span></a> *     <a class="link" href="RhythmDBQueryModel.html#rhythmdb-query-model-get-previous-from-entry" title="rhythmdb_query_model_get_previous_from_entry ()">rhythmdb_query_model_get_previous_from_entry</a>
                                                        (<em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>);
<span class="returnvalue">char</span> *              <a class="link" href="RhythmDBQueryModel.html#rhythmdb-query-model-compute-status-normal" title="rhythmdb_query_model_compute_status_normal ()">rhythmdb_query_model_compute_status_normal</a>
                                                        (<em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *singular</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *plural</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="RhythmDBQueryModel.html#rhythmdb-query-model-set-sort-order" title="rhythmdb_query_model_set_sort_order ()">rhythmdb_query_model_set_sort_order</a> (<em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model</code></em>,
                                                         <em class="parameter"><code><span class="type">GCompareDataFunc</span> sort_func</code></em>,
                                                         <em class="parameter"><code><span class="type">gpointer</span> sort_data</code></em>,
                                                         <em class="parameter"><code><span class="type">GDestroyNotify</span> sort_data_destroy</code></em>,
                                                         <em class="parameter"><code><span class="type">gboolean</span> sort_reverse</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="RhythmDBQueryModel.html#rhythmdb-query-model-reapply-query" title="rhythmdb_query_model_reapply_query ()">rhythmdb_query_model_reapply_query</a>  (<em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model</code></em>,
                                                         <em class="parameter"><code><span class="type">gboolean</span> filter</code></em>);
<span class="returnvalue">gint</span>                <a class="link" href="RhythmDBQueryModel.html#rhythmdb-query-model-location-sort-func" title="rhythmdb_query_model_location_sort_func ()">rhythmdb_query_model_location_sort_func</a>
                                                        (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *a</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *b</code></em>,
                                                         <em class="parameter"><code><span class="type">gpointer</span> data</code></em>);
<span class="returnvalue">gint</span>                <a class="link" href="RhythmDBQueryModel.html#rhythmdb-query-model-string-sort-func" title="rhythmdb_query_model_string_sort_func ()">rhythmdb_query_model_string_sort_func</a>
                                                        (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *a</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *b</code></em>,
                                                         <em class="parameter"><code><span class="type">gpointer</span> data</code></em>);
<span class="returnvalue">gint</span>                <a class="link" href="RhythmDBQueryModel.html#rhythmdb-query-model-title-sort-func" title="rhythmdb_query_model_title_sort_func ()">rhythmdb_query_model_title_sort_func</a>
                                                        (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *a</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *b</code></em>,
                                                         <em class="parameter"><code><span class="type">gpointer</span> data</code></em>);
<span class="returnvalue">gint</span>                <a class="link" href="RhythmDBQueryModel.html#rhythmdb-query-model-album-sort-func" title="rhythmdb_query_model_album_sort_func ()">rhythmdb_query_model_album_sort_func</a>
                                                        (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *a</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *b</code></em>,
                                                         <em class="parameter"><code><span class="type">gpointer</span> data</code></em>);
<span class="returnvalue">gint</span>                <a class="link" href="RhythmDBQueryModel.html#rhythmdb-query-model-artist-sort-func" title="rhythmdb_query_model_artist_sort_func ()">rhythmdb_query_model_artist_sort_func</a>
                                                        (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *a</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *b</code></em>,
                                                         <em class="parameter"><code><span class="type">gpointer</span> data</code></em>);
<span class="returnvalue">gint</span>                <a class="link" href="RhythmDBQueryModel.html#rhythmdb-query-model-genre-sort-func" title="rhythmdb_query_model_genre_sort_func ()">rhythmdb_query_model_genre_sort_func</a>
                                                        (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *a</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *b</code></em>,
                                                         <em class="parameter"><code><span class="type">gpointer</span> data</code></em>);
<span class="returnvalue">gint</span>                <a class="link" href="RhythmDBQueryModel.html#rhythmdb-query-model-track-sort-func" title="rhythmdb_query_model_track_sort_func ()">rhythmdb_query_model_track_sort_func</a>
                                                        (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *a</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *b</code></em>,
                                                         <em class="parameter"><code><span class="type">gpointer</span> data</code></em>);
<span class="returnvalue">gint</span>                <a class="link" href="RhythmDBQueryModel.html#rhythmdb-query-model-double-ceiling-sort-func" title="rhythmdb_query_model_double_ceiling_sort_func ()">rhythmdb_query_model_double_ceiling_sort_func</a>
                                                        (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *a</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *b</code></em>,
                                                         <em class="parameter"><code><span class="type">gpointer</span> data</code></em>);
<span class="returnvalue">gint</span>                <a class="link" href="RhythmDBQueryModel.html#rhythmdb-query-model-ulong-sort-func" title="rhythmdb_query_model_ulong_sort_func ()">rhythmdb_query_model_ulong_sort_func</a>
                                                        (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *a</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *b</code></em>,
                                                         <em class="parameter"><code><span class="type">gpointer</span> data</code></em>);
<span class="returnvalue">gint</span>                <a class="link" href="RhythmDBQueryModel.html#rhythmdb-query-model-date-sort-func" title="rhythmdb_query_model_date_sort_func ()">rhythmdb_query_model_date_sort_func</a> (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *a</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *b</code></em>,
                                                         <em class="parameter"><code><span class="type">gpointer</span> data</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="RhythmDBQueryModel.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  GObject
   +----RhythmDBQueryModel
</pre>
<pre class="synopsis">
  GEnum
   +----RhythmDBQueryModelLimitType
</pre>
</div>
<div class="refsect1">
<a name="RhythmDBQueryModel.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
RhythmDBQueryModel implements
 <a class="link" href="RhythmDBQueryResults.html" title="RhythmDBQueryResults">RhythmDBQueryResults</a>,  GtkTreeModel,  <a class="link" href="rhythmbox-rb-tree-dnd.html#RbTreeDragSource">RbTreeDragSource</a> and  <a class="link" href="rhythmbox-rb-tree-dnd.html#RbTreeDragDest">RbTreeDragDest</a>.</p>
</div>
<div class="refsect1">
<a name="RhythmDBQueryModel.properties"></a><h2>Properties</h2>
<pre class="synopsis">
  "<a class="link" href="RhythmDBQueryModel.html#RhythmDBQueryModel--base-model" title='The "base-model" property'>base-model</a>"               <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a>*   : Read / Write / Construct
  "<a class="link" href="RhythmDBQueryModel.html#RhythmDBQueryModel--db" title='The "db" property'>db</a>"                       <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>*             : Read / Write / Construct Only
  "<a class="link" href="RhythmDBQueryModel.html#RhythmDBQueryModel--limit-type" title='The "limit-type" property'>limit-type</a>"               <a class="link" href="RhythmDBQueryModel.html#RhythmDBQueryModelLimitType"><span class="type">RhythmDBQueryModelLimitType</span></a>  : Read / Write / Construct Only
  "<a class="link" href="RhythmDBQueryModel.html#RhythmDBQueryModel--limit-value" title='The "limit-value" property'>limit-value</a>"              <span class="type">GValueArray</span>*          : Read / Write / Construct Only
  "<a class="link" href="RhythmDBQueryModel.html#RhythmDBQueryModel--query" title='The "query" property'>query</a>"                    <span class="type">gpointer</span>              : Read / Write
  "<a class="link" href="RhythmDBQueryModel.html#RhythmDBQueryModel--show-hidden" title='The "show-hidden" property'>show-hidden</a>"              <span class="type">gboolean</span>              : Read / Write / Construct
  "<a class="link" href="RhythmDBQueryModel.html#RhythmDBQueryModel--sort-data" title='The "sort-data" property'>sort-data</a>"                <span class="type">gpointer</span>              : Read / Write
  "<a class="link" href="RhythmDBQueryModel.html#RhythmDBQueryModel--sort-data-destroy" title='The "sort-data-destroy" property'>sort-data-destroy</a>"        <span class="type">gpointer</span>              : Read / Write
  "<a class="link" href="RhythmDBQueryModel.html#RhythmDBQueryModel--sort-func" title='The "sort-func" property'>sort-func</a>"                <span class="type">gpointer</span>              : Read / Write
  "<a class="link" href="RhythmDBQueryModel.html#RhythmDBQueryModel--sort-reverse" title='The "sort-reverse" property'>sort-reverse</a>"             <span class="type">gboolean</span>              : Read / Write
</pre>
</div>
<div class="refsect1">
<a name="RhythmDBQueryModel.signals"></a><h2>Signals</h2>
<pre class="synopsis">
  "<a class="link" href="RhythmDBQueryModel.html#RhythmDBQueryModel-complete" title='The "complete" signal'>complete</a>"                                       : <code class="literal">Run Last</code>
  "<a class="link" href="RhythmDBQueryModel.html#RhythmDBQueryModel-entry-prop-changed" title='The "entry-prop-changed" signal'>entry-prop-changed</a>"                             : <code class="literal">Run Last</code>
  "<a class="link" href="RhythmDBQueryModel.html#RhythmDBQueryModel-entry-removed" title='The "entry-removed" signal'>entry-removed</a>"                                  : <code class="literal">Run Last</code>
  "<a class="link" href="RhythmDBQueryModel.html#RhythmDBQueryModel-filter-entry-drop" title='The "filter-entry-drop" signal'>filter-entry-drop</a>"                              : <code class="literal">Run Last</code>
  "<a class="link" href="RhythmDBQueryModel.html#RhythmDBQueryModel-non-entry-dropped" title='The "non-entry-dropped" signal'>non-entry-dropped</a>"                              : <code class="literal">Run Last</code>
  "<a class="link" href="RhythmDBQueryModel.html#RhythmDBQueryModel-post-entry-delete" title='The "post-entry-delete" signal'>post-entry-delete</a>"                              : <code class="literal">Run Last</code>
</pre>
</div>
<div class="refsect1">
<a name="RhythmDBQueryModel.description"></a><h2>Description</h2>
<p>
A RhythmDBQueryModel contains an ordered set of <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> items,
either generated by running a query against the database, or populated
by adding individual entries.
</p>
<p>
All sources use a <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> to provide their track listing.
Since most sources provide a search or filtering capacity, there is
usually a distinction between the source's base query model, which contains
all entries for the source, and its current query model, which reflects
the current search terms and filter selections.
</p>
<p>
A RhythmDBQueryModel can be populated directly from the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>, or it
can be chained to another query model.  Chained query models inherit the
set of entries from the query model they chain to and then restrict the
set using a query.
</p>
<p>
The query model consists of a <span class="type">GSequence</span>, which provides ordering of entries,
and a <span class="type">GHashTable</span>, which allows efficient checks to see if a given entry
is in the model.  A side effect of this is that an entry can only be placed
into a query model in one location.
</p>
<p>
In addition to the query, a <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> can have a sort order and
a limit, specified in terms of file size, duration, or number of entries.
A query model can only have a limit if it also has a sort order, as the
sort order is required to determine which entries fall inside the limit.
When a limit is applied, entries that match the query but fall outside the
limit are maintained in a separate <span class="type">GSequence</span> and <span class="type">GHashTable</span> inside the
query model.
</p>
</div>
<div class="refsect1">
<a name="RhythmDBQueryModel.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="RhythmDBQueryModel-struct"></a><h3>struct RhythmDBQueryModel</h3>
<pre class="programlisting">struct RhythmDBQueryModel;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDBQueryModelClass"></a><h3>struct RhythmDBQueryModelClass</h3>
<pre class="programlisting">struct RhythmDBQueryModelClass {
	GObjectClass parent;

	/* signals */
	void (*complete)		(RhythmDBQueryModel *model);
	void (*entry_prop_changed) (RhythmDBQueryModel *model,
					 RhythmDBEntry *entry,
					 RhythmDBPropType prop,
					 const GValue *old,
					 const GValue *new_value);
	void    (*non_entry_dropped)    (RhythmDBQueryModel *model,
					 const char *uri,
					 int position);
	void    (*entry_removed)        (RhythmDBQueryModel *model,
					 RhythmDBEntry *entry);
	void (*post_entry_delete) (RhythmDBQueryModel *model,
					 RhythmDBEntry *entry);
	gboolean (*filter_entry_drop) (RhythmDBQueryModel *model,
					 RhythmDBEntry *entry);
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDBQueryModelLimitType-enum"></a><h3>enum RhythmDBQueryModelLimitType</h3>
<pre class="programlisting">typedef enum {
	RHYTHMDB_QUERY_MODEL_LIMIT_NONE,
	RHYTHMDB_QUERY_MODEL_LIMIT_COUNT,
	RHYTHMDB_QUERY_MODEL_LIMIT_SIZE,
	RHYTHMDB_QUERY_MODEL_LIMIT_TIME,
} RhythmDBQueryModelLimitType;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="RHYTHMDB-QUERY-MODEL-SUGGESTED-UPDATE-CHUNK:CAPS"></a><h3>RHYTHMDB_QUERY_MODEL_SUGGESTED_UPDATE_CHUNK</h3>
<pre class="programlisting">#define RHYTHMDB_QUERY_MODEL_SUGGESTED_UPDATE_CHUNK 1024
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-model-new"></a><h3>rhythmdb_query_model_new ()</h3>
<pre class="programlisting"><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="returnvalue">RhythmDBQueryModel</span></a> * rhythmdb_query_model_new           (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>,
                                                         <em class="parameter"><code><span class="type">GPtrArray</span> *query</code></em>,
                                                         <em class="parameter"><code><span class="type">GCompareDataFunc</span> sort_func</code></em>,
                                                         <em class="parameter"><code><span class="type">gpointer</span> sort_data</code></em>,
                                                         <em class="parameter"><code><span class="type">GDestroyNotify</span> sort_data_destroy</code></em>,
                                                         <em class="parameter"><code><span class="type">gboolean</span> sort_reverse</code></em>);</pre>
<p>
Constructs a new <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> with the specified query and sorting
parameters.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>query</code></em> :</span></p></td>
<td>the query for the new model</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>sort_func</code></em> :</span></p></td>
<td>the sort function for the new model</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>sort_data</code></em> :</span></p></td>
<td>data to pass to the sort function</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>sort_data_destroy</code></em> :</span></p></td>
<td>function to call when destroying the sort data</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>sort_reverse</code></em> :</span></p></td>
<td>if <code class="literal">TRUE</code>, reverse the sort order</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the newly constructed query model</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-model-new-empty"></a><h3>rhythmdb_query_model_new_empty ()</h3>
<pre class="programlisting"><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="returnvalue">RhythmDBQueryModel</span></a> * rhythmdb_query_model_new_empty     (<em class="parameter"><code><a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a> *db</code></em>);</pre>
<p>
Constructs a new empty query model with no query or sorting parameters.
This should only be used when the query model will be populated by
explicitly adding entries.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>db</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the newly constructed query model</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-model-copy-contents"></a><h3>rhythmdb_query_model_copy_contents ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                rhythmdb_query_model_copy_contents  (<em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *dest</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *src</code></em>);</pre>
<p>
Copies all entries from <em class="parameter"><code>src</code></em> to <em class="parameter"><code>dest</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dest</code></em> :</span></p></td>
<td>destination <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>src</code></em> :</span></p></td>
<td>source <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-model-chain"></a><h3>rhythmdb_query_model_chain ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                rhythmdb_query_model_chain          (<em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *base</code></em>,
                                                         <em class="parameter"><code><span class="type">gboolean</span> import_entries</code></em>);</pre>
<p>
Chains <em class="parameter"><code>model</code></em> to <em class="parameter"><code>base</code></em>.  All changes made to the base model will be reflected in
the child model, and all changes made to the child model will be passed on to the
base model.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> to chain</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>base</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> to chain it to</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>import_entries</code></em> :</span></p></td>
<td>if <code class="literal">TRUE</code>, copy all existing entries from <em class="parameter"><code>base</code></em> to <em class="parameter"><code>model</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-model-add-entry"></a><h3>rhythmdb_query_model_add_entry ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                rhythmdb_query_model_add_entry      (<em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><span class="type">gint</span> index</code></em>);</pre>
<p>
Adds an entry to the query model at the specified position.  Does not check
if the entry matches the query (if any).
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> to add</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>index</code></em> :</span></p></td>
<td>position at which to add it, or -1 to add at the end</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-model-remove-entry"></a><h3>rhythmdb_query_model_remove_entry ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            rhythmdb_query_model_remove_entry   (<em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>);</pre>
<p>
Removes an entry from the query model.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> to remove</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<code class="literal">TRUE</code> if the entry was removed</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-model-shuffle-entries"></a><h3>rhythmdb_query_model_shuffle_entries ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                rhythmdb_query_model_shuffle_entries
                                                        (<em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model</code></em>);</pre>
<p>
Shuffles the entries in the model into a new random order.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-model-move-entry"></a><h3>rhythmdb_query_model_move_entry ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                rhythmdb_query_model_move_entry     (<em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><span class="type">gint</span> index</code></em>);</pre>
<p>
Moves an entry to a new position in the query model.
The position must be a between 0 and the number of entries in the model.
Specifying -1 does not move the entry to the end of the model.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> to move</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>index</code></em> :</span></p></td>
<td>position to move to</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-model-get-size"></a><h3>rhythmdb_query_model_get_size ()</h3>
<pre class="programlisting"><span class="returnvalue">guint64</span>             rhythmdb_query_model_get_size       (<em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model</code></em>);</pre>
<p>
Returns the total size of all entries in the model.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the total size (in bytes) of all entries in the model</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-model-get-duration"></a><h3>rhythmdb_query_model_get_duration ()</h3>
<pre class="programlisting"><span class="returnvalue">long</span>                rhythmdb_query_model_get_duration   (<em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model</code></em>);</pre>
<p>
Returns the total duration of all entries in the model.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the total duration (in seconds) of all entries in the model</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-model-entry-to-iter"></a><h3>rhythmdb_query_model_entry_to_iter ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            rhythmdb_query_model_entry_to_iter  (<em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>,
                                                         <em class="parameter"><code><span class="type">GtkTreeIter</span> *iter</code></em>);</pre>
<p>
Creates a <span class="type">GtkTreeIter</span> pointing to the specified entry in the model.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> to look up</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>holds the returned <span class="type">GtkTreeIter</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<code class="literal">TRUE</code> if the iterator now points to the entry</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-model-has-pending-changes"></a><h3>rhythmdb_query_model_has_pending_changes ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            rhythmdb_query_model_has_pending_changes
                                                        (<em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model</code></em>);</pre>
<p>
Checks if a <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> has any outstanding changes that are
yet to be processed.  This is not very useful.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<code class="literal">TRUE</code> if there are outstanding changes to the model</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-model-tree-path-to-entry"></a><h3>rhythmdb_query_model_tree_path_to_entry ()</h3>
<pre class="programlisting"><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="returnvalue">RhythmDBEntry</span></a> *     rhythmdb_query_model_tree_path_to_entry
                                                        (<em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model</code></em>,
                                                         <em class="parameter"><code><span class="type">GtkTreePath</span> *path</code></em>);</pre>
<p>
Locates the <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> identified by the specified path in the model.
The caller owns a reference to the returned entry.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>a <span class="type">GtkTreePath</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>, if any</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-model-iter-to-entry"></a><h3>rhythmdb_query_model_iter_to_entry ()</h3>
<pre class="programlisting"><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="returnvalue">RhythmDBEntry</span></a> *     rhythmdb_query_model_iter_to_entry  (<em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model</code></em>,
                                                         <em class="parameter"><code><span class="type">GtkTreeIter</span> *entry_iter</code></em>);</pre>
<p>
Locates and returns the <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> pointed to by the specified iterator
in the model.  The caller owns a reference to the returned entry.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry_iter</code></em> :</span></p></td>
<td>a <span class="type">GtkTreeIter</span> to dereference</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>, if any</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-model-get-next-from-entry"></a><h3>rhythmdb_query_model_get_next_from_entry ()</h3>
<pre class="programlisting"><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="returnvalue">RhythmDBEntry</span></a> *     rhythmdb_query_model_get_next_from_entry
                                                        (<em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>);</pre>
<p>
Locates and returns the next <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> in the model after the specified
entry.  The caller owns a reference to the returned entry.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the next <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> in the model, if any</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-model-get-previous-from-entry"></a><h3>rhythmdb_query_model_get_previous_from_entry ()</h3>
<pre class="programlisting"><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="returnvalue">RhythmDBEntry</span></a> *     rhythmdb_query_model_get_previous_from_entry
                                                        (<em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *entry</code></em>);</pre>
<p>
Locates and returns the  <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> in the model before the specified
entry.  The caller owns a reference to the returned entry.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the previous <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> in the model, if any</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-model-compute-status-normal"></a><h3>rhythmdb_query_model_compute_status_normal ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> *              rhythmdb_query_model_compute_status_normal
                                                        (<em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *singular</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *plural</code></em>);</pre>
<p>
Constructs a status string describing the contents of the model.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>singular</code></em> :</span></p></td>
<td>singular form of the pattern describing the number of entries ("<code class="literal">d</code> song")</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>plural</code></em> :</span></p></td>
<td>plural form of the pattern describing the number of entries ("<code class="literal">d</code> songs")</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>allocated status string, to be freed by the caller.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-model-set-sort-order"></a><h3>rhythmdb_query_model_set_sort_order ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                rhythmdb_query_model_set_sort_order (<em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model</code></em>,
                                                         <em class="parameter"><code><span class="type">GCompareDataFunc</span> sort_func</code></em>,
                                                         <em class="parameter"><code><span class="type">gpointer</span> sort_data</code></em>,
                                                         <em class="parameter"><code><span class="type">GDestroyNotify</span> sort_data_destroy</code></em>,
                                                         <em class="parameter"><code><span class="type">gboolean</span> sort_reverse</code></em>);</pre>
<p>
Sets a new sort order on the model.  This reorders the entries
in the model to match the new sort order.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>sort_func</code></em> :</span></p></td>
<td>new sort function</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>sort_data</code></em> :</span></p></td>
<td>data to pass to the new sort function</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>sort_data_destroy</code></em> :</span></p></td>
<td>function to call to free the sort data</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>sort_reverse</code></em> :</span></p></td>
<td>if <code class="literal">TRUE</code>, reverse the sort order</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-model-reapply-query"></a><h3>rhythmdb_query_model_reapply_query ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                rhythmdb_query_model_reapply_query  (<em class="parameter"><code><a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model</code></em>,
                                                         <em class="parameter"><code><span class="type">gboolean</span> filter</code></em>);</pre>
<p>
Reapplies the existing query to the entries in the model.  This
is mostly useful when the query contains relative time criteria
(such as 'not played in the last hour').  This will only remove
entries that are already in the model, it will not find entries
that previously did not match the query.
</p>
<p>
The 'filter' parameter should be set to TRUE when the query is
being used as a filter, rather than to define a base set of entries.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filter</code></em> :</span></p></td>
<td>if <code class="literal">FALSE</code>, emit entry-removed signals</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-model-location-sort-func"></a><h3>rhythmdb_query_model_location_sort_func ()</h3>
<pre class="programlisting"><span class="returnvalue">gint</span>                rhythmdb_query_model_location_sort_func
                                                        (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *a</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *b</code></em>,
                                                         <em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
<p>
Sort function for sorting by location.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>a</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td>nothing</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>result of sort comparison between a and b.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-model-string-sort-func"></a><h3>rhythmdb_query_model_string_sort_func ()</h3>
<pre class="programlisting"><span class="returnvalue">gint</span>                rhythmdb_query_model_string_sort_func
                                                        (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *a</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *b</code></em>,
                                                         <em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
<p>
Sort function for sorting by a single string property
Falls back to location sort order if the strings are equal.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>a</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td>property to sort on</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>result of sort comparison between a and b.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-model-title-sort-func"></a><h3>rhythmdb_query_model_title_sort_func ()</h3>
<pre class="programlisting"><span class="returnvalue">gint</span>                rhythmdb_query_model_title_sort_func
                                                        (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *a</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *b</code></em>,
                                                         <em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
<p>
Sort function for sorting by title.  Falls back to sorting
by location if the titles are the same.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>a</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td>nothing</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>result of sort comparison between a and b.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-model-album-sort-func"></a><h3>rhythmdb_query_model_album_sort_func ()</h3>
<pre class="programlisting"><span class="returnvalue">gint</span>                rhythmdb_query_model_album_sort_func
                                                        (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *a</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *b</code></em>,
                                                         <em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
<p>
Sort function for sorting by album.  Sorts by album, then
disc number, then track number, then title.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>a</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td>nothing</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>result of sort comparison between a and b.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-model-artist-sort-func"></a><h3>rhythmdb_query_model_artist_sort_func ()</h3>
<pre class="programlisting"><span class="returnvalue">gint</span>                rhythmdb_query_model_artist_sort_func
                                                        (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *a</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *b</code></em>,
                                                         <em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
<p>
Sort function for sorting by artist.  Sorts by artist, then
album, then disc number, then track number, then title.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>a</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td>nothing</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>result of sort comparison between a and b.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-model-genre-sort-func"></a><h3>rhythmdb_query_model_genre_sort_func ()</h3>
<pre class="programlisting"><span class="returnvalue">gint</span>                rhythmdb_query_model_genre_sort_func
                                                        (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *a</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *b</code></em>,
                                                         <em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
<p>
Sort function for sorting by genre.  Sorts by genre, then artist,
then album, then disc number, then track number, then title.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>a</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td>nothing</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>result of sort comparison between a and b.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-model-track-sort-func"></a><h3>rhythmdb_query_model_track_sort_func ()</h3>
<pre class="programlisting"><span class="returnvalue">gint</span>                rhythmdb_query_model_track_sort_func
                                                        (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *a</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *b</code></em>,
                                                         <em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
<p>
Sort function for sorting by track.  Sorts by artist,
then album, then disc number, then track number, then title.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>a</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td>nothing</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>result of sort comparison between a and b.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-model-double-ceiling-sort-func"></a><h3>rhythmdb_query_model_double_ceiling_sort_func ()</h3>
<pre class="programlisting"><span class="returnvalue">gint</span>                rhythmdb_query_model_double_ceiling_sort_func
                                                        (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *a</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *b</code></em>,
                                                         <em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
<p>
Sort function for sorting by a rounded floating point value.
The property value is rounded up to an integer value for sorting.
If the values are the same, falls back to sorting by location.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>a</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td>property to sort on</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>result of sort comparison between a and b.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-model-ulong-sort-func"></a><h3>rhythmdb_query_model_ulong_sort_func ()</h3>
<pre class="programlisting"><span class="returnvalue">gint</span>                rhythmdb_query_model_ulong_sort_func
                                                        (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *a</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *b</code></em>,
                                                         <em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
<p>
Sort function for sorting by an unsigned integer property value.
If the values are the same, falls back to sorting by location.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>a</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td>property to sort on</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>result of sort comparison between a and b.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="rhythmdb-query-model-date-sort-func"></a><h3>rhythmdb_query_model_date_sort_func ()</h3>
<pre class="programlisting"><span class="returnvalue">gint</span>                rhythmdb_query_model_date_sort_func (<em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *a</code></em>,
                                                         <em class="parameter"><code><a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> *b</code></em>,
                                                         <em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
<p>
Sort function for sorting by release date.
Falls back to album sort order for equal dates.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>a</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td>
<td>a <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td>nothing</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>result of sort comparison between a and b.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="RhythmDBQueryModel.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="RhythmDBQueryModel--base-model"></a><h3>The <code class="literal">"base-model"</code> property</h3>
<pre class="programlisting">  "base-model"               <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a>*   : Read / Write / Construct</pre>
<p>base RhythmDBQueryModel.</p>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDBQueryModel--db"></a><h3>The <code class="literal">"db"</code> property</h3>
<pre class="programlisting">  "db"                       <a class="link" href="RhythmDB.html" title="RhythmDB"><span class="type">RhythmDB</span></a>*             : Read / Write / Construct Only</pre>
<p>RhythmDB object.</p>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDBQueryModel--limit-type"></a><h3>The <code class="literal">"limit-type"</code> property</h3>
<pre class="programlisting">  "limit-type"               <a class="link" href="RhythmDBQueryModel.html#RhythmDBQueryModelLimitType"><span class="type">RhythmDBQueryModelLimitType</span></a>  : Read / Write / Construct Only</pre>
<p>type of limit.</p>
<p>Default value: RHYTHMDB_QUERY_MODEL_LIMIT_NONE</p>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDBQueryModel--limit-value"></a><h3>The <code class="literal">"limit-value"</code> property</h3>
<pre class="programlisting">  "limit-value"              <span class="type">GValueArray</span>*          : Read / Write / Construct Only</pre>
<p>value of limit.</p>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDBQueryModel--query"></a><h3>The <code class="literal">"query"</code> property</h3>
<pre class="programlisting">  "query"                    <span class="type">gpointer</span>              : Read / Write</pre>
<p>RhythmDBQuery.</p>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDBQueryModel--show-hidden"></a><h3>The <code class="literal">"show-hidden"</code> property</h3>
<pre class="programlisting">  "show-hidden"              <span class="type">gboolean</span>              : Read / Write / Construct</pre>
<p>if TRUE, include entries that are ordinarily hidden.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDBQueryModel--sort-data"></a><h3>The <code class="literal">"sort-data"</code> property</h3>
<pre class="programlisting">  "sort-data"                <span class="type">gpointer</span>              : Read / Write</pre>
<p>Sort data.</p>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDBQueryModel--sort-data-destroy"></a><h3>The <code class="literal">"sort-data-destroy"</code> property</h3>
<pre class="programlisting">  "sort-data-destroy"        <span class="type">gpointer</span>              : Read / Write</pre>
<p>Sort data destroy function.</p>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDBQueryModel--sort-func"></a><h3>The <code class="literal">"sort-func"</code> property</h3>
<pre class="programlisting">  "sort-func"                <span class="type">gpointer</span>              : Read / Write</pre>
<p>Sort function.</p>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDBQueryModel--sort-reverse"></a><h3>The <code class="literal">"sort-reverse"</code> property</h3>
<pre class="programlisting">  "sort-reverse"             <span class="type">gboolean</span>              : Read / Write</pre>
<p>Reverse sort order flag.</p>
<p>Default value: FALSE</p>
</div>
</div>
<div class="refsect1">
<a name="RhythmDBQueryModel.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2">
<a name="RhythmDBQueryModel-complete"></a><h3>The <code class="literal">"complete"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model,
                                                        <span class="type">gpointer</span>            user_data)      : <code class="literal">Run Last</code></pre>
<p>
Emitted when the database query populating the model is complete.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDBQueryModel-entry-prop-changed"></a><h3>The <code class="literal">"entry-prop-changed"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model,
                                                        <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>      *entry,
                                                        <span class="type">gint</span>                prop,
                                                        <span class="type">gpointer</span>            old,
                                                        <span class="type">gpointer</span>            new_value,
                                                        <span class="type">gpointer</span>            user_data)      : <code class="literal">Run Last</code></pre>
<p>
Emitted when an entry in the query model is changed.  When multiple
properties are changed, the entry-prop-changed signals will be emitted
in the order that the changes were made.  At the point that the
signal is emitted, all changes have already been applied to the
<a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> that changed</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>prop</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html#RhythmDBPropType"><span class="type">RhythmDBPropType</span></a> that was changed</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>old</code></em> :</span></p></td>
<td>the previous value for the property</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>new_value</code></em> :</span></p></td>
<td>the new value for the property</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDBQueryModel-entry-removed"></a><h3>The <code class="literal">"entry-removed"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model,
                                                        <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>      *entry,
                                                        <span class="type">gpointer</span>            user_data)      : <code class="literal">Run Last</code></pre>
<p>
Emitted when an entry is removed from the model.  There is some
difference between this and the <span class="type">GtkTreeModel</span> row-removed signal
but I don't know what it is right now.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> that was removed</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDBQueryModel-filter-entry-drop"></a><h3>The <code class="literal">"filter-entry-drop"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            user_function                      (<a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model,
                                                        <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>      *entry,
                                                        <span class="type">gpointer</span>            user_data)      : <code class="literal">Run Last</code></pre>
<p>
Emitted when an entry is being added to a model by drag-and-drop.
This allows the owner of the model to filter out entries that should
not be added to the model (based on entry type, for instance).
If the signal handler returns <code class="literal">FALSE</code>, the entry will not be added.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> being dropped</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDBQueryModel-non-entry-dropped"></a><h3>The <code class="literal">"non-entry-dropped"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model,
                                                        <span class="type">gchar</span>              *uri,
                                                        <span class="type">gint</span>                position,
                                                        <span class="type">gpointer</span>            user_data)      : <code class="literal">Run Last</code></pre>
<p>
Emitted when a URI that does not match an existing <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>
is dropped into the query model.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
<td>the URI that was dropped</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>position</code></em> :</span></p></td>
<td>the position in the query model at which it was dropped</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="RhythmDBQueryModel-post-entry-delete"></a><h3>The <code class="literal">"post-entry-delete"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a> *model,
                                                        <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a>      *entry,
                                                        <span class="type">gpointer</span>            user_data)      : <code class="literal">Run Last</code></pre>
<p>
Emitted after an entry has been removed from the model.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDBQueryModel.html" title="RhythmDBQueryModel"><span class="type">RhythmDBQueryModel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
<td>the <a class="link" href="RhythmDB.html#RhythmDBEntry"><span class="type">RhythmDBEntry</span></a> that was removed</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>