equal
deleted
inserted
replaced
31 public: |
31 public: |
32 HbInputDialog(QGraphicsItem *parent= 0); |
32 HbInputDialog(QGraphicsItem *parent= 0); |
33 ~HbInputDialog(); |
33 ~HbInputDialog(); |
34 |
34 |
35 /** |
35 /** |
36 * Returns string in parameter text if mGetTextReturnValue is null QString. |
36 * Create new HbMessageBox and call emitDialogFinished after this one to finish the sequence. |
37 */ |
37 */ |
38 /* |
38 void open( QObject* receiver = 0, const char* member = 0 ); |
39 static QString getText(const QString &label,const QString &text = QString(), |
|
40 bool *ok = 0, QGraphicsScene *scene = 0, QGraphicsItem *parent = 0);*/ |
|
41 |
39 |
42 /** |
40 /** |
43 * Create new HbInputDialog after call to this and call emitDialogFinished to finish the sequence. |
41 * Create new HbInputDialog after call to this and call emitDialogFinished to finish the sequence. |
44 */ |
42 */ |
45 void getText(const QString &heading |
43 void getText(const QString &heading |
50 ,QGraphicsItem *parent=0); |
48 ,QGraphicsItem *parent=0); |
51 |
49 |
52 void emitDialogFinished( QObject* receiver, const char* member, int actionNum ); |
50 void emitDialogFinished( QObject* receiver, const char* member, int actionNum ); |
53 |
51 |
54 void setAttribute(int attribute); |
52 void setAttribute(int attribute); |
|
53 |
|
54 void setPromptText(const QString &text, int row = 0); |
|
55 |
|
56 void setValue(const QVariant &value, int row = 0); |
55 |
57 |
56 QList<HbAction*> actions() const |
58 QList<HbAction*> actions() const |
57 { |
59 { |
58 return mActions; |
60 return mActions; |
59 } |
61 } |
66 |
68 |
67 public: |
69 public: |
68 |
70 |
69 QList<HbAction*> mActions; |
71 QList<HbAction*> mActions; |
70 |
72 |
|
73 QList<QString> mSetPromptTexts; |
|
74 QList<QVariant> mSetValues; |
|
75 |
71 static QString mLastHeading; |
76 static QString mLastHeading; |
72 static QString mLastText; |
77 static QString mLastText; |
73 static int mGetTextCallCount; |
78 static int mGetTextCallCount; |
74 static int mAttribute; |
79 static int mAttribute; |
|
80 static int mOpenCallCount; |
75 |
81 |
76 static QVariant mValueReturnValue; |
82 static QVariant mValueReturnValue; |
77 static int mValueCallCount; |
83 static int mValueCallCount; |
78 }; |
84 }; |
79 |
85 |