equal
deleted
inserted
replaced
17 |
17 |
18 |
18 |
19 |
19 |
20 // INCLUDE FILES |
20 // INCLUDE FILES |
21 #include "vimpstutilstextquerydialog.h" |
21 #include "vimpstutilstextquerydialog.h" |
|
22 #include "uiservicetabtracer.h" |
22 |
23 |
23 |
24 |
24 // ============================ MEMBER FUNCTIONS =============================== |
25 // ============================ MEMBER FUNCTIONS =============================== |
25 |
26 |
26 // ----------------------------------------------------------------------------- |
27 // ----------------------------------------------------------------------------- |
47 EXPORT_C CVIMPSTUtilsTextQueryDialog* CVIMPSTUtilsTextQueryDialog::NewL( TDes& aDataText, |
48 EXPORT_C CVIMPSTUtilsTextQueryDialog* CVIMPSTUtilsTextQueryDialog::NewL( TDes& aDataText, |
48 const TTone& aTone /*= ENoTone*/, |
49 const TTone& aTone /*= ENoTone*/, |
49 TBool aLeftSoftkeyAlwaysVisible /*= ETrue*/, |
50 TBool aLeftSoftkeyAlwaysVisible /*= ETrue*/, |
50 TBool aDomainSelectionQuery /*= EFalse*/ ) |
51 TBool aDomainSelectionQuery /*= EFalse*/ ) |
51 { |
52 { |
|
53 TRACER_AUTO; |
52 CVIMPSTUtilsTextQueryDialog* self = new( ELeave ) CVIMPSTUtilsTextQueryDialog( |
54 CVIMPSTUtilsTextQueryDialog* self = new( ELeave ) CVIMPSTUtilsTextQueryDialog( |
53 aDataText, aTone, |
55 aDataText, aTone, |
54 aLeftSoftkeyAlwaysVisible, |
56 aLeftSoftkeyAlwaysVisible, |
55 aDomainSelectionQuery ); |
57 aDomainSelectionQuery ); |
56 return self; |
58 return self; |
70 // (other items were commented in a header). |
72 // (other items were commented in a header). |
71 // ----------------------------------------------------------------------------- |
73 // ----------------------------------------------------------------------------- |
72 // |
74 // |
73 EXPORT_C void CVIMPSTUtilsTextQueryDialog::UpdateLeftSoftKeyL() |
75 EXPORT_C void CVIMPSTUtilsTextQueryDialog::UpdateLeftSoftKeyL() |
74 { |
76 { |
|
77 TRACER_AUTO; |
75 if ( iLeftSoftkeyAlwaysVisible ) |
78 if ( iLeftSoftkeyAlwaysVisible ) |
76 { |
79 { |
77 // do nothing so the left softkey is always visible |
80 // do nothing so the left softkey is always visible |
78 return; |
81 return; |
79 } |
82 } |
89 // ----------------------------------------------------------------------------- |
92 // ----------------------------------------------------------------------------- |
90 // |
93 // |
91 EXPORT_C TKeyResponse CVIMPSTUtilsTextQueryDialog::OfferKeyEventL( const TKeyEvent& aKeyEvent, |
94 EXPORT_C TKeyResponse CVIMPSTUtilsTextQueryDialog::OfferKeyEventL( const TKeyEvent& aKeyEvent, |
92 TEventCode aType ) |
95 TEventCode aType ) |
93 { |
96 { |
|
97 TRACER_AUTO; |
94 TInt oldLen = 0; |
98 TInt oldLen = 0; |
95 CEikEdwin* edwin = NULL; |
99 CEikEdwin* edwin = NULL; |
96 // If this is launched after domain selection query |
100 // If this is launched after domain selection query |
97 // check editor state |
101 // check editor state |
98 if ( iDomainSelectionQuery ) |
102 if ( iDomainSelectionQuery ) |
133 // (other items were commented in a header). |
137 // (other items were commented in a header). |
134 // ----------------------------------------------------------------------------- |
138 // ----------------------------------------------------------------------------- |
135 // |
139 // |
136 EXPORT_C TBool CVIMPSTUtilsTextQueryDialog::OkToExitL( TInt aButtonId ) |
140 EXPORT_C TBool CVIMPSTUtilsTextQueryDialog::OkToExitL( TInt aButtonId ) |
137 { |
141 { |
|
142 TRACER_AUTO; |
138 if ( aButtonId == EAknSoftkeyExit && iDomainSelectionQuery ) |
143 if ( aButtonId == EAknSoftkeyExit && iDomainSelectionQuery ) |
139 { |
144 { |
140 return ETrue; |
145 return ETrue; |
141 } |
146 } |
142 else |
147 else |