videocollection/tsrc/stubs/src/hbinputdialog.cpp
changeset 39 f6d44a0cd476
parent 38 ff53afa8ad05
--- a/videocollection/tsrc/stubs/src/hbinputdialog.cpp	Fri May 14 15:14:51 2010 +0300
+++ b/videocollection/tsrc/stubs/src/hbinputdialog.cpp	Fri May 28 09:45:19 2010 +0300
@@ -24,6 +24,7 @@
 QString HbInputDialog::mLastText = "";
 QVariant HbInputDialog::mValueReturnValue = QVariant();
 int HbInputDialog::mValueCallCount = 0;
+int HbInputDialog::mOpenCallCount = 0;
 
 HbInputDialog::HbInputDialog(QGraphicsItem *parent) : HbWidget(parent) 
 {
@@ -43,6 +44,14 @@
     }
 }   
 
+void HbInputDialog::open( QObject* receiver, const char* member )
+{
+    Q_UNUSED(receiver);
+    Q_UNUSED(member);
+    
+    mOpenCallCount++;
+}
+
 void HbInputDialog::getText(const QString &heading
         ,QObject *receiver
         ,const char *member
@@ -74,3 +83,21 @@
     HbInputDialog::mAttribute = attribute;
 }
 
+void HbInputDialog::setPromptText(const QString &text, int row)
+{
+    while(mSetPromptTexts.count() < row+1)
+    {
+        mSetPromptTexts.append("");
+    }
+    mSetPromptTexts[row] = text;
+}
+
+void HbInputDialog::setValue(const QVariant &value, int row)
+{
+    while(mSetValues.count() < row+1)
+    {
+        mSetValues.append("");
+    }
+    mSetValues[row] = value;
+}
+