--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mpviewplugins/mpcollectionviewplugin/inc/mpcollectioncontainer.h Tue Aug 31 15:12:29 2010 +0300
@@ -0,0 +1,76 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Music Player collection view base container definition.
+*
+*/
+
+#ifndef MPCOLLECTIONCONTAINER_H
+#define MPCOLLECTIONCONTAINER_H
+
+
+#include <QObject>
+
+#include <hbwidget.h>
+#include <hbeffect.h>
+
+#include "mpmpxcollectionviewdefs.h"
+#include "mpcommondefs.h"
+
+class HbDocumentLoader;
+class MpCollectionDataModel;
+class MpMpxCollectionData;
+class HbGroupBox;
+
+class MpCollectionContainer : public HbWidget
+{
+ Q_OBJECT
+
+public:
+
+ virtual ~MpCollectionContainer();
+
+ virtual void initialize() = 0;
+ virtual void setDataModel( MpCollectionDataModel *dataModel );
+ void setViewMode( MpCommon::MpViewMode viewMode );
+
+signals:
+
+ void itemActivated( int index );
+ void itemLongPressed( int index, const QPointF &coords );
+ void findAlbumSongs( int index );
+ void playAlbumSongs( int albumIndex, int songIndex );
+ void shuffleEnabled( bool enabled );
+
+public slots:
+
+ virtual void dataReloaded() = 0;
+
+protected:
+
+ explicit MpCollectionContainer( HbDocumentLoader *loader, QGraphicsItem *parent=0 );
+ virtual void setupContainer() = 0;
+
+protected:
+
+ HbGroupBox *mInfoBar;
+ HbDocumentLoader *mDocumentLoader; // Not own
+ MpCollectionDataModel *mDataModel; // Not own
+ MpMpxCollectionData *mCollectionData; // Not own
+ TCollectionContext mCollectionContext;
+ MpCommon::MpViewMode mViewMode;
+
+};
+
+#endif // MPCOLLECTIONCONTAINER_H
+