phoneapp/phoneuiutils/inc/tphonecmdparamcallheaderdata.h
branchRCL_3
changeset 62 5266b1f337bd
parent 61 41a7f70b3818
equal deleted inserted replaced
61:41a7f70b3818 62:5266b1f337bd
    21 #define __TPHONECMDPARAMCALLHEADERDATA_H
    21 #define __TPHONECMDPARAMCALLHEADERDATA_H
    22 
    22 
    23 //  INCLUDES
    23 //  INCLUDES
    24 
    24 
    25 #include <w32std.h>
    25 #include <w32std.h>
    26 #include <cntdef.h>
       
    27 #include "tphonecommandparam.h"
    26 #include "tphonecommandparam.h"
    28 #include "phoneconstants.h"
    27 #include "phoneconstants.h"
       
    28 #include "bmbubblemanager.h"
    29 
    29 
    30 // DATA TYPES
    30 // DATA TYPES
    31 
    31 
    32 // CLASS DECLARATION
    32 // CLASS DECLARATION
    33 class CFbsBitmap;
    33 class CFbsBitmap;
    42         enum TPhoneParticipantListCLI
    42         enum TPhoneParticipantListCLI
    43             {
    43             {
    44             EPhoneParticipantCLIText,
    44             EPhoneParticipantCLIText,
    45             EPhoneParticipantCNAPText,                
    45             EPhoneParticipantCNAPText,                
    46             };
    46             };
    47 
       
    48         enum TPhoneTextClippingDirection
       
    49             {
       
    50             ERight,
       
    51             ELeft
       
    52             };
       
    53            
    47            
    54     public:  
    48     public:  
    55         
    49         
    56         /**
    50         /**
    57         * C++ default constructor.
    51         * C++ default constructor.
    58         */
    52         */
    59         IMPORT_C TPhoneCmdParamCallHeaderData();
    53         IMPORT_C TPhoneCmdParamCallHeaderData();
    60 
    54 
    61         /**
       
    62         * destructor.
       
    63         */
       
    64         IMPORT_C ~TPhoneCmdParamCallHeaderData();
       
    65     public: 
    55     public: 
    66         
    56         
    67         /**
    57         /**
    68         * Sets the call header label text.
    58         * Sets the call header label text.
    69         * @param aLabel is the label
    59         * @param aLabel is the label
   104         * Sets the call header CLI text
    94         * Sets the call header CLI text
   105         * @param aCLI is the CLI text
    95         * @param aCLI is the CLI text
   106         * @param aDirection Clipping direction of the CLI text.
    96         * @param aDirection Clipping direction of the CLI text.
   107         */
    97         */
   108         IMPORT_C void SetCLIText( const TDesC& aCLIText, 
    98         IMPORT_C void SetCLIText( const TDesC& aCLIText, 
   109                                   TPhoneTextClippingDirection aDirection );
    99                                   CBubbleManager::TPhoneClippingDirection aDirection );
   110 
   100 
   111         /**
   101         /**
   112         * Sets the call header CNAP text
   102         * Sets the call header CNAP text
   113         * @param aCNAP is the CNAP text
   103         * @param aCNAP is the CNAP text
   114         * @param aDirection Clipping direction of the CNAP text.
   104         * @param aDirection Clipping direction of the CNAP text.
   115         */
   105         */
   116         IMPORT_C void SetCNAPText( const TDesC& aCNAPText,
   106         IMPORT_C void SetCNAPText( const TDesC& aCNAPText,
   117                                    TPhoneTextClippingDirection aDirection );
   107                 CBubbleManager::TPhoneClippingDirection aDirection );
   118 
   108 
   119         /**
   109         /**
   120         * Sets the call header picture
   110         * Sets the call header picture
   121         * @param aPicture is the picture data
   111         * @param aPicture is the picture data
   122         */
   112         */
   123         IMPORT_C void SetPicture( const TDesC& aPicture );
   113         IMPORT_C void SetPicture( const TDesC& aPicture );
   124 
   114         
   125         /**
   115         /**
   126         * Sets the call header diverted status.
   116         * Sets the call flag
   127         * @param call flag
   117         * @param call flag
   128         */
   118         */
   129         IMPORT_C void SetDiverted( TBool aDiverted );
   119         IMPORT_C void SetCallFlag( 
       
   120             CBubbleManager::TPhoneCallTypeFlags aCallFlag );
   130             
   121             
   131         /**
   122         /**
   132         * Sets the call header line2 status.
   123         * Sets the call header line2 status.
   133         * @param aLine2 is ETrue if line2 is active.
   124         * @param aLine2 is ETrue if line2 is active.
   134         */
   125         */
   135         IMPORT_C void SetLine2( TBool aLine2 );
   126         IMPORT_C void SetLine2( TBool aLine2 );
   136             
   127             
   137         /**
   128         /**
       
   129         * Adds the call flag
       
   130         * @param call flag
       
   131         */
       
   132         IMPORT_C void AddCallFlag( 
       
   133             CBubbleManager::TPhoneCallTypeFlags aCallFlag );
       
   134 
       
   135         /**
   138         * Returns the call header label text
   136         * Returns the call header label text
   139         * @return Returns the label
   137         * @return Returns the label
   140         */
   138         */
   141         IMPORT_C const TDesC& LabelText() const;
   139         IMPORT_C const TDesC& LabelText() const;
   142 
   140 
   178 
   176 
   179         /**
   177         /**
   180          * Returns the clipping direction of the CLI text.
   178          * Returns the clipping direction of the CLI text.
   181          * @return  Clipping direction of the CLI text.
   179          * @return  Clipping direction of the CLI text.
   182          */
   180          */
   183         IMPORT_C TPhoneTextClippingDirection CLITextClippingDirection() const;
   181         IMPORT_C CBubbleManager::TPhoneClippingDirection CLITextClippingDirection() const;
   184 
   182 
   185         /**
   183         /**
   186          * Returns the clipping direction of the CNAP text.
   184          * Returns the clipping direction of the CNAP text.
   187          * @return  Clipping direction of the CNAP text.
   185          * @return  Clipping direction of the CNAP text.
   188          */
   186          */
   189         IMPORT_C TPhoneTextClippingDirection CNAPTextClippingDirection() const;
   187         IMPORT_C CBubbleManager::TPhoneClippingDirection CNAPTextClippingDirection() const;
   190         
   188         
   191         /**
   189         /**
   192         * Returns the call header CNAP text.
   190         * Returns the call header CNAP text.
   193         * @return Returns the CNAP text
   191         * @return Returns the CNAP text
   194         */
   192         */
   199         * @return Returns the picture
   197         * @return Returns the picture
   200         */
   198         */
   201         IMPORT_C const TDesC& Picture() const;
   199         IMPORT_C const TDesC& Picture() const;
   202         
   200         
   203         /**
   201         /**
   204         * Returns call diverted status.
   202         * Returns the call flag
   205         * @return Returns ETrue if diverted call.
   203         * @return Returns the call flag
   206         */
   204         */
   207         IMPORT_C TBool Diverted() const;
   205         IMPORT_C TUint32 CallFlag() const;
   208         
   206         
   209         /**
   207         /**
   210         * Returns the call header line 2 active.
   208         * Returns the call header line 2 active.
   211         * @return Returns ETrue if line2 is on 
   209         * @return Returns ETrue if line2 is on 
   212         */
   210         */
   313     private:    
   311     private:    
   314         
   312         
   315         /**
   313         /**
   316         * Call header label text
   314         * Call header label text
   317         */
   315         */
   318         HBufC *iLabelText;
   316         TBuf<KPhoneCallHeaderLabelMaxLength> iLabelText;
   319 
   317 
   320         /**
   318         /**
   321         * Call header short label text
   319         * Call header short label text
   322         */
   320         */
   323         HBufC *iShortLabelText;
   321     	TBuf<KPhoneCallHeaderLabelMaxLength> iShortLabelText;
   324 
   322 
   325         /**
   323         /**
   326         * Call header call state
   324         * Call header call state
   327         */
   325         */
   328         TInt iCallState;
   326         TInt iCallState;
   343         TBool iCiphering;
   341         TBool iCiphering;
   344 
   342 
   345         /**
   343         /**
   346         * Call header CLI Text
   344         * Call header CLI Text
   347         */
   345         */
   348         HBufC *iCLIText;
   346         TBuf<KCntMaxTextFieldLength> iCLIText;
   349 
   347 
   350         /**
   348         /**
   351          * Clipping direction of the CLI text.
   349          * Clipping direction of the CLI text.
   352          */
   350          */
   353         TPhoneTextClippingDirection iCLITextClippingDirection;
   351         CBubbleManager::TPhoneClippingDirection iCLITextClippingDirection;
   354        
   352         
   355         /**
   353         /**
   356          * Clipping direction of the CLI text.
   354          * Clipping direction of the CLI text.
   357          */
   355          */
   358 //        CBubbleManager::TPhoneClippingDirection iCNAPTextClippingDirection;
   356         CBubbleManager::TPhoneClippingDirection iCNAPTextClippingDirection;
   359         TPhoneTextClippingDirection iCNAPTextClippingDirection;
       
   360         
   357         
   361         /**
   358         /**
   362         * Call header CNAP Text
   359         * Call header CNAP Text
   363         */
   360         */
   364         HBufC *iCNAPText;
   361         TBuf<KCntMaxTextFieldLength> iCNAPText;
   365 
   362 
   366         /**
   363         /**
   367         * Call header picture data
   364         * Call header picture data
   368         */
   365         */
   369         TPtrC iPicture;
   366         TPtrC iPicture;
       
   367         
       
   368         /**
       
   369         * Call flag
       
   370         */
       
   371         TUint32     iCallFlag;
   370         
   372         
   371         TBool iLine2;
   373         TBool iLine2;
   372         
   374         
   373         /**
   375         /**
   374         * Thumbnail image
   376         * Thumbnail image
   409         
   411         
   410         /**
   412         /**
   411          * Remote phone number
   413          * Remote phone number
   412          */
   414          */
   413         TPtrC iRemotePhoneNumber;
   415         TPtrC iRemotePhoneNumber;
   414 
       
   415         /**
       
   416          * Call divert status.
       
   417          */
       
   418         TBool iDiverted;        
       
   419     };
   416     };
   420 
   417 
   421 #endif // __TPHONECMDPARAMCALLHEADERDATA_H   
   418 #endif // __TPHONECMDPARAMCALLHEADERDATA_H   
   422             
   419             
   423 // End of File
   420 // End of File