equal
deleted
inserted
replaced
51 |
51 |
52 int rowCount() const; |
52 int rowCount() const; |
53 QVariant data( const int row, const int role ) const; |
53 QVariant data( const int row, const int role ) const; |
54 |
54 |
55 void removeAll( bool removeTagged ); |
55 void removeAll( bool removeTagged ); |
|
56 |
|
57 void removeByModelIndices( QModelIndexList& indices, bool removeTags ); |
56 |
58 |
57 enum ViewMode{ ShowAll, ShowTagged }; |
59 enum ViewMode{ ShowAll, ShowTagged }; |
58 void setViewMode( ViewMode mode ); |
60 void setViewMode( ViewMode mode ); |
59 |
61 |
60 void toggleTagging( const RadioHistoryItem& item, const int row ); |
62 void toggleTagging( const RadioHistoryItem& item, const int row ); |
65 |
67 |
66 void refreshModel(); |
68 void refreshModel(); |
67 QSqlQuery beginTransaction(); |
69 QSqlQuery beginTransaction(); |
68 enum Operation{ NoOp, InsertRows, RemoveRows, ChangeData }; |
70 enum Operation{ NoOp, InsertRows, RemoveRows, ChangeData }; |
69 void commitTransaction( QSqlQuery& query, Operation operation, int start, int end = -1 ); |
71 void commitTransaction( QSqlQuery& query, Operation operation, int start, int end = -1 ); |
|
72 bool prepareAndExec( QSqlQuery& query, const QString& sqlStr ); |
70 |
73 |
71 public: // data |
74 public: // data |
72 |
75 |
73 /** |
76 /** |
74 * Pointer to the public class |
77 * Pointer to the public class |