equal
deleted
inserted
replaced
21 #include "cntdetailviewitem.h" |
21 #include "cntdetailviewitem.h" |
22 #include <hbinputeditorinterface.h> |
22 #include <hbinputeditorinterface.h> |
23 |
23 |
24 class HbWidget; |
24 class HbWidget; |
25 class HbAbstractViewItem; |
25 class HbAbstractViewItem; |
26 class HbComboBox; |
26 class CntCommonDetailViewItem; |
27 class HbLineEdit; |
|
28 class CntDetailModelItem; |
27 class CntDetailModelItem; |
29 class QGraphicsLinearLayout; |
|
30 |
28 |
31 class CntPhoneNumberViewItem : public CntDetailViewItem |
29 class CntPhoneNumberViewItem : public CntDetailViewItem |
32 { |
30 { |
33 Q_OBJECT |
31 Q_OBJECT |
34 |
32 |
41 HbWidget* createCustomWidget(); |
39 HbWidget* createCustomWidget(); |
42 |
40 |
43 public slots: |
41 public slots: |
44 void indexChanged( int aIndex ); // HbComboBox index changed |
42 void indexChanged( int aIndex ); // HbComboBox index changed |
45 void textChanged( QString aText ); // HbLineEdit text changed |
43 void textChanged( QString aText ); // HbLineEdit text changed |
46 void changeOrientation(Qt::Orientation aOrient); |
44 |
47 |
|
48 private: |
45 private: |
49 void constructSubtypeModel( QString aSubType, QStringList aContext ); |
46 void constructSubtypeModel( QString aSubType, QStringList aContext ); |
50 void constructPhoneNumber(CntDetailModelItem* aItem, QString aSubType, QStringList aContext ); |
47 void constructPhoneNumber(CntDetailModelItem* aItem, QString aSubType, QStringList aContext ); |
51 void constructOnlineAccount( CntDetailModelItem* aItem, QString aSubType, QStringList aContext ); |
48 void constructOnlineAccount( CntDetailModelItem* aItem, QString aSubType, QStringList aContext ); |
52 |
49 |
53 #ifdef PBK_UNIT_TEST |
|
54 public: |
|
55 #else |
|
56 private: |
50 private: |
57 #endif |
51 CntCommonDetailViewItem* mItem; // Ownership transfered |
58 HbComboBox* mBox; |
52 |
59 HbLineEdit* mEdit; |
53 friend class T_NumberEditorTest; |
60 QGraphicsLinearLayout* mLayout; |
|
61 }; |
54 }; |
62 #endif /* CNTPHONENUMBERVIEWITEM_H_ */ |
55 #endif /* CNTPHONENUMBERVIEWITEM_H_ */ |