--- a/videocollection/videocollectionview/tsrc/testlistview/inc/testlistview.h Thu Apr 01 23:32:44 2010 +0300
+++ b/videocollection/videocollectionview/tsrc/testlistview/inc/testlistview.h Fri Apr 16 18:13:14 2010 +0300
@@ -22,6 +22,7 @@
// INCLUDES
#include <QtTest/QtTest>
#include "hbmessagebox.h"
+#include "hbeffect.h"
class VideoListView;
class VideoSortFilterProxyModel;
@@ -46,7 +47,12 @@
/**
* Set row count in model.
*/
- void setRowCount(int count);
+ void setRowCount(int count, VideoSortFilterProxyModel *model = 0);
+
+ /**
+ * Check if action is visible.
+ */
+ bool isActionVisible(const char *name) const;
// Test functions for the test framework.
@@ -68,11 +74,6 @@
void testInitializeView();
/**
- * Tests creating menu of the view.
- */
- void testCreateListMenu();
-
- /**
* Tests menus.
*/
void testMenus();
@@ -86,7 +87,7 @@
* Tests activatView.
*/
void testActivateView();
-
+
/**
* Tests deactivateView.
*/
@@ -113,11 +114,6 @@
void testAboutToShowMainMenuSlot();
/**
- * Tests openSortByMenuSlot
- */
- void testOpenSortByMenuSlot();
-
- /**
* Tests handleStatusSlot.
*/
void testHandleStatusSlot();
@@ -161,20 +157,82 @@
* Tests showHint
*/
void testShowHint();
+
+ /**
+ * Tests titleReadySlot
+ */
+ void testTitleReadySlot();
+ /**
+ * Tests doDelayedsSlot
+ */
+ void testDoDelayedsSlot();
+
+ /**
+ * Tests openNewAlbumSlot
+ */
+ void testOpenNewAlbumSlot();
+
+ /**
+ * Tests aboutToChangeOrientationSlot
+ */
+ void testAboutToChangeOrientationSlot();
+
+ /**
+ * Tests orientationChangedSlot
+ */
+ void testOrientationChangedSlot();
+
+ /**
+ * Tests createCollectionSlot
+ */
+ void testCreateCollectionSlot();
+
+ /**
+ * Tests addVideosToCollectionSlot
+ */
+ void testAddVideosToCollectionSlot();
+
+ /**
+ * Tests removeVideosFromCollectionSlot
+ */
+ void testRemoveVideosFromCollectionSlot();
+
+ /**
+ * Tests finishCollectionOpenedSlot
+ */
+ void testFinishCollectionOpenedSlot();
+
+ /**
+ * Tests finishCollectionClosedSlot
+ */
+ void testFinishCollectionClosedSlot();
+
signals:
// Signals needed in tests.
void testSignal();
+
+ void testSignal2();
void testSignal(int);
+
+ void testSignal(const QString &);
void testLayoutChangedSignal();
- void testCollectionOpenedSignal(bool, const QString&);
+ void testCollectionOpenedSignal(bool, const QString&, const QModelIndex&);
void testStatusSignal(int, QVariant&);
+ void testObjectReadySignal(QObject*, const QString);
+
+ void testSignal(const QModelIndex &parent, int start, int end);
+
+ void testSignal(Qt::Orientation);
+
+ void testSignal(const HbEffect::EffectStatus &status);
+
private:
VideoCollectionUiLoader* mUiLoader;