phoneapp/phoneuiutils/inc/tphonecmdparamcallheaderdata.h
changeset 0 5f000ab63145
child 21 92ab7f8d0eab
child 61 41a7f70b3818
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2005-2007 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *   See class description.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __TPHONECMDPARAMCALLHEADERDATA_H
       
    21 #define __TPHONECMDPARAMCALLHEADERDATA_H
       
    22 
       
    23 //  INCLUDES
       
    24 
       
    25 #include <w32std.h>
       
    26 #include "tphonecommandparam.h"
       
    27 #include "phoneconstants.h"
       
    28 #include "bmbubblemanager.h"
       
    29 
       
    30 // DATA TYPES
       
    31 
       
    32 // CLASS DECLARATION
       
    33 class CFbsBitmap;
       
    34 
       
    35 /**
       
    36 *  A parameter class for call header information.
       
    37 */
       
    38 class TPhoneCmdParamCallHeaderData : public TPhoneUICommandParam
       
    39     {
       
    40     public:
       
    41         // CLI used in conference call participant list.
       
    42         enum TPhoneParticipantListCLI
       
    43             {
       
    44             EPhoneParticipantCLIText,
       
    45             EPhoneParticipantCNAPText,                
       
    46             };
       
    47            
       
    48     public:  
       
    49         
       
    50         /**
       
    51         * C++ default constructor.
       
    52         */
       
    53         IMPORT_C TPhoneCmdParamCallHeaderData();
       
    54 
       
    55     public: 
       
    56         
       
    57         /**
       
    58         * Sets the call header label text.
       
    59         * @param aLabel is the label
       
    60         */
       
    61         IMPORT_C void SetLabelText( const TDesC& aLabelText );
       
    62 
       
    63         /**
       
    64         * Sets the call header short label text
       
    65         * @param aShortLabel is the short label
       
    66         */
       
    67         IMPORT_C void SetShortLabelText( const TDesC& aShortLabelText );
       
    68 
       
    69         /**
       
    70         * Sets the call header call state.
       
    71         * @param aCallState is the call state
       
    72         */
       
    73         IMPORT_C void SetCallState( TInt aCallState );
       
    74 
       
    75         /**
       
    76         * Sets the call header call type.
       
    77         * @param aCallType is the call type
       
    78         */
       
    79         IMPORT_C void SetCallType( TInt aCallType );
       
    80 
       
    81         /**
       
    82         * Sets the call header number type.
       
    83         * @param aNumberType is the number type
       
    84         */
       
    85         IMPORT_C void SetNumberType( TInt aNumberType );
       
    86 
       
    87         /**
       
    88         * Sets the call header voice privacy status.
       
    89         * @param aCiphering is ETrue if voice privacy is on.
       
    90         */
       
    91         IMPORT_C void SetCiphering( TBool aCiphering );
       
    92 
       
    93         /**
       
    94         * Sets the call header CLI text
       
    95         * @param aCLI is the CLI text
       
    96         * @param aDirection Clipping direction of the CLI text.
       
    97         */
       
    98         IMPORT_C void SetCLIText( const TDesC& aCLIText, 
       
    99                                   CBubbleManager::TPhoneClippingDirection aDirection );
       
   100 
       
   101         /**
       
   102         * Sets the call header CNAP text
       
   103         * @param aCNAP is the CNAP text
       
   104         * @param aDirection Clipping direction of the CNAP text.
       
   105         */
       
   106         IMPORT_C void SetCNAPText( const TDesC& aCNAPText,
       
   107                 CBubbleManager::TPhoneClippingDirection aDirection );
       
   108 
       
   109         /**
       
   110         * Sets the call header picture
       
   111         * @param aPicture is the picture data
       
   112         */
       
   113         IMPORT_C void SetPicture( const TDesC& aPicture );
       
   114         
       
   115         /**
       
   116         * Sets the call flag
       
   117         * @param call flag
       
   118         */
       
   119         IMPORT_C void SetCallFlag( 
       
   120             CBubbleManager::TPhoneCallTypeFlags aCallFlag );
       
   121             
       
   122         /**
       
   123         * Sets the call header line2 status.
       
   124         * @param aLine2 is ETrue if line2 is active.
       
   125         */
       
   126         IMPORT_C void SetLine2( TBool aLine2 );
       
   127             
       
   128         /**
       
   129         * Adds the call flag
       
   130         * @param call flag
       
   131         */
       
   132         IMPORT_C void AddCallFlag( 
       
   133             CBubbleManager::TPhoneCallTypeFlags aCallFlag );
       
   134 
       
   135         /**
       
   136         * Returns the call header label text
       
   137         * @return Returns the label
       
   138         */
       
   139         IMPORT_C const TDesC& LabelText() const;
       
   140 
       
   141         /**
       
   142         * Returns the call header short label text.
       
   143         * @return Returns the short label
       
   144         */
       
   145         IMPORT_C const TDesC& ShortLabelText() const;
       
   146 
       
   147         /**
       
   148         * Returns the call header call state.
       
   149         * @return Returns the call state
       
   150         */
       
   151         IMPORT_C TInt CallState() const;
       
   152 
       
   153         /**
       
   154         * Returns the call header call type.
       
   155         * @return Returns the call type
       
   156         */
       
   157         IMPORT_C TInt CallType() const;
       
   158 
       
   159         /**
       
   160         * Returns the call header number type.
       
   161         * @return Returns the number type 
       
   162         */
       
   163         IMPORT_C TInt NumberType() const;
       
   164 
       
   165         /**
       
   166         * Returns the call header ciphering status.
       
   167         * @return Returns ETrue if ciphering is on 
       
   168         */
       
   169         IMPORT_C TBool Ciphering() const;
       
   170 
       
   171         /**
       
   172         * Returns the call header CLI text.
       
   173         * @return Returns the CLI text
       
   174         */
       
   175         IMPORT_C const TDesC& CLIText() const;
       
   176 
       
   177         /**
       
   178          * Returns the clipping direction of the CLI text.
       
   179          * @return  Clipping direction of the CLI text.
       
   180          */
       
   181         IMPORT_C CBubbleManager::TPhoneClippingDirection CLITextClippingDirection() const;
       
   182 
       
   183         /**
       
   184          * Returns the clipping direction of the CNAP text.
       
   185          * @return  Clipping direction of the CNAP text.
       
   186          */
       
   187         IMPORT_C CBubbleManager::TPhoneClippingDirection CNAPTextClippingDirection() const;
       
   188         
       
   189         /**
       
   190         * Returns the call header CNAP text.
       
   191         * @return Returns the CNAP text
       
   192         */
       
   193         IMPORT_C const TDesC& CNAPText() const;
       
   194 
       
   195         /**
       
   196         * Returns the call header picture.
       
   197         * @return Returns the picture
       
   198         */
       
   199         IMPORT_C const TDesC& Picture() const;
       
   200         
       
   201         /**
       
   202         * Returns the call flag
       
   203         * @return Returns the call flag
       
   204         */
       
   205         IMPORT_C TUint32 CallFlag() const;
       
   206         
       
   207         /**
       
   208         * Returns the call header line 2 active.
       
   209         * @return Returns ETrue if line2 is on 
       
   210         */
       
   211         IMPORT_C TBool Line2() const;
       
   212         
       
   213         /**
       
   214         * Returns the Thumbnail.
       
   215         * @return Returns pointer to the thumbnail image 
       
   216         */
       
   217         IMPORT_C CFbsBitmap* Thumbnail() const;
       
   218         
       
   219         /**
       
   220         * Sets the Thumbnail
       
   221         * @param aThumbnail is pointer to the thumbnail image
       
   222         */
       
   223         IMPORT_C void SetThumbnail( CFbsBitmap* aThumbnail );
       
   224         
       
   225         /**
       
   226         * Sets the call header Caller text
       
   227         * @param aCallerText is the Caller text
       
   228         */
       
   229         IMPORT_C void SetCallerText( const TDesC& aCallerText );
       
   230         
       
   231         /**
       
   232         * Returns the call Caller text.
       
   233         * @return Returns the Caller text
       
   234         */
       
   235         IMPORT_C const TDesC& CallerText() const;
       
   236 
       
   237         /**
       
   238         * Sets CLI used in conference call participant list. 
       
   239         * @param aCLIType CLI type.
       
   240         */
       
   241         IMPORT_C void SetParticipantListCLI(
       
   242             TPhoneParticipantListCLI aCLIType );
       
   243             
       
   244         /**
       
   245         * Gets CLI type used in conference call participant list. 
       
   246         * @return CLI type.
       
   247         */
       
   248         IMPORT_C TPhoneParticipantListCLI ParticipantCLI() const;
       
   249         
       
   250         /**
       
   251         * Returns the status of Thumbnail.
       
   252         * @return Returns ETrue if thumbnail exist in contact
       
   253         */
       
   254         IMPORT_C TBool HasThumbnail() const;
       
   255         
       
   256         /**
       
   257         * Sets the Thumbnail status
       
   258         * @param aStatus status of thumbnail in contact
       
   259         */
       
   260         IMPORT_C void SetHasThumbnail( TBool aStatus );
       
   261 
       
   262         /**
       
   263         * Sets the ciphering indicator allowed or hidden
       
   264         * @param aAllowed EFalse to prevent ciphering indicator from showing
       
   265         *                 ETrue to enable
       
   266         */
       
   267         IMPORT_C void SetCipheringIndicatorAllowed( TBool aAllowed );
       
   268         
       
   269         /**
       
   270         * Returns the ciphering indicator allowed status
       
   271         * @return Returns EFalse when ciphering indicator is wanted to be disabled
       
   272         *         ETrue to be allowed
       
   273         */
       
   274         IMPORT_C TBool CipheringIndicatorAllowed() const;        
       
   275         
       
   276         /**
       
   277          * Set service id. See Service Provider Settings API
       
   278          * @param Service id.
       
   279          */
       
   280         IMPORT_C void SetServiceId( TUint32 aServiceId );
       
   281         
       
   282         /**
       
   283          * Returns service id. See Service Provider Settings API
       
   284          * @return Service id.
       
   285          */
       
   286         IMPORT_C TUint32 ServiceId() const;
       
   287         
       
   288         /**
       
   289          * Sets contact store link. See Virtual Phonebook API
       
   290          * @param aContactStoreLink Contact store link
       
   291          */
       
   292         IMPORT_C void SetContactLink( const TDesC8& aContactLink );
       
   293         
       
   294         /**
       
   295          * Returns contact store link. See Virtual Phonebook API
       
   296          * @return Contact store link
       
   297          */
       
   298         IMPORT_C const TDesC8& ContactLink() const;
       
   299         
       
   300         /**
       
   301          * Sets remote end phone number.
       
   302          * @param aRemoteNumber Number to be set.
       
   303          */
       
   304         IMPORT_C void SetRemotePhoneNumber( const TDesC& aPhoneNumber );
       
   305         
       
   306         /**
       
   307          * Remote phone number.
       
   308          * @return Phone number for remote end.
       
   309          */
       
   310         IMPORT_C const TDesC& RemotePhoneNumber() const;
       
   311     private:    
       
   312         
       
   313         /**
       
   314         * Call header label text
       
   315         */
       
   316         TBuf<KPhoneCallHeaderLabelMaxLength> iLabelText;
       
   317 
       
   318         /**
       
   319         * Call header short label text
       
   320         */
       
   321     	TBuf<KPhoneCallHeaderLabelMaxLength> iShortLabelText;
       
   322 
       
   323         /**
       
   324         * Call header call state
       
   325         */
       
   326         TInt iCallState;
       
   327 
       
   328         /**
       
   329         * Call header call type
       
   330         */
       
   331         TInt iCallType;
       
   332 
       
   333         /**
       
   334         * Call header number type
       
   335         */
       
   336         TInt iNumberType;
       
   337 
       
   338         /**
       
   339         * Call header ciphering status
       
   340         */
       
   341         TBool iCiphering;
       
   342 
       
   343         /**
       
   344         * Call header CLI Text
       
   345         */
       
   346         TBuf<KCntMaxTextFieldLength> iCLIText;
       
   347 
       
   348         /**
       
   349          * Clipping direction of the CLI text.
       
   350          */
       
   351         CBubbleManager::TPhoneClippingDirection iCLITextClippingDirection;
       
   352         
       
   353         /**
       
   354          * Clipping direction of the CLI text.
       
   355          */
       
   356         CBubbleManager::TPhoneClippingDirection iCNAPTextClippingDirection;
       
   357         
       
   358         /**
       
   359         * Call header CNAP Text
       
   360         */
       
   361         TBuf<KCntMaxTextFieldLength> iCNAPText;
       
   362 
       
   363         /**
       
   364         * Call header picture data
       
   365         */
       
   366         TPtrC iPicture;
       
   367         
       
   368         /**
       
   369         * Call flag
       
   370         */
       
   371         TUint32     iCallFlag;
       
   372         
       
   373         TBool iLine2;
       
   374         
       
   375         /**
       
   376         * Thumbnail image
       
   377         */
       
   378         CFbsBitmap* iThumbnail;
       
   379         
       
   380         /**
       
   381         * Caller text
       
   382         */
       
   383         TPtrC iCallerText;
       
   384         
       
   385         /**
       
   386         * Conference call participant list CLI.
       
   387         */
       
   388         TPhoneParticipantListCLI iParticipantListCLI;
       
   389         
       
   390         /**
       
   391         * Thumbnail contact status
       
   392         */
       
   393         TBool iHasThumbnail;
       
   394         
       
   395         /**
       
   396         * Ciphering indicator allowed status
       
   397         */
       
   398         TBool iCipheringIndicatorAllowed;
       
   399         
       
   400         /**
       
   401          * Service id
       
   402          * See Service Provider Settings API
       
   403          */
       
   404         TUint32 iServiceId;
       
   405         
       
   406         /**
       
   407          * Contact store link
       
   408          * See Virtual Phonebook API
       
   409          */
       
   410         TPtrC8 iContactLink;
       
   411         
       
   412         /**
       
   413          * Remote phone number
       
   414          */
       
   415         TPtrC iRemotePhoneNumber;
       
   416     };
       
   417 
       
   418 #endif // __TPHONECMDPARAMCALLHEADERDATA_H   
       
   419             
       
   420 // End of File