/usr/share/gtk-doc/html/libgda-4.0/GdaDataProxy.html is in libgda-4.0-doc 4.2.8-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GdaDataProxy</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="index.html" title="GNOME Data Access 4 manual">
<link rel="up" href="data_models.html" title="Data handling">
<link rel="prev" href="GdaDataModelDir.html" title="GdaDataModelDir">
<link rel="next" href="libgda-4.0-GdaDataComparator.html" title="GdaDataComparator">
<meta name="generator" content="GTK-Doc V1.17 (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="GdaDataModelDir.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="data_models.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">GNOME Data Access 4 manual</th>
<td><a accesskey="n" href="libgda-4.0-GdaDataComparator.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#GdaDataProxy.synopsis" class="shortcut">Top</a>
|
<a href="#GdaDataProxy.description" class="shortcut">Description</a>
|
<a href="#GdaDataProxy.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
<a href="#GdaDataProxy.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
|
<a href="#GdaDataProxy.properties" class="shortcut">Properties</a>
|
<a href="#GdaDataProxy.signals" class="shortcut">Signals</a>
</td></tr>
</table>
<div class="refentry">
<a name="GdaDataProxy"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GdaDataProxy.top_of_page"></a>GdaDataProxy</span></h2>
<p>GdaDataProxy — Proxy to hold modifications for any <a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a>, and provides the <a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a> interface itself</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="GdaDataProxy.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis"> <a class="link" href="GdaDataProxy.html#GdaDataProxy-struct" title="GdaDataProxy">GdaDataProxy</a>;
<a class="link" href="GdaDataProxy.html#GdaDataProxyClass" title="GdaDataProxyClass">GdaDataProxyClass</a>;
<a class="link" href="GdaDataProxy.html#GdaDataProxyPrivate" title="GdaDataProxyPrivate">GdaDataProxyPrivate</a>;
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="returnvalue">GObject</span></a> * <a class="link" href="GdaDataProxy.html#gda-data-proxy-new" title="gda_data_proxy_new ()">gda_data_proxy_new</a> (<em class="parameter"><code><a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a> *model</code></em>);
<a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="returnvalue">GdaDataModel</span></a> * <a class="link" href="GdaDataProxy.html#gda-data-proxy-get-proxied-model" title="gda_data_proxy_get_proxied_model ()">gda_data_proxy_get_proxied_model</a> (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> <a class="link" href="GdaDataProxy.html#gda-data-proxy-get-proxied-model-n-cols" title="gda_data_proxy_get_proxied_model_n_cols ()">gda_data_proxy_get_proxied_model_n_cols</a>
(<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> <a class="link" href="GdaDataProxy.html#gda-data-proxy-get-proxied-model-n-rows" title="gda_data_proxy_get_proxied_model_n_rows ()">gda_data_proxy_get_proxied_model_n_rows</a>
(<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GdaDataProxy.html#gda-data-proxy-is-read-only" title="gda_data_proxy_is_read_only ()">gda_data_proxy_is_read_only</a> (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Singly-Linked-Lists.html#GSList"><span class="returnvalue">GSList</span></a> * <a class="link" href="GdaDataProxy.html#gda-data-proxy-get-values" title="gda_data_proxy_get_values ()">gda_data_proxy_get_values</a> (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> proxy_row</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *cols_index</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> n_cols</code></em>);
<span class="returnvalue">GdaValueAttribute</span> <a class="link" href="GdaDataProxy.html#gda-data-proxy-get-value-attributes" title="gda_data_proxy_get_value_attributes ()">gda_data_proxy_get_value_attributes</a> (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> proxy_row</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> col</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GdaDataProxy.html#gda-data-proxy-alter-value-attributes" title="gda_data_proxy_alter_value_attributes ()">gda_data_proxy_alter_value_attributes</a>
(<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> proxy_row</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> col</code></em>,
<em class="parameter"><code><span class="type">GdaValueAttribute</span> alter_flags</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> <a class="link" href="GdaDataProxy.html#gda-data-proxy-get-proxied-model-row" title="gda_data_proxy_get_proxied_model_row ()">gda_data_proxy_get_proxied_model_row</a>
(<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> proxy_row</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GdaDataProxy.html#gda-data-proxy-delete" title="gda_data_proxy_delete ()">gda_data_proxy_delete</a> (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> proxy_row</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GdaDataProxy.html#gda-data-proxy-undelete" title="gda_data_proxy_undelete ()">gda_data_proxy_undelete</a> (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> proxy_row</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GdaDataProxy.html#gda-data-proxy-row-is-deleted" title="gda_data_proxy_row_is_deleted ()">gda_data_proxy_row_is_deleted</a> (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> proxy_row</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GdaDataProxy.html#gda-data-proxy-row-is-inserted" title="gda_data_proxy_row_is_inserted ()">gda_data_proxy_row_is_inserted</a> (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> proxy_row</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GdaDataProxy.html#gda-data-proxy-cancel-row-changes" title="gda_data_proxy_cancel_row_changes ()">gda_data_proxy_cancel_row_changes</a> (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> proxy_row</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> col</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GdaDataProxy.html#gda-data-proxy-apply-row-changes" title="gda_data_proxy_apply_row_changes ()">gda_data_proxy_apply_row_changes</a> (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> proxy_row</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GdaDataProxy.html#gda-data-proxy-has-changed" title="gda_data_proxy_has_changed ()">gda_data_proxy_has_changed</a> (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GdaDataProxy.html#gda-data-proxy-row-has-changed" title="gda_data_proxy_row_has_changed ()">gda_data_proxy_row_has_changed</a> (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> proxy_row</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> <a class="link" href="GdaDataProxy.html#gda-data-proxy-get-n-new-rows" title="gda_data_proxy_get_n_new_rows ()">gda_data_proxy_get_n_new_rows</a> (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GdaDataProxy.html#gda-data-proxy-set-sample-size" title="gda_data_proxy_set_sample_size ()">gda_data_proxy_set_sample_size</a> (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> sample_size</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> <a class="link" href="GdaDataProxy.html#gda-data-proxy-get-sample-size" title="gda_data_proxy_get_sample_size ()">gda_data_proxy_get_sample_size</a> (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GdaDataProxy.html#gda-data-proxy-set-sample-start" title="gda_data_proxy_set_sample_start ()">gda_data_proxy_set_sample_start</a> (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> sample_start</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> <a class="link" href="GdaDataProxy.html#gda-data-proxy-get-sample-start" title="gda_data_proxy_get_sample_start ()">gda_data_proxy_get_sample_start</a> (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> <a class="link" href="GdaDataProxy.html#gda-data-proxy-get-sample-end" title="gda_data_proxy_get_sample_end ()">gda_data_proxy_get_sample_end</a> (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GdaDataProxy.html#gda-data-proxy-apply-all-changes" title="gda_data_proxy_apply_all_changes ()">gda_data_proxy_apply_all_changes</a> (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GdaDataProxy.html#gda-data-proxy-cancel-all-changes" title="gda_data_proxy_cancel_all_changes ()">gda_data_proxy_cancel_all_changes</a> (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GdaDataProxy.html#gda-data-proxy-set-filter-expr" title="gda_data_proxy_set_filter_expr ()">gda_data_proxy_set_filter_expr</a> (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *filter_expr</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="GdaDataProxy.html#gda-data-proxy-get-filter-expr" title="gda_data_proxy_get_filter_expr ()">gda_data_proxy_get_filter_expr</a> (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> <a class="link" href="GdaDataProxy.html#gda-data-proxy-get-filtered-n-rows" title="gda_data_proxy_get_filtered_n_rows ()">gda_data_proxy_get_filtered_n_rows</a> (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="GdaDataProxy.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
+----GdaDataProxy
</pre>
</div>
<div class="refsect1">
<a name="GdaDataProxy.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
GdaDataProxy implements
<a class="link" href="GdaDataModel.html" title="GdaDataModel">GdaDataModel</a>.</p>
</div>
<div class="refsect1">
<a name="GdaDataProxy.properties"></a><h2>Properties</h2>
<pre class="synopsis">
"<a class="link" href="GdaDataProxy.html#GdaDataProxy--defer-sync" title='The "defer-sync" property'>defer-sync</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write
"<a class="link" href="GdaDataProxy.html#GdaDataProxy--model" title='The "model" property'>model</a>" <a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a>* : Read / Write / Construct
"<a class="link" href="GdaDataProxy.html#GdaDataProxy--prepend-null-entry" title='The "prepend-null-entry" property'>prepend-null-entry</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write
"<a class="link" href="GdaDataProxy.html#GdaDataProxy--sample-size" title='The "sample-size" property'>sample-size</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write / Construct
</pre>
</div>
<div class="refsect1">
<a name="GdaDataProxy.signals"></a><h2>Signals</h2>
<pre class="synopsis">
"<a class="link" href="GdaDataProxy.html#GdaDataProxy-filter-changed" title='The "filter-changed" signal'>filter-changed</a>" : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a>
"<a class="link" href="GdaDataProxy.html#GdaDataProxy-row-changes-applied" title='The "row-changes-applied" signal'>row-changes-applied</a>" : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a>
"<a class="link" href="GdaDataProxy.html#GdaDataProxy-row-delete-changed" title='The "row-delete-changed" signal'>row-delete-changed</a>" : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a>
"<a class="link" href="GdaDataProxy.html#GdaDataProxy-sample-changed" title='The "sample-changed" signal'>sample-changed</a>" : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a>
"<a class="link" href="GdaDataProxy.html#GdaDataProxy-sample-size-changed" title='The "sample-size-changed" signal'>sample-size-changed</a>" : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a>
"<a class="link" href="GdaDataProxy.html#GdaDataProxy-validate-row-changes" title='The "validate-row-changes" signal'>validate-row-changes</a>" : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
</pre>
</div>
<div class="refsect1">
<a name="GdaDataProxy.description"></a><h2>Description</h2>
<p>
This object stores modifications to be made to a <a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a> object which is proxied until the modifications are actually
written to the <a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a>, it can also filter the proxied data model to show only a subset (a defined number of continuous
rows or by a filter to apply).
</p>
<p>
Specifically, for a proxied data model having <code class="varname">nb_cols</code> columns and <code class="varname">nb_rows</code> rows,
the <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> object has the following attributes:
</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem">
<p><code class="varname">2 * nb_cols</code> columns:
</p>
<div class="itemizedlist"><ul class="itemizedlist" type="circle">
<li class="listitem"><p>the first (>= 0) <code class="varname">nb_cols</code> columns are the current values stored in the
proxy (which correspond to the values of the proxied data model if the considered row has not been
changed). The associated values are writable.</p></li>
<li class="listitem"><p>the last <code class="varname">nb_cols</code> columns are the values stored in the proxied data model,
at column <code class="varname">col - nb_cols</code></p></li>
</ul></div>
<p>
</p>
</li>
<li class="listitem">
<p>a variable number of rows depending on the following attributes:
</p>
<div class="itemizedlist"><ul class="itemizedlist" type="circle">
<li class="listitem"><p>if the proxy is configured to have an empty row as the first row</p></li>
<li class="listitem"><p>if the proxy only displays parts of the proxied data model</p></li>
<li class="listitem"><p>if new rows have been added to the proxy</p></li>
</ul></div>
<p>
</p>
</li>
</ul></div>
<p>
This situation is illustrated in the following schema, where there is a direct mapping between the proxy's
rows and the proxied data model's rows:
</p>
<div class="mediaobject"><img src="data_proxy1.png" width="602.36220472441" alt="GdaDataProxy's values mapping regarding the proxied data model"></div>
<p>
Note that unless explicitly mentioned, the columns are read-only.
</p>
<p>
The following figures illustrate row mappings between the data proxy and the proxied data model in
several situations (which can be combined, but are shown alone for simplicity):
</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem">
<p>situation where rows 1 and 5 have been marked as deleted from the data proxy, using
<a class="link" href="GdaDataProxy.html#gda-data-proxy-delete" title="gda_data_proxy_delete ()"><a class="link" href="GdaDataProxy.html#gda-data-proxy-delete" title="gda_data_proxy_delete ()"><code class="function">gda_data_proxy_delete()</code></a></a> method, the data
proxy has 2 rows less than the proxied data model:
</p>
<div class="mediaobject"><img src="data_proxy2.png" width="354.330708661417" alt="GdaDataProxy with 2 rows marked as deleted"></div>
<p>
</p>
</li>
<li class="listitem">
<p>situation where the data proxy only shows a sample of the proxied data model
at any given time, using the
<a class="link" href="GdaDataProxy.html#gda-data-proxy-set-sample-size" title="gda_data_proxy_set_sample_size ()"><a class="link" href="GdaDataProxy.html#gda-data-proxy-set-sample-size" title="gda_data_proxy_set_sample_size ()"><code class="function">gda_data_proxy_set_sample_size()</code></a></a> method
(the sample here is 4 rows wide, and starts at row 3):
</p>
<div class="mediaobject"><img src="data_proxy3.png" width="354.330708661417" alt="GdaDataProxy with a sample size of 4"></div>
<p>
</p>
</li>
<li class="listitem">
<p>situation where the data proxy shows a row of NULL values, using the
"prepend-null-entry" property:
</p>
<div class="mediaobject"><img src="data_proxy4.png" width="354.330708661417" alt="GdaDataProxy with an extra row of NULL values"></div>
<p>
</p>
</li>
<li class="listitem">
<p>situation where a row has been added to the data proxy, using for example the
<a class="link" href="GdaDataModel.html#gda-data-model-append-row" title="gda_data_model_append_row ()"><code class="function">gda_data_model_append_row()</code></a> method:
</p>
<div class="mediaobject"><img src="data_proxy5.png" width="354.330708661417" alt="GdaDataProxy where a row has been added"></div>
<p>
</p>
</li>
</ul></div>
<p>
</p>
<p>
The <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> objects are thread safe, which means any proxy object can be used from
any thread at the same time as they implement their own locking mechanisms.
</p>
</div>
<div class="refsect1">
<a name="GdaDataProxy.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GdaDataProxy-struct"></a><h3>GdaDataProxy</h3>
<pre class="programlisting">typedef struct _GdaDataProxy GdaDataProxy;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="GdaDataProxyClass"></a><h3>GdaDataProxyClass</h3>
<pre class="programlisting">typedef struct {
GObjectClass parent_class;
void (* row_delete_changed) (GdaDataProxy *proxy, gint row, gboolean to_be_deleted);
void (* sample_size_changed) (GdaDataProxy *proxy, gint sample_size);
void (* sample_changed) (GdaDataProxy *proxy, gint sample_start, gint sample_end);
GError *(* validate_row_changes) (GdaDataProxy *proxy, gint row, gint proxied_row);
void (* row_changes_applied) (GdaDataProxy *proxy, gint row, gint proxied_row);
void (* filter_changed) (GdaDataProxy *proxy);
/* Padding for future expansion */
void (*_gda_reserved1) (void);
void (*_gda_reserved2) (void);
void (*_gda_reserved3) (void);
void (*_gda_reserved4) (void);
} GdaDataProxyClass;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="GdaDataProxyPrivate"></a><h3>GdaDataProxyPrivate</h3>
<pre class="programlisting">typedef struct _GdaDataProxyPrivate GdaDataProxyPrivate;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-proxy-new"></a><h3>gda_data_proxy_new ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="returnvalue">GObject</span></a> * gda_data_proxy_new (<em class="parameter"><code><a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a> *model</code></em>);</pre>
<p>
Creates a new proxy for <em class="parameter"><code>model</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>model</code></em> :</span></p></td>
<td>Data model to be proxied. <span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> object. <span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-proxy-get-proxied-model"></a><h3>gda_data_proxy_get_proxied_model ()</h3>
<pre class="programlisting"><a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="returnvalue">GdaDataModel</span></a> * gda_data_proxy_get_proxied_model (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>);</pre>
<p>
Fetch the <a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a> which <em class="parameter"><code>proxy</code></em> does proxy
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the proxied data model. <span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-proxy-get-proxied-model-n-cols"></a><h3>gda_data_proxy_get_proxied_model_n_cols ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> gda_data_proxy_get_proxied_model_n_cols
(<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>);</pre>
<p>
Get the number of columns in the proxied data model
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the number of columns, or -1 if an error occurred</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-proxy-get-proxied-model-n-rows"></a><h3>gda_data_proxy_get_proxied_model_n_rows ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> gda_data_proxy_get_proxied_model_n_rows
(<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>);</pre>
<p>
Get the number of rows in the proxied data model
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the number of rows, or -1 if the number of rows is not known</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-proxy-is-read-only"></a><h3>gda_data_proxy_is_read_only ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gda_data_proxy_is_read_only (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>TRUE if the proxied data model is itself read-only</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-proxy-get-values"></a><h3>gda_data_proxy_get_values ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Singly-Linked-Lists.html#GSList"><span class="returnvalue">GSList</span></a> * gda_data_proxy_get_values (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> proxy_row</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *cols_index</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> n_cols</code></em>);</pre>
<p>
Retrieve a whole list of values from the <em class="parameter"><code>proxy</code></em> data model. This function
calls <code class="function">gda_data_proxy_get_value()</code>
for each column index specified in <em class="parameter"><code>cols_index</code></em>, and generates a <a href="http://library.gnome.org/devel/glib/unstable/glib-Singly-Linked-Lists.html#GSList"><span class="type">GSList</span></a> on the way.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy_row</code></em> :</span></p></td>
<td>a proxy row</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cols_index</code></em> :</span></p></td>
<td>array containing the columns for which the values are requested. <span class="annotation">[<a href="http://foldoc.org/array"><span class="acronym">array</span></a>][<a href="http://foldoc.org/array"><span class="acronym">array</span></a> length=n_cols]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n_cols</code></em> :</span></p></td>
<td>size of <em class="parameter"><code>cols_index</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new list of values (the list must be freed, not the values),
or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if an error occurred. <span class="annotation">[<a href="http://foldoc.org/element-type"><span class="acronym">element-type</span></a> GValue][<a href="http://foldoc.org/transfer%20container"><span class="acronym">transfer container</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-proxy-get-value-attributes"></a><h3>gda_data_proxy_get_value_attributes ()</h3>
<pre class="programlisting"><span class="returnvalue">GdaValueAttribute</span> gda_data_proxy_get_value_attributes (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> proxy_row</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> col</code></em>);</pre>
<p>
Get the attributes of the value stored at (proxy_row, col) in <em class="parameter"><code>proxy</code></em>, which
is an ORed value of <span class="type">GdaValueAttribute</span> flags
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy_row</code></em> :</span></p></td>
<td>a proxy row</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>col</code></em> :</span></p></td>
<td>a valid proxy column</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the attribute. <span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-proxy-alter-value-attributes"></a><h3>gda_data_proxy_alter_value_attributes ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gda_data_proxy_alter_value_attributes
(<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> proxy_row</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> col</code></em>,
<em class="parameter"><code><span class="type">GdaValueAttribute</span> alter_flags</code></em>);</pre>
<p>
Alters the attributes of the value stored at (proxy_row, col) in <em class="parameter"><code>proxy</code></em>. the <em class="parameter"><code>alter_flags</code></em>
can only contain the GDA_VALUE_ATTR_IS_NULL, GDA_VALUE_ATTR_IS_DEFAULT and GDA_VALUE_ATTR_IS_UNCHANGED
flags (other flags are ignored).
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy_row</code></em> :</span></p></td>
<td>A proxy row number</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>col</code></em> :</span></p></td>
<td>a valid column number</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>alter_flags</code></em> :</span></p></td>
<td>flags to alter the attributes. <span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-proxy-get-proxied-model-row"></a><h3>gda_data_proxy_get_proxied_model_row ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> gda_data_proxy_get_proxied_model_row
(<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> proxy_row</code></em>);</pre>
<p>
Get the <em class="parameter"><code>proxy</code></em>'s proxied model row corresponding to <em class="parameter"><code>proxy_row</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>proxy</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy_row</code></em> :</span></p></td>
<td>A proxy row number</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the proxied model's row, or -1 if <em class="parameter"><code>proxy</code></em> row which only exists <em class="parameter"><code>proxy</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-proxy-delete"></a><h3>gda_data_proxy_delete ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gda_data_proxy_delete (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> proxy_row</code></em>);</pre>
<p>
Marks the row <em class="parameter"><code>proxy_row</code></em> to be deleted
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy_row</code></em> :</span></p></td>
<td>A proxy row number</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-proxy-undelete"></a><h3>gda_data_proxy_undelete ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gda_data_proxy_undelete (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> proxy_row</code></em>);</pre>
<p>
Remove the "to be deleted" mark at the row <em class="parameter"><code>proxy_row</code></em>, if it existed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy_row</code></em> :</span></p></td>
<td>A proxy row number</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-proxy-row-is-deleted"></a><h3>gda_data_proxy_row_is_deleted ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gda_data_proxy_row_is_deleted (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> proxy_row</code></em>);</pre>
<p>
Tells if the row number <em class="parameter"><code>proxy_row</code></em> is marked to be deleted.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy_row</code></em> :</span></p></td>
<td>A proxy row number</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>TRUE if the row is marked to be deleted</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-proxy-row-is-inserted"></a><h3>gda_data_proxy_row_is_inserted ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gda_data_proxy_row_is_inserted (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> proxy_row</code></em>);</pre>
<p>
Tells if the row number <em class="parameter"><code>proxy_row</code></em> is a row which has been inserted in <em class="parameter"><code>proxy</code></em>
(and is thus not in the proxied data model).
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy_row</code></em> :</span></p></td>
<td>A proxy row number</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>TRUE if the row is an inserted row</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-proxy-cancel-row-changes"></a><h3>gda_data_proxy_cancel_row_changes ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gda_data_proxy_cancel_row_changes (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> proxy_row</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> col</code></em>);</pre>
<p>
Resets data at the corresponding row and column. If <em class="parameter"><code>proxy_row</code></em> corresponds to a new row, then
that new row is deleted from <em class="parameter"><code>proxy</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>proxy</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy_row</code></em> :</span></p></td>
<td>the row to cancel changes</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>col</code></em> :</span></p></td>
<td>the column to cancel changes, or less than 0 to cancel any change on the <em class="parameter"><code>row</code></em> row</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-proxy-apply-row-changes"></a><h3>gda_data_proxy_apply_row_changes ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gda_data_proxy_apply_row_changes (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> proxy_row</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Commits the modified data in the proxy back into the <a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</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>proxy</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy_row</code></em> :</span></p></td>
<td>the row number to commit</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>place to store the error, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>TRUE if no error occurred.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-proxy-has-changed"></a><h3>gda_data_proxy_has_changed ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gda_data_proxy_has_changed (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>);</pre>
<p>
Tells if <em class="parameter"><code>proxy</code></em> contains any modifications not applied to the proxied data model.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>TRUE if there are some modifications in <em class="parameter"><code>proxy</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-proxy-row-has-changed"></a><h3>gda_data_proxy_row_has_changed ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gda_data_proxy_row_has_changed (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> proxy_row</code></em>);</pre>
<p>
Tells if the row number <em class="parameter"><code>proxy_row</code></em> has changed
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy_row</code></em> :</span></p></td>
<td>A proxy row number</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>TRUE if the row has changed</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-proxy-get-n-new-rows"></a><h3>gda_data_proxy_get_n_new_rows ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> gda_data_proxy_get_n_new_rows (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>);</pre>
<p>
Get the number of rows which have been added to <em class="parameter"><code>proxy</code></em> and which are not part of
the proxied data model.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the number of new rows</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-proxy-set-sample-size"></a><h3>gda_data_proxy_set_sample_size ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gda_data_proxy_set_sample_size (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> sample_size</code></em>);</pre>
<p>
Sets the size of each chunk of data to display: the maximum number of rows which
can be "displayed" at a time (the maximum number of rows which <em class="parameter"><code>proxy</code></em> pretends to have).
The default value is arbitrary 300 as it is big enough to
be able to display quite a lot of data, but small enough to avoid too much data
displayed at the same time.
</p>
<p>
Note: the rows which have been added but not yet committed will always be displayed
regardless of the current chunk of data, and the modified rows which are not visible
when the displayed chunk of data changes are still held as modified rows.
</p>
<p>
To remove the chunking of the data to display, simply pass <em class="parameter"><code>sample_size</code></em> the <code class="literal">0</code> value.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>sample_size</code></em> :</span></p></td>
<td>the requested size of a chunk, or 0</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-proxy-get-sample-size"></a><h3>gda_data_proxy_get_sample_size ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> gda_data_proxy_get_sample_size (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>);</pre>
<p>
Get the size of each chunk of data displayed at a time.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the chunk (or sample) size, or 0 if chunking is disabled.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-proxy-set-sample-start"></a><h3>gda_data_proxy_set_sample_start ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gda_data_proxy_set_sample_start (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> sample_start</code></em>);</pre>
<p>
Sets the number of the first row to be available in <em class="parameter"><code>proxy</code></em> (in reference to the proxied data model)
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>sample_start</code></em> :</span></p></td>
<td>the number of the first row to be displayed</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-proxy-get-sample-start"></a><h3>gda_data_proxy_get_sample_start ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> gda_data_proxy_get_sample_start (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>);</pre>
<p>
Get the number of the first row to be available in <em class="parameter"><code>proxy</code></em> (in reference to the proxied data model)
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the number of the first proxied model's row.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-proxy-get-sample-end"></a><h3>gda_data_proxy_get_sample_end ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> gda_data_proxy_get_sample_end (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>);</pre>
<p>
Get the number of the last row to be available in <em class="parameter"><code>proxy</code></em> (in reference to the proxied data model)
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the number of the last proxied model's row.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-proxy-apply-all-changes"></a><h3>gda_data_proxy_apply_all_changes ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gda_data_proxy_apply_all_changes (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Apply all the changes stored in the proxy to the proxied data model. The changes are done row
after row, and if an error
occurs, then it is possible that not all the changes to all the rows have been applied.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>a place to store errors, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>TRUE if no error occurred</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-proxy-cancel-all-changes"></a><h3>gda_data_proxy_cancel_all_changes ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gda_data_proxy_cancel_all_changes (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>);</pre>
<p>
Cancel all the changes stored in the proxy (the <em class="parameter"><code>proxy</code></em> will be reset to its state
as it was just after creation).
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>TRUE if no error occurred</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-proxy-set-filter-expr"></a><h3>gda_data_proxy_set_filter_expr ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gda_data_proxy_set_filter_expr (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *filter_expr</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Sets a filter among the rows presented by <em class="parameter"><code>proxy</code></em>. The filter is defined by a filter expression
which can be any SQL valid expression using <em class="parameter"><code>proxy</code></em>'s columns. For instance if <em class="parameter"><code>proxy</code></em> has the "id" and
"name" columns, then a filter can be "length(name) < 5" to filter only the rows where the length of the
name is strictly inferior to 5, or "id >= 1000 and id < 2000 order by name limit 50" to filter only the rows where the id
is between 1000 and 2000, ordered by name and limited to 50 rows.
</p>
<p>
Note about column names: real column names can be used (double quoted if necessary), but columns can also be named
"_<column number>" with column numbers starting at 1.
</p>
<p>
Note that any previous filter expression is replaced with the new <em class="parameter"><code>filter_expr</code></em> if no error occurs
(if an error occurs, then any previous filter is left unchanged).
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filter_expr</code></em> :</span></p></td>
<td>an SQL based expression which will filter the contents of <em class="parameter"><code>proxy</code></em>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to remove any previous filter</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>a place to store errors, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>TRUE if no error occurred</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-proxy-get-filter-expr"></a><h3>gda_data_proxy_get_filter_expr ()</h3>
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gda_data_proxy_get_filter_expr (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>);</pre>
<p>
Get the current filter expression used by <em class="parameter"><code>proxy</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>proxy</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the current filter expression or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no filter has been set</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-proxy-get-filtered-n-rows"></a><h3>gda_data_proxy_get_filtered_n_rows ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> gda_data_proxy_get_filtered_n_rows (<em class="parameter"><code><a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy</code></em>);</pre>
<p>
Get the total number of filtered rows in <em class="parameter"><code>proxy</code></em> if a filter has been applied. As new rows
(rows added to the proxy and not yet added to the proxied data model) and rows to remove
(rows marked for removal but not yet removed from the proxied data model) are also filtered,
the returned number also contains references to new rows and rows to be removed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>a <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the number of filtered rows in <em class="parameter"><code>proxy</code></em>, or -1 if no filter has been applied</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="GdaDataProxy.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="GdaDataProxy--defer-sync"></a><h3>The <code class="literal">"defer-sync"</code> property</h3>
<pre class="programlisting"> "defer-sync" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre>
<p>Tells if changes to the sample of rows displayed is done in background in several steps or if it's done in one step.</p>
<p>Default value: TRUE</p>
</div>
<hr>
<div class="refsect2">
<a name="GdaDataProxy--model"></a><h3>The <code class="literal">"model"</code> property</h3>
<pre class="programlisting"> "model" <a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a>* : Read / Write / Construct</pre>
<p>Proxied data model.</p>
</div>
<hr>
<div class="refsect2">
<a name="GdaDataProxy--prepend-null-entry"></a><h3>The <code class="literal">"prepend-null-entry"</code> property</h3>
<pre class="programlisting"> "prepend-null-entry" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre>
<p>Tells if a row composed of NULL values is inserted as the proxy's first row.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2">
<a name="GdaDataProxy--sample-size"></a><h3>The <code class="literal">"sample-size"</code> property</h3>
<pre class="programlisting"> "sample-size" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write / Construct</pre>
<p>Number of rows which the proxy will contain at any time, like a sliding window on the proxied data model.</p>
<p>Allowed values: [0,2147483646]</p>
<p>Default value: 300</p>
</div>
</div>
<div class="refsect1">
<a name="GdaDataProxy.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2">
<a name="GdaDataProxy-filter-changed"></a><h3>The <code class="literal">"filter-changed"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy,
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a></pre>
<p>
Gets emitted when <em class="parameter"><code>proxy</code></em>'s filter has been changed
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>the <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</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="GdaDataProxy-row-changes-applied"></a><h3>The <code class="literal">"row-changes-applied"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy,
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> row,
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> proxied_row,
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a></pre>
<p>
Gets emitted when <em class="parameter"><code>proxy</code></em> has committed a row change to the proxied data model.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>the <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>row</code></em> :</span></p></td>
<td>the proxy's row</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxied_row</code></em> :</span></p></td>
<td>the proxied data model's row</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="GdaDataProxy-row-delete-changed"></a><h3>The <code class="literal">"row-delete-changed"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy,
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> row,
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> to_be_deleted,
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a></pre>
<p>
Gets emitted whenever a row has been marked to be deleted, or has been unmarked to be deleted
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>the <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>row</code></em> :</span></p></td>
<td>the concerned <em class="parameter"><code>proxy</code></em>'s row</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>to_be_deleted</code></em> :</span></p></td>
<td>tells if the <em class="parameter"><code>row</code></em> is marked to be deleted</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="GdaDataProxy-sample-changed"></a><h3>The <code class="literal">"sample-changed"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy,
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> sample_start,
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> sample_end,
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a></pre>
<p>
Gets emitted whenever <em class="parameter"><code>proxy</code></em>'s sample size has been changed. <em class="parameter"><code>sample_start</code></em> and <em class="parameter"><code>sample_end</code></em> are
in reference to the proxied data model.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>the <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>sample_start</code></em> :</span></p></td>
<td>the first row of the sample</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>sample_end</code></em> :</span></p></td>
<td>the last row of the sample</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="GdaDataProxy-sample-size-changed"></a><h3>The <code class="literal">"sample-size-changed"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy,
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> sample_size,
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a></pre>
<p>
Gets emitted whenever <em class="parameter"><code>proxy</code></em>'s sample size has been changed
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
<td>the <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>sample_size</code></em> :</span></p></td>
<td>the new sample size</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="GdaDataProxy-validate-row-changes"></a><h3>The <code class="literal">"validate-row-changes"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">GdaError</span>* user_function (<a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a> *proxy,
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> row,
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> proxied_row,
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
<p>
Gets emitted when <em class="parameter"><code>proxy</code></em> is about to commit a row change to the proxied data model. If any
callback returns a non <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> value, then the change commit fails with the returned <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</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>proxy</code></em> :</span></p></td>
<td>the <a class="link" href="GdaDataProxy.html" title="GdaDataProxy"><span class="type">GdaDataProxy</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>row</code></em> :</span></p></td>
<td>the proxy's row</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>proxied_row</code></em> :</span></p></td>
<td>the proxied data model's row</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>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> if validation failed, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.17</div>
</body>
</html>
|