67 HbIcon icon() const; |
67 HbIcon icon() const; |
68 |
68 |
69 void setProgressDialogType(HbProgressDialog::ProgressDialogType type ); |
69 void setProgressDialogType(HbProgressDialog::ProgressDialogType type ); |
70 HbProgressDialog::ProgressDialogType progressDialogType() const; |
70 HbProgressDialog::ProgressDialogType progressDialogType() const; |
71 |
71 |
|
72 QGraphicsItem *primitive(const QString &itemName) const; |
|
73 |
72 enum { Type = Hb::ItemType_ProgressDialog }; |
74 enum { Type = Hb::ItemType_ProgressDialog }; |
73 int type() const { return Type; } |
75 int type() const { return Type; } |
74 |
|
75 QGraphicsItem* primitive(HbStyle::Primitive primitive) const; |
|
76 |
76 |
77 signals: |
77 signals: |
78 void cancelled(); |
78 void cancelled(); |
79 |
79 |
80 public slots: |
80 public slots: |
81 void cancel(); |
81 void cancel(); |
82 void setProgressValue(int progressValue); |
82 void setProgressValue(int progressValue); |
83 void setMinimum(int min); |
83 void setMinimum(int min); |
84 void setMaximum(int max); |
84 void setMaximum(int max); |
85 void delayedShow(); |
85 void delayedShow(); |
|
86 void updatePrimitives(); |
|
87 void recreatePrimitives(); |
86 |
88 |
87 protected: |
89 protected: |
88 void initStyleOption(HbStyleOptionProgressDialog *option) const; |
90 void initStyleOption(HbStyleOptionProgressDialog *option) const; |
89 void showEvent(QShowEvent *event); |
91 void showEvent(QShowEvent *event); |
90 void closeEvent(QCloseEvent *event); |
92 void closeEvent(QCloseEvent *event); |
|
93 void initPrimitiveData(HbStylePrimitiveData *primitiveData, const QGraphicsObject *primitive); |
91 |
94 |
92 private: |
95 private: |
93 Q_DECLARE_PRIVATE_D(d_ptr, HbProgressDialog) |
96 Q_DECLARE_PRIVATE_D(d_ptr, HbProgressDialog) |
94 Q_DISABLE_COPY(HbProgressDialog) |
97 Q_DISABLE_COPY(HbProgressDialog) |
95 Q_PRIVATE_SLOT(d_func(), void _q_finished()) |
98 Q_PRIVATE_SLOT(d_func(), void _q_finished()) |