equal
deleted
inserted
replaced
19 #include "cpbk2cmditemmycard.h" |
19 #include "cpbk2cmditemmycard.h" |
20 |
20 |
21 // Pbk2 |
21 // Pbk2 |
22 #include "CPbk2AddFavoritesVisibility.h" |
22 #include "CPbk2AddFavoritesVisibility.h" |
23 #include <Pbk2Commands.hrh> |
23 #include <Pbk2Commands.hrh> |
24 #include <pbk2exnameslistres.rsg> |
24 #include <Pbk2ExNamesListRes.rsg> |
25 #include <MPbk2AppUi.h> |
25 #include <MPbk2AppUi.h> |
26 #include <MPbk2ApplicationServices.h> |
26 #include <MPbk2ApplicationServices.h> |
27 #include "cpbk2mycard.h" |
27 #include "cpbk2mycard.h" |
28 #include "Pbk2NamesListEx.hrh" |
28 #include "Pbk2NamesListEx.hrh" |
29 #include <TPbk2IconId.h> |
29 #include <TPbk2IconId.h> |
116 return static_cast<MPbk2DoubleListboxCmdItemExtension*>( this ); |
116 return static_cast<MPbk2DoubleListboxCmdItemExtension*>( this ); |
117 } |
117 } |
118 return NULL; |
118 return NULL; |
119 } |
119 } |
120 |
120 |
121 void CPbk2CmdItemMyCard::MyCardEvent( MPbk2MyCardObserver::TMyCardStatusEvent /*aEvent*/ ) |
121 void CPbk2CmdItemMyCard::MyCardEvent( MPbk2MyCardObserver::TMyCardStatusEvent aEvent ) |
122 { |
122 { |
123 NotifyVisibiltyChange( IsEnabled() ); |
123 // always inform these |
124 } |
124 if( aEvent == EStateThumbnailLoaded || |
|
125 aEvent == EStateThumbnailNotFound ) |
|
126 { |
|
127 if( iObserver ) |
|
128 { |
|
129 iObserver->CmdItemVisibilityChanged( CommandId(), ETrue ); |
|
130 } |
|
131 } |
|
132 // status change |
|
133 else |
|
134 { |
|
135 NotifyVisibiltyChange( IsEnabled() ) ; |
|
136 } |
|
137 } |
125 |
138 |
126 void CPbk2CmdItemMyCard::FormatDataL( |
139 void CPbk2CmdItemMyCard::FormatDataL( |
127 MPbk2DoubleListboxDataElement& aDataElement ) |
140 MPbk2DoubleListboxDataElement& aDataElement ) |
128 { |
141 { |
129 HBufC* txt = NULL; |
142 HBufC* txt = NULL; |