inc/mpcollectiondatamodel.h
changeset 29 8192e5b5c935
parent 22 ecf06a08d4d9
child 37 eb79a7c355bf
--- a/inc/mpcollectiondatamodel.h	Fri May 14 15:49:53 2010 +0300
+++ b/inc/mpcollectiondatamodel.h	Thu May 27 12:49:57 2010 +0300
@@ -19,6 +19,7 @@
 #define MPCOLLECTIONDATAMODEL_H
 
 #include <QAbstractListModel>
+#include "mpmpxcollectionviewdefs.h"
 
 class MpMpxCollectionData;
 class MpCollectionAlbumArtManager;
@@ -32,7 +33,7 @@
 class MPDATA_EXPORT MpCollectionDataModel : public QAbstractListModel
 {
     Q_OBJECT
-
+   
 public:
 
     explicit MpCollectionDataModel( MpMpxCollectionData *data, QObject *parent=0 );
@@ -50,18 +51,23 @@
     MpMpxCollectionData *collectionData();
     
 signals:
+
     void orderChanged( int containerId, int itemId, int itemOrdinal, int newOrdinal );
+    void dataReloaded();
 
 public slots:
 
+    void setContext( TCollectionContext context );
     void updateAlbumArt( int index );
     void refreshModel();
+    void reloadData();
 
 private:
 
-    MpMpxCollectionData             *mCollectionData;
-	MpCollectionAlbumArtManager     *mAlbumArtManager;  // Own
+    MpMpxCollectionData             *mCollectionData;       // Not own
+    MpCollectionAlbumArtManager     *mAlbumArtManager;      // Own
     int                             mRowCount;
+    int                             mAlbumIndexOffset;
 
 };