emailuis/emailui/inc/ncsheadercontainer.h
changeset 2 5253a20d2a1e
parent 0 8466d47a6819
child 3 a4d6f1ea0416
equal deleted inserted replaced
1:12c456ceeff2 2:5253a20d2a1e
    18 
    18 
    19 
    19 
    20 #ifndef __NCSEMAILHEADERUI_H__
    20 #ifndef __NCSEMAILHEADERUI_H__
    21 #define __NCSEMAILHEADERUI_H__
    21 #define __NCSEMAILHEADERUI_H__
    22 
    22 
    23 //<cmail>
       
    24 #include <aknlongtapdetector.h>
    23 #include <aknlongtapdetector.h>
    25 //</cmail>
    24 
    26 
       
    27 //<cmail>
       
    28 #include "cpbkxremotecontactlookupenv.h"
    25 #include "cpbkxremotecontactlookupenv.h"
    29 #include "cpbkxremotecontactlookupserviceuicontext.h"
    26 #include "cpbkxremotecontactlookupserviceuicontext.h"
    30 //</cmail>
       
    31 
    27 
    32 #include "FreestyleEmailUi.hrh"
    28 #include "FreestyleEmailUi.hrh"
    33 #include "ncsaddressinputfield.h"
    29 #include "ncsaddressinputfield.h"
    34 #include "ncsfieldsizeobserver.h"
    30 #include "ncsfieldsizeobserver.h"
    35 #include "ncsconstants.h"
    31 #include "ncsconstants.h"
   222 	
   218 	
   223 	void SetSubjectL( const TDesC& aSubject );
   219 	void SetSubjectL( const TDesC& aSubject );
   224 	
   220 	
   225 	void SetMenuBar( CEikButtonGroupContainer* aMenuBar );
   221 	void SetMenuBar( CEikButtonGroupContainer* aMenuBar );
   226 	
   222 	
   227 	void SetAttachmentLabelTextL( const TDesC& aText );
   223     void SetAttachmentLabelTextsLD( CDesCArray* aAttachmentNames, 
   228     void SetAttachmentLabelTextL( const TDesC& aAttachmentName, const TDesC& aAttachmentSizeDesc );
   224                                     CDesCArray* aAttachmentSizes );
   229 
   225     TInt FocusedAttachmentLabelIndex();
   230     void ShowAttachmentLabelL();
   226     void ShowAttachmentLabelL();
   231 	void HideAttachmentLabel();
   227 	void HideAttachmentLabel();
   232 
   228 
   233 	void SetCcFieldVisibleL( 
   229 	void SetCcFieldVisibleL( 
   234         TBool aVisible, 
   230         TBool aVisible, 
   243 	void FixSemicolonInAddressFieldsL();
   239 	void FixSemicolonInAddressFieldsL();
   244 
   240 
   245 	TBool IsBccFieldVisible() const;
   241 	TBool IsBccFieldVisible() const;
   246 
   242 
   247 	TBool IsCcFieldVisible() const;
   243 	TBool IsCcFieldVisible() const;
   248 
       
   249 // <cmail> Removed unneeded IsFocusAif
       
   250 // </cmail>
       
   251 
   244 
   252 	TBool IsFocusAttachments() const;
   245 	TBool IsFocusAttachments() const;
   253 
   246 
   254 	TBool IsFocusTo() const;
   247 	TBool IsFocusTo() const;
   255 
   248 
   284 		const CCoeControlArray *aArray,
   277 		const CCoeControlArray *aArray,
   285 		CCoeControl *aControl,
   278 		CCoeControl *aControl,
   286 		TInt aControlId );
   279 		TInt aControlId );
   287 
   280 
   288 	//Set Middlesoftkey
   281 	//Set Middlesoftkey
   289 	//void CNcsHeaderContainer::SetMsk();
       
   290 	void SetMskL();
   282 	void SetMskL();
   291 	
   283 	
   292 	//<cmail>
       
   293 	void HandlePointerEventL( const TPointerEvent& aPointerEvent );
   284 	void HandlePointerEventL( const TPointerEvent& aPointerEvent );
   294 	
   285 	
   295 	void OpenPhonebookL();
   286 	void OpenPhonebookL();
   296 	
   287 	
   297 	void HandleLongTapL( const TPoint& aPenEventLocation );
   288 	void HandleLongTap( const TPoint& aPenEventLocation, 
       
   289 						 const TPoint& aPenEventScreenLocation );
   298 
   290 
   299     TBool NeedsLongTapL( const TPoint& aPenEventLocation );
   291     TBool NeedsLongTapL( const TPoint& aPenEventLocation );
   300 	//</cmail>
       
   301 	
   292 	
   302 	// Process a key event
   293 	// Process a key event
   303 	TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType );
   294 	TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType );
   304 
   295 
   305 	// Delete the selected address from the current AIF
   296 	// Delete the selected address from the current AIF
   341 
   332 
   342     TBool IsSubjectFieldEmpty() const;
   333     TBool IsSubjectFieldEmpty() const;
   343 
   334 
   344     void HandleDynamicVariantSwitchL();
   335     void HandleDynamicVariantSwitchL();
   345 
   336 
   346     //<cmail>
       
   347     // sets up iSwitchChangeMskOff falg 
   337     // sets up iSwitchChangeMskOff falg 
   348     void SwitchChangeMskOff(TBool aTag);
   338     void SwitchChangeMskOff(TBool aTag);
   349     // </cmail>     
   339     
   350     
       
   351     // <cmail> Platform layout change    
       
   352     virtual TInt LayoutLineCount() const;
   340     virtual TInt LayoutLineCount() const;
   353     // </cmail> Platform layout change    
   341 
   354 
       
   355 // <cmail>
       
   356     TBool IsAddressInputField( const CCoeControl* aControl ) const;
   342     TBool IsAddressInputField( const CCoeControl* aControl ) const;
   357 // </cmail>
       
   358 
   343 
   359     TBool IsRemoteSearchInprogress() const;
   344     TBool IsRemoteSearchInprogress() const;
   360 private: // Function members
   345 private: // Function members
   361 
   346 
   362 	void FocusChanged(TDrawNow aDrawNow);
   347 	void FocusChanged(TDrawNow aDrawNow);
   391     * @param aExitReason RCL exit reason.
   376     * @param aExitReason RCL exit reason.
   392     * @param aSearchText Search text.
   377     * @param aSearchText Search text.
   393     * @return Selected email address object.
   378     * @return Selected email address object.
   394     */
   379     */
   395     CNcsEmailAddressObject* ExecuteRemoteSearchL(
   380     CNcsEmailAddressObject* ExecuteRemoteSearchL(
   396         CPbkxRemoteContactLookupServiceUiContext::TResult::TExitReason& aExitReason,
   381         CPbkxRemoteContactLookupServiceUiContext::TResult::TExitReason& 
       
   382             aExitReason,
   397         const TDesC& aSearchText );
   383         const TDesC& aSearchText );
   398 
   384 
   399     void ChangeMskCommandL( TInt aLabelResourceId );
   385     void ChangeMskCommandL( TInt aLabelResourceId );
   400 
   386 
   401     void CommitFieldL( CCoeControl* aField );
   387     void CommitFieldL( CCoeControl* aField );
   402 
   388 
   403 //<cmail>
       
   404 private:  //From MAknLongTapDetectorCallBack
   389 private:  //From MAknLongTapDetectorCallBack
   405     
   390     
   406     void HandleLongTapEventL( const TPoint& aPenEventLocation, const TPoint& aPenEventScreenLocation );
   391     void HandleLongTapEventL( const TPoint& aPenEventLocation, 
   407 
   392             const TPoint& aPenEventScreenLocation );
   408 //</cmail>
       
   409     
   393     
   410 private: // Data members
   394 private: // Data members
   411 
   395 
   412     /*
   396     /*
   413     * Parent window
   397     * Parent window
   414     * Not Own
   398     * Not Own
   415     */
   399     */
   416     CCoeControl& iParent;
   400     CCoeControl& iParent;
   417 
   401 
   418     // <cmail> Platform layout change
       
   419     MNcsFieldSizeObserver& iFieldSizeObserver;
   402     MNcsFieldSizeObserver& iFieldSizeObserver;
   420     // </cmail> Platform layout change
   403     
   421     
       
   422 	//<cmail>
       
   423     CAknLongTapDetector*      iLongTapDetector;
   404     CAknLongTapDetector*      iLongTapDetector;
   424     //</cmail>
       
   425 	
   405 	
   426     CEikButtonGroupContainer* iMenuBar;
   406     CEikButtonGroupContainer* iMenuBar;
   427     
   407     
   428     CNcsAddressInputField* iToField;
   408     CNcsAddressInputField* iToField;
   429 
   409 
   441 	// Address popup data members
   421 	// Address popup data members
   442 	CNcsPopupListBox* iAacListBox;
   422 	CNcsPopupListBox* iAacListBox;
   443 
   423 
   444 	CFSMailBox& iMailBox;
   424 	CFSMailBox& iMailBox;
   445 	
   425 	
   446     // <cmail>
       
   447     //flag which disables changes of MSK label if any popup dialog is open
   426     //flag which disables changes of MSK label if any popup dialog is open
   448     TBool iSwitchChangeMskOff;
   427     TBool iSwitchChangeMskOff;
   449     // </cmail>
   428 
   450 	
       
   451  	// <cmail>
       
   452     //CFbsBitmap* iBackgroundBitmap;
       
   453     //CFbsBitmap* iBackgroundMask;
       
   454     CAknsBasicBackgroundControlContext* iBgContext;
   429     CAknsBasicBackgroundControlContext* iBgContext;
   455 	// </cmail>
       
   456     
   430     
   457     TBool iLongTapEventConsumed;
   431     TBool iLongTapEventConsumed;
   458     TBool iRALInProgress;
   432     TBool iRALInProgress;
   459     };
   433     };
   460 
   434