diff -r 2f8f8080a020 -r ebdbd102c78a phonesettings/cpphonesettingsplugins/barringplugin/inc/cpbarringplugingroup.h --- a/phonesettings/cpphonesettingsplugins/barringplugin/inc/cpbarringplugingroup.h Mon May 03 12:31:11 2010 +0300 +++ b/phonesettings/cpphonesettingsplugins/barringplugin/inc/cpbarringplugingroup.h Fri May 14 15:51:57 2010 +0300 @@ -25,8 +25,9 @@ class QModelIndex; class CpPhoneNotes; class QValidator; -class QTranslator; +class HbDataFormModel; + /*! \class CpBarringPluginGroup \brief The class CpBarringPluginGroup defines barring items shown on UI. @@ -36,6 +37,15 @@ Q_OBJECT public: + + // Change barring password operation phases + enum ChangeBarringPasswordPhase + { + NonePhase, + CurrentPasswordPhase, + NewPasswordPhase, + VerifyNewPasswordPhase + }; explicit CpBarringPluginGroup(CpItemDataHelper &helper); ~CpBarringPluginGroup(); @@ -46,7 +56,6 @@ private: - void setupLocalization(); void setupConnectionsToWrapper(); void createBarringItems(); @@ -92,10 +101,17 @@ void changeBarringPasswordRequested(bool checked = false); + void completeBarringStateChangeRequestHandling( + QString barringPassword, + bool okPressed); + + void changeBarringPasswordPhasesHandling( + QString barringPassword, + bool okPressed); + private: CpItemDataHelper &m_helper; - QScopedPointer m_translator; QScopedPointer m_pSetWrapper; PSetCallBarringWrapper *m_barringWrapper; CpSettingFormItemData *m_editBarringPasswordItem; @@ -105,6 +121,13 @@ CpPhoneNotes* m_phoneNotes; QValidator *m_barringPasswordValidator; bool m_delayedBarringActivationNote; + CpSettingFormItemData* m_clickedBarringItem; // Not own. + ChangeBarringPasswordPhase m_changeBarringPasswordPhase; + QString m_currentPassword; + QString m_newPassword; + QString m_newPasswordVerified; + QValidator* m_verifyPasswordValidator; // Own. + HbDataFormModel* m_model; }; #endif // CPBARRINGPLUGINGROUP_H