phonebookui/cnthistorymodel/tsrc/mt_cnthistorymodel/mt_cnthistorymodel.h
changeset 31 2a11b5b00470
parent 27 de1630741fbe
equal deleted inserted replaced
27:de1630741fbe 31:2a11b5b00470
    14 * Description: 
    14 * Description: 
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 #include <QObject>
    18 #include <QObject>
       
    19 #include <qtcontacts.h>
       
    20 
       
    21 QTM_USE_NAMESPACE
       
    22 
       
    23 class CntHistoryModel;
    19 
    24 
    20 class TestCntHistoryModel : public QObject
    25 class TestCntHistoryModel : public QObject
    21 {
    26 {
    22     Q_OBJECT
    27     Q_OBJECT
    23 
    28 
    24 private slots:
    29 private slots:
    25 	void initTestCase();
    30     void init();
    26 	void cleanupTestCase();
    31     void cleanup();
    27 	
    32 	
       
    33     void testLogsInsertions();
       
    34     void testLogsRemovals();
       
    35     void testLogsUpdates();
       
    36     void testMsgInsertions();
       
    37     void testMsgRemovals();
       
    38     void testMsgUpdates();
       
    39     void testReadLogEvent();
       
    40     void testReadMsgEvent();
    28 	void testRoles();
    41 	void testRoles();
    29 	void testSorting();
    42 	void testSorting();
    30 	void testClear();
    43 	void testClear();
    31 	void testMarkSeen();
    44 	void testMarkSeen();
       
    45 	
       
    46 private:
       
    47 	QContactManager* cm;
       
    48 	CntHistoryModel* model;
    32 };
    49 };