28 class CntContactCardDataItem: public QObject |
28 class CntContactCardDataItem: public QObject |
29 { |
29 { |
30 Q_OBJECT |
30 Q_OBJECT |
31 |
31 |
32 public: |
32 public: |
|
33 |
|
34 enum CntContactCardPosition |
|
35 { |
|
36 EInternalServices = 0, |
|
37 ECallMobile = 100, |
|
38 ECallMobileSendMessage, |
|
39 ECallMobileHome, |
|
40 ECallMobileHomeSendMessage, |
|
41 ECallMobileWork, |
|
42 ECallMobileWorkSendMessage, |
|
43 ECallPhone, |
|
44 ECallPhoneHome, |
|
45 ECallPhoneWork, |
|
46 ECallFax, |
|
47 ECallFaxHome, |
|
48 ECallFaxWork, |
|
49 ECallPager, |
|
50 ECallAssistant, |
|
51 ECallCar, |
|
52 EEmail, |
|
53 EEmailHome, |
|
54 EEmailWork, |
|
55 EUrl, |
|
56 EUrlHome, |
|
57 EUrlWork, |
|
58 ECallDynamic, |
|
59 ECallDynamicHome, |
|
60 ECallDynamicWork, |
|
61 EEmailDynamic, |
|
62 EEmailDynamicHome, |
|
63 EEmailDynamicWork, |
|
64 EUrlDynamic, |
|
65 EUrlDynamicHome, |
|
66 EUrlDynamicWork, |
|
67 EInternetDynamic, |
|
68 EInternetDynamicHome, |
|
69 EInternetDynamicWork, |
|
70 EAddressDynamic, |
|
71 EAddressDynamicHome, |
|
72 EAddressDynamicWork, |
|
73 EDynamic, |
|
74 EGenericDynamic, |
|
75 ELastAction = 200, |
|
76 ELastActionHome, |
|
77 ELastActionWork, |
|
78 EExternalServices = 250, |
|
79 ESeparator = 300, |
|
80 EInternetTelephone, |
|
81 EInternetTelephoneHome, |
|
82 EInternetTelephoneWork, |
|
83 ESip, |
|
84 EAddress, |
|
85 EAddressHome, |
|
86 EAddressWork, |
|
87 ECompanyDetails, |
|
88 EBirthday, |
|
89 EAnniversary, |
|
90 ERingtone, |
|
91 ENote, |
|
92 ESpouse, |
|
93 EChildren, |
|
94 EOther = 400 |
|
95 }; |
|
96 |
|
97 public: |
33 CntContactCardDataItem(const QString& aTitle, int aPosition, bool aIsFocusable); |
98 CntContactCardDataItem(const QString& aTitle, int aPosition, bool aIsFocusable); |
34 virtual ~CntContactCardDataItem(); |
99 virtual ~CntContactCardDataItem(); |
35 |
100 |
36 public: |
101 public: |
37 void setTitleText(const QString& aTitle); |
102 void setTitleText(const QString& aTitle); |
38 void setValueText(const QString& aValueText, Qt::TextElideMode aValueTextElideMode = Qt::ElideRight); |
103 void setValueText(const QString& aValueText, Qt::TextElideMode aValueTextElideMode = Qt::ElideRight); |
39 void setIcon(HbIcon aIcon); |
104 void setIcon(HbIcon aIcon); |
40 void setSecondaryIcon(HbIcon aSecondaryIcon); |
105 void setSecondaryIcon(HbIcon aSecondaryIcon); |
41 void setAction(const QString& aAction); |
106 void setAction(const QString& aAction); |
42 void setContactDetail(QContactDetail aDetail); |
107 void setContactDetail(QContactDetail aDetail); |
|
108 void setActionDescriptor(const QContactActionDescriptor& aActionDescriptor); |
|
109 void setLongPressText(const QString& aLongPressText); |
43 |
110 |
44 public: |
111 public: |
45 QString titleText() { return mTitle; } |
112 QString titleText() { return mTitle; } |
46 QString valueText() { return mValueText; } |
113 QString valueText() { return mValueText; } |
47 HbIcon icon() { return mIcon; } |
114 HbIcon icon() { return mIcon; } |
48 HbIcon secondaryIcon() { return mSecondaryIcon; } |
115 HbIcon secondaryIcon() { return mSecondaryIcon; } |
49 QString action() { return mAction; } |
116 QString action() { return mAction; } |
50 QContactDetail detail() { return mDetail; } |
117 QContactDetail detail() { return mDetail; } |
51 Qt::TextElideMode elideMode() { return mValueTextElideMode; } |
118 Qt::TextElideMode elideMode() { return mValueTextElideMode; } |
52 bool isFocusable() { return mIsFocusable; } |
119 bool isFocusable() { return mIsFocusable; } |
|
120 QContactActionDescriptor actionDescriptor() { return mActionDescriptor; } |
|
121 QString longPressText() { return mLongPressText; } |
53 int position() { return mPosition; } |
122 int position() { return mPosition; } |
54 |
123 |
55 private: |
124 private: |
56 HbIcon mIcon; |
125 HbIcon mIcon; |
57 HbIcon mSecondaryIcon; |
126 HbIcon mSecondaryIcon; |
58 QString mTitle; |
127 QString mTitle; |
59 QString mValueText; |
128 QString mValueText; |
60 QString mAction; |
129 QString mAction; |
61 QContactDetail mDetail; |
130 QContactDetail mDetail; |
62 Qt::TextElideMode mValueTextElideMode; |
131 Qt::TextElideMode mValueTextElideMode; |
63 bool mIsFocusable; |
132 bool mIsFocusable; |
|
133 QContactActionDescriptor mActionDescriptor; |
|
134 QString mLongPressText; |
64 |
135 |
65 public: |
136 public: |
66 int mPosition; |
137 int mPosition; |
67 }; |
138 }; |
68 |
139 |
69 #endif /* CNTCONTACTCARDDATAITEM_H */ |
140 #endif /* CNTCONTACTCARDDATAITEM_H */ |