NULL pointer dereference fix
Clang scan-build errors fixes
NULL ptr dereference fixed
scan-build fixes
lns scan-builb fix
scan-build fixes
CPage api cleanup
PageStorage class added
macro removed
Scanner skeleton support added

Squashed commit of the following:

commit fb0fb264143fb7ced5d2cb8c62a35f582a55d247
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Thu Jun 7 16:17:29 2012 +0600

    scanner preview added

commit f5020e955613dfaa2d49bf9e679cbc2a0e37c77d
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Thu Jun 7 12:26:19 2012 +0600

    Scanner fixes

commit 9b1399a72bb06866489456833276147c1a6f8721
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Wed Jun 6 15:04:33 2012 +0600

    DIB plugin fixes

commit e0fa42394a5db4c7ea34bfd7bcc09fb55df3dc29
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Wed Jun 6 12:21:55 2012 +0600

    DIB plugin skeleton added

commit c912e3729f1d8c1d7a4f0e14c2fc89c8a9d91c88
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Tue Jun 5 09:45:02 2012 +0400

    basic scan preview work

commit e37567b2af1ad4d46d8152a16177c243506e428e
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Mon Jun 4 19:17:51 2012 +0400

    scan and preview buttons added

commit 375ac5149d2a005f0618a9b9338942d82050e824
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Mon Jun 4 18:47:19 2012 +0400

    range fixes

commit 427500d0b1ea71088c55e2e41d73b458c1a70994
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Mon Jun 4 18:36:59 2012 +0400

    Values fix

commit 410ef6355bee163c8d4c638ab402c41ed9acaa90
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Mon Jun 4 18:15:49 2012 +0400

    widget creation

commit 8b67eacd3ab16254ad00f7f0316c984cfdd42f22
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Mon Jun 4 17:58:46 2012 +0400

    option fixes

commit cfc4b070ae7fda5da7120dd904daf27f6071494d
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Mon Jun 4 16:55:16 2012 +0400

    set options fixes

commit 76c3004951459152e1801bfbfdefe278cc3478f4
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Mon Jun 4 16:36:35 2012 +0400

    new class added

commit ba1375037f30dadec27a67629390dea02c11fcb7
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Mon Jun 4 14:47:34 2012 +0400

    Scanner options moved to separate class

commit 25d8df87870f186190a3b288e188ebb0e1d4be7d
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sun Jun 3 14:56:49 2012 +0400

    initial qt scan

commit e148e09a7147bc7be1787b63243afa83b671104a
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sun Jun 3 03:36:27 2012 +0400

    1bit gray image support added

commit 0d25f7ec431573802a95c89545e212d37d036b36
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sun Jun 3 02:33:38 2012 +0400

    fixes

commit 418e45c3987414e293105442f282fec060979b29
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sun Jun 3 00:00:38 2012 +0400

    new tests

commit 12d760044a86a31915aa708341677833d023fede
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sat Jun 2 23:38:57 2012 +0400

    more tests

commit 58d970681b84ee0f4677f002df0acd2cb1c7244d
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sat Jun 2 14:35:38 2012 +0400

    Test rdib skeleton added

commit 115bb7522cd741c74c7830d1073764432a953ea2
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sat Jun 2 14:28:33 2012 +0400

    test-image fixes

commit 5fa7bb314f2469703dd1e365ba632c554d83ef9b
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sat Jun 2 11:45:25 2012 +0400

    scanner resolution test added

commit e2a6123fc5ad2cc9e7a902bc7e1c68790f0c041c
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sat Jun 2 11:20:15 2012 +0400

    Hand scanner test added

commit 37b73d3882144711e9e5bbb73096fdb37cd1b7e9
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sat Jun 2 03:01:33 2012 +0400

    depth test added

commit db4e45c6fc29bb6f409a41aa6b4cde799de4c82e
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sat Jun 2 02:58:20 2012 +0400

    mode test added

commit aab51e652157157b61e813e6c4ca225595b59118
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Sat Jun 2 02:33:00 2012 +0400

    work on options

commit 2df600d12aa44d58600c85477cc428932a104e51
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Fri Jun 1 02:15:07 2012 +0400

    unit fixes

commit 8fbd409c903b83e0b82ccb72ecee37239ef315e2
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Thu May 31 02:00:40 2012 +0400

    setting options

commit e8446ae853f015fc3df197b5e8e5e5469c7e5753
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Thu May 31 01:23:45 2012 +0400

    sane set options work

commit c775ba1c950d9196c0b7aaaac1fe7509bf313d84
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Wed May 30 23:45:32 2012 +0400

    more scanner fixes

commit 52cc7786367df367b3602cc2d4c37d98a851fddd
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Wed May 30 23:03:49 2012 +0400

    SANE support improvements

commit 3503f39eb6b175c37301c103d44cac6e42ad0f5d
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Tue May 29 23:51:21 2012 +0400

    ScanOptions added

commit d36a29cc957906f6d783108102677a1530313335
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Tue May 29 20:58:09 2012 +0400

    even more tests added

commit 4b37e504a3c622e6fa89c55c578627254dfc2e9e
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Tue May 29 11:59:42 2012 +0400

    more tests added

commit ec560d3290cdff9476e2e7e3e3b61e285391e3d7
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Tue May 29 11:40:14 2012 +0400

    Tests added

commit b8a0cbb8ee997e4e9d2f2555077a691fece4f2d5
Author: Serge Poltavski <serge.poltavski@gmail.com>
Date:   Tue May 29 10:22:03 2012 +0400

    Scanner skeleton added