videocollection/videocollectionwrapper/tsrc/testvideosortfilterproxymodel/inc/testvideosortfilterproxymodel.h
changeset 36 8aed59de29f9
parent 35 3738fe97f027
child 50 21fe8338c6bf
equal deleted inserted replaced
35:3738fe97f027 36:8aed59de29f9
    19 #define __TESTVIDEOSORTFILTERPROXYMODEL_H__
    19 #define __TESTVIDEOSORTFILTERPROXYMODEL_H__
    20 
    20 
    21 
    21 
    22 // INCLUDES
    22 // INCLUDES
    23 #include <QtTest/QtTest>
    23 #include <QtTest/QtTest>
       
    24 #include <mpxitemid.h>
    24 
    25 
    25 class VideoListDataModel;
    26 class VideoListDataModel;
    26 class FilterProxyTester;
    27 class FilterProxyTester;
    27 class VideoCollectionClient;
    28 class VideoCollectionClient;
    28 class VideoSortFilterProxyModel;
    29 class VideoSortFilterProxyModel;
    32     Q_OBJECT
    33     Q_OBJECT
    33 
    34 
    34     // test functions for the test framework
    35     // test functions for the test framework
    35     
    36     
    36 signals:
    37 signals:
       
    38     
    37     /**
    39     /**
    38      * test signal
    40      * test signal
    39      */
    41      */
    40     void testSignal();
    42     void testSignal();
    41 
    43 
       
    44     /**
       
    45      * test signal
       
    46      */
       
    47     void testSignalMpxId(const TMPXItemId &id);
       
    48     
    42 private slots:
    49 private slots:
    43 
    50 
    44     /**
    51     /**
    45      * will be called before each testfunction is executed.
    52      * will be called before each testfunction is executed.
    46      *
    53      *
   110 
   117 
   111     /**
   118     /**
   112      * Test back with valid data.
   119      * Test back with valid data.
   113      */
   120      */
   114     void testBack();
   121     void testBack();
   115     
       
   116     /**
       
   117      * Test back when videocollectionclient is null.
       
   118      */
       
   119     void testBackClientNull();
       
   120 
   122 
   121     /**
   123     /**
   122      * Test fetchItemDetails with valid data.
   124      * Test fetchItemDetails with valid data.
   123      */
   125      */
   124     void testFetchItemDetails();
   126     void testFetchItemDetails();
   153     /**
   155     /**
   154      * Calls sure lessThan with VideoCollectionCommon::KeyDate setted on 
   156      * Calls sure lessThan with VideoCollectionCommon::KeyDate setted on 
   155      * tests that return values are correct for presetted items
   157      * tests that return values are correct for presetted items
   156      */
   158      */
   157     void testLessThanDateTime();
   159     void testLessThanDateTime();
       
   160     
       
   161     /**
       
   162      * Calls less than with media objects of combined default / user created 
       
   163      * collections
       
   164      */
       
   165     void testLessThanDefaults();
   158     
   166     
   159     /**
   167     /**
   160      * Calls sure lessThan with invalid role,
   168      * Calls sure lessThan with invalid role,
   161      * same indexes and for invalid data
   169      * same indexes and for invalid data
   162      * tests that return values are correct for presetted items
   170      * tests that return values are correct for presetted items
   168      * tests that sorting is done only once
   176      * tests that sorting is done only once
   169      */
   177      */
   170     void testDoSorting();
   178     void testDoSorting();
   171     
   179     
   172     /**
   180     /**
   173      * Calls filterAcceptsRow.
   181      * Calls filterAcceptsRow. using type EAllVideos for model
   174      * Tests that return values are correct with items with varying statuses. 
   182      * Tests that return values are correct with items with varying statuses.
   175      * 
   183      * 
   176      */
   184      */
   177     void testFilterAcceptsRow();
   185     void testFilterAcceptsRowVideos();
       
   186     
       
   187     /**
       
   188      * Calls filterAcceptsRow. using type differ than EAllVideos for model
       
   189      * Tests that return values are correct with items with varying statuses.
       
   190      * 
       
   191      */
       
   192     void testFilterAcceptsNoVideoTypes();
   178 
   193 
   179     /**
   194     /**
   180      * Test getMediaFilePathForId.
   195      * Test getMediaFilePathForId.
   181      */
   196      */
   182     void testGetMediaFilePathForId();
   197     void testGetMediaFilePathForId();
   229     /**
   244     /**
   230      * tests setGenericIdFilter
   245      * tests setGenericIdFilter
   231      */
   246      */
   232     void testSetGenericIdFilter();
   247     void testSetGenericIdFilter();
   233     
   248     
       
   249     /**
       
   250      * tests setAlbumInUse
       
   251      */
       
   252     void testSetAlbumInUse();
       
   253     
       
   254     /**
       
   255      * tests renameAlbum
       
   256      */
       
   257     void testRenameAlbum();
       
   258     
       
   259     /**
       
   260      * tests itemModifiedSlot
       
   261      */
       
   262     void testItemModifiedSlot();
       
   263     
   234 private:
   264 private:
   235     
   265     
   236     /**
   266     /**
   237      * stub videolist model
   267      * stub videolist model
   238      */
   268      */