65 QGraphicsItem *primitive(HbStyle::Primitive primitive) const; |
65 QGraphicsItem *primitive(HbStyle::Primitive primitive) const; |
66 enum { Type = Hb::ItemType_MessageBox }; |
66 enum { Type = Hb::ItemType_MessageBox }; |
67 int type() const { return Type; } |
67 int type() const { return Type; } |
68 |
68 |
69 public: |
69 public: |
70 static bool launchQuestionMessageBox(const QString &questionText, |
|
71 const QString &primaryButtonText = tr("Yes"), |
|
72 const QString &secondaryButtonText = tr("No"), |
|
73 QGraphicsWidget *headWidget = 0, |
|
74 QGraphicsScene *scene = 0, |
|
75 QGraphicsItem *parent = 0 ); |
|
76 |
|
77 static void launchInformationMessageBox(const QString &informationText, |
|
78 QGraphicsWidget *headWidget = 0, |
|
79 QGraphicsScene *scene = 0, |
|
80 QGraphicsItem *parent = 0 ); |
|
81 |
|
82 static void launchWarningMessageBox(const QString &warningText, |
|
83 QGraphicsWidget *headWidget = 0, |
|
84 QGraphicsScene *scene = 0, |
|
85 QGraphicsItem *parent = 0 ); |
|
86 |
|
87 static bool question(const QString &questionText, |
70 static bool question(const QString &questionText, |
88 const QString &primaryButtonText = tr("Yes"), |
71 const QString &primaryButtonText = tr("Yes"), |
89 const QString &secondaryButtonText = tr("No"), |
72 const QString &secondaryButtonText = tr("No"), |
90 QGraphicsWidget *headWidget = 0, |
73 QGraphicsWidget *headWidget = 0, |
91 QGraphicsScene *scene = 0, |
74 QGraphicsScene *scene = 0, |