phoneapp/phoneuiutils/src/tphonecmdparamcallheaderdata.cpp
changeset 37 ba76fc04e6c2
child 50 377c906a8701
child 51 f39ed5e045e0
equal deleted inserted replaced
36:2eacb6118286 37:ba76fc04e6c2
       
     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: Implementation of TPhoneCmdParamCallHeaderData class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include    <fbs.h>
       
    21 #include "tphonecmdparamcallheaderdata.h"
       
    22 
       
    23 
       
    24 // ================= MEMBER FUNCTIONS =======================
       
    25 
       
    26 // -----------------------------------------------------------------------------
       
    27 // TPhoneCmdParamCallHeaderData::TPhoneCmdParamCallHeaderData
       
    28 // C++ default constructor can NOT contain any code, that
       
    29 // might leave.
       
    30 // -----------------------------------------------------------------------------
       
    31 //
       
    32 EXPORT_C TPhoneCmdParamCallHeaderData::TPhoneCmdParamCallHeaderData() :
       
    33     TPhoneCommandParam(),
       
    34     iLabelText( KNullDesC ),
       
    35     iShortLabelText( KNullDesC ),
       
    36     iCallState( 0 ),
       
    37     iNumberType( 0 ),
       
    38     iCiphering( EFalse ),
       
    39     iCLIText( KNullDesC ),
       
    40     iCNAPText( KNullDesC ),
       
    41     iPicture( KNullDesC ),
       
    42     iLine2 ( EFalse ),
       
    43     iThumbnail( NULL ),
       
    44     iCallerText( KNullDesC ),
       
    45     iParticipantListCLI( EPhoneParticipantCLIText ),
       
    46     iCipheringIndicatorAllowed( ETrue ),
       
    47     iContactLink( KNullDesC8 ),
       
    48     iRemotePhoneNumber( KNullDesC )
       
    49     ,iDiverted( EFalse )
       
    50     {
       
    51     iParamId = EPhoneParamIdCallHeaderData;
       
    52     }
       
    53 
       
    54 // ---------------------------------------------------------
       
    55 // TPhoneCmdParamCallHeaderData::SetLabelText
       
    56 // Sets the call header label text
       
    57 // (other items were commented in a header).
       
    58 // ---------------------------------------------------------
       
    59 //
       
    60 EXPORT_C void TPhoneCmdParamCallHeaderData::SetLabelText( 
       
    61    const TDesC& aLabelText )
       
    62     {
       
    63     iLabelText = aLabelText;
       
    64     }
       
    65 
       
    66 // ---------------------------------------------------------
       
    67 // TPhoneCmdParamCallHeaderData::SetShortLabelText
       
    68 // Sets the call header short label text
       
    69 // (other items were commented in a header).
       
    70 // ---------------------------------------------------------
       
    71 //
       
    72 EXPORT_C void TPhoneCmdParamCallHeaderData::SetShortLabelText( 
       
    73    const TDesC& aShortLabelText )
       
    74     {
       
    75     iShortLabelText = aShortLabelText;
       
    76     }
       
    77 
       
    78 // ---------------------------------------------------------
       
    79 // TPhoneCmdParamCallHeaderData::SetCallState
       
    80 // Sets the call header call state
       
    81 // (other items were commented in a header).
       
    82 // ---------------------------------------------------------
       
    83 //
       
    84 EXPORT_C void TPhoneCmdParamCallHeaderData::SetCallState( TInt aCallState )
       
    85    {
       
    86    iCallState = aCallState;
       
    87    }
       
    88 
       
    89 // ---------------------------------------------------------
       
    90 // TPhoneCmdParamCallHeaderData::SetCallType
       
    91 // Sets the call header call type
       
    92 // (other items were commented in a header).
       
    93 // ---------------------------------------------------------
       
    94 //
       
    95 EXPORT_C void TPhoneCmdParamCallHeaderData::SetCallType( TInt aCallType )
       
    96    {
       
    97    iCallType = aCallType;
       
    98    }
       
    99 
       
   100 // ---------------------------------------------------------
       
   101 // TPhoneCmdParamCallHeaderData::SetNumberType
       
   102 // Sets the call header number type 
       
   103 // (other items were commented in a header).
       
   104 // ---------------------------------------------------------
       
   105 //
       
   106 EXPORT_C void TPhoneCmdParamCallHeaderData::SetNumberType( TInt aNumberType )
       
   107    {
       
   108    iNumberType = aNumberType;
       
   109    }
       
   110 
       
   111 // ---------------------------------------------------------
       
   112 // TPhoneCmdParamCallHeaderData::SetCiphering
       
   113 // Sets the call header ciphering status
       
   114 // (other items were commented in a header).
       
   115 // ---------------------------------------------------------
       
   116 //
       
   117 EXPORT_C void TPhoneCmdParamCallHeaderData::SetCiphering( 
       
   118    TBool aCiphering )
       
   119    {
       
   120    iCiphering = aCiphering;
       
   121    }
       
   122 
       
   123 // ---------------------------------------------------------
       
   124 // TPhoneCmdParamCallHeaderData::SetCLIText
       
   125 // Sets the call header CLI text
       
   126 // (other items were commented in a header).
       
   127 // ---------------------------------------------------------
       
   128 //
       
   129 EXPORT_C void TPhoneCmdParamCallHeaderData::SetCLIText( 
       
   130    const TDesC& aCLIText,
       
   131    TPhoneTextClippingDirection aDirection )
       
   132    {
       
   133    iCLIText = aCLIText;
       
   134    iCLITextClippingDirection = aDirection; 
       
   135    }
       
   136 
       
   137 // ---------------------------------------------------------
       
   138 // TPhoneCmdParamCallHeaderData::SetCNAPText
       
   139 // Sets the call header CNAP text
       
   140 // (other items were commented in a header).
       
   141 // ---------------------------------------------------------
       
   142 //
       
   143 EXPORT_C void TPhoneCmdParamCallHeaderData::SetCNAPText( 
       
   144    const TDesC& aCNAPText,
       
   145    TPhoneTextClippingDirection aDirection )
       
   146    {
       
   147    iCNAPText = aCNAPText;
       
   148    iCNAPTextClippingDirection = aDirection; 
       
   149    }
       
   150 
       
   151 // ---------------------------------------------------------
       
   152 // TPhoneCmdParamCallHeaderData::SetPicture
       
   153 // Sets the call header picture
       
   154 // (other items were commented in a header).
       
   155 // ---------------------------------------------------------
       
   156 //
       
   157 EXPORT_C void TPhoneCmdParamCallHeaderData::SetPicture( 
       
   158    const TDesC& aPicture )
       
   159    {
       
   160    iPicture.Set( aPicture );
       
   161    }
       
   162 
       
   163 // ---------------------------------------------------------
       
   164 // TPhoneCmdParamCallHeaderData::SetCallFlag
       
   165 // Sets the call flag
       
   166 // (other items were commented in a header).
       
   167 // ---------------------------------------------------------
       
   168 //
       
   169 EXPORT_C void TPhoneCmdParamCallHeaderData::SetDiverted(
       
   170     TBool aDiverted )
       
   171     {
       
   172     iDiverted = aDiverted;        
       
   173     }
       
   174 
       
   175 // ---------------------------------------------------------
       
   176 // TPhoneCmdParamCallHeaderData::SetLine2
       
   177 // ---------------------------------------------------------
       
   178 //  
       
   179 EXPORT_C void TPhoneCmdParamCallHeaderData::SetLine2(
       
   180     TBool aLine2 )
       
   181    {
       
   182    iLine2 = aLine2;
       
   183    }
       
   184     
       
   185 // ---------------------------------------------------------
       
   186 // TPhoneCmdParamCallHeaderData::LabelText
       
   187 // Returns the call header label text
       
   188 // (other items were commented in a header).
       
   189 // ---------------------------------------------------------
       
   190 //
       
   191 EXPORT_C const TDesC& TPhoneCmdParamCallHeaderData::LabelText() const
       
   192    {
       
   193    return iLabelText;
       
   194    }
       
   195 
       
   196 // ---------------------------------------------------------
       
   197 // TPhoneCmdParamCallHeaderData::ShortLabelText
       
   198 // Returns the call header short label text
       
   199 // (other items were commented in a header).
       
   200 // ---------------------------------------------------------
       
   201 //
       
   202 EXPORT_C const TDesC& TPhoneCmdParamCallHeaderData::ShortLabelText() const
       
   203    {
       
   204    return iShortLabelText;
       
   205    }
       
   206 
       
   207 // ---------------------------------------------------------
       
   208 // TPhoneCmdParamCallHeaderData::CallState
       
   209 // Returns the call header call state
       
   210 // (other items were commented in a header).
       
   211 // ---------------------------------------------------------
       
   212 //
       
   213 EXPORT_C TInt TPhoneCmdParamCallHeaderData::CallState() const
       
   214    {
       
   215    return iCallState;
       
   216    }
       
   217 
       
   218 // ---------------------------------------------------------
       
   219 // TPhoneCmdParamCallHeaderData::CallType
       
   220 // Returns the call header call type
       
   221 // (other items were commented in a header).
       
   222 // ---------------------------------------------------------
       
   223 //
       
   224 EXPORT_C TInt TPhoneCmdParamCallHeaderData::CallType() const
       
   225    {
       
   226    return iCallType;
       
   227    }
       
   228 
       
   229 // ---------------------------------------------------------
       
   230 // TPhoneCmdParamCallHeaderData::NumberType
       
   231 // Returns the call header number type
       
   232 // (other items were commented in a header).
       
   233 // ---------------------------------------------------------
       
   234 //
       
   235 EXPORT_C TInt TPhoneCmdParamCallHeaderData::NumberType() const
       
   236    {
       
   237    return iNumberType;
       
   238    }
       
   239 
       
   240 // ---------------------------------------------------------
       
   241 // TPhoneCmdParamCallHeaderData::Ciphering
       
   242 // Returns the call header ciphering
       
   243 // (other items were commented in a header).
       
   244 // ---------------------------------------------------------
       
   245 //
       
   246 EXPORT_C TBool TPhoneCmdParamCallHeaderData::Ciphering() const
       
   247    {
       
   248    return iCiphering;
       
   249    }
       
   250 
       
   251 // ---------------------------------------------------------
       
   252 // TPhoneCmdParamCallHeaderData::CLIText
       
   253 // Returns the call header CLI text
       
   254 // (other items were commented in a header).
       
   255 // ---------------------------------------------------------
       
   256 //
       
   257 EXPORT_C const TDesC& TPhoneCmdParamCallHeaderData::CLIText() const
       
   258    {
       
   259    return iCLIText;
       
   260    }
       
   261 
       
   262 // ---------------------------------------------------------
       
   263 // TPhoneCmdParamCallHeaderData::CLITextClippingDirection
       
   264 // Returns the clipping direction of the CLI text.
       
   265 // (other items were commented in a header).
       
   266 // ---------------------------------------------------------
       
   267 //
       
   268 EXPORT_C TPhoneCmdParamCallHeaderData::TPhoneTextClippingDirection 
       
   269 TPhoneCmdParamCallHeaderData::CLITextClippingDirection() const
       
   270     {
       
   271     return iCLITextClippingDirection;
       
   272     }
       
   273 
       
   274 // ---------------------------------------------------------
       
   275 // TPhoneCmdParamCallHeaderData::CNAPTextClippingDirection
       
   276 // Returns the clipping direction of the CNAP text.
       
   277 // (other items were commented in a header).
       
   278 // ---------------------------------------------------------
       
   279 //
       
   280 EXPORT_C TPhoneCmdParamCallHeaderData::TPhoneTextClippingDirection 
       
   281 TPhoneCmdParamCallHeaderData::CNAPTextClippingDirection() const
       
   282     {
       
   283     return iCNAPTextClippingDirection;
       
   284     }
       
   285 
       
   286 // ---------------------------------------------------------
       
   287 // TPhoneCmdParamCallHeaderData::CNAPText
       
   288 // Returns the call header CNAP text
       
   289 // (other items were commented in a header).
       
   290 // ---------------------------------------------------------
       
   291 //
       
   292 EXPORT_C const TDesC& TPhoneCmdParamCallHeaderData::CNAPText() const
       
   293    {
       
   294    return iCNAPText;
       
   295    }
       
   296 
       
   297 // ---------------------------------------------------------
       
   298 // TPhoneCmdParamCallHeaderData::Picture
       
   299 // Returns the call header picture
       
   300 // (other items were commented in a header).
       
   301 // ---------------------------------------------------------
       
   302 //
       
   303 EXPORT_C const TDesC& TPhoneCmdParamCallHeaderData::Picture() const
       
   304    {
       
   305    return iPicture;
       
   306    }
       
   307 
       
   308 // ---------------------------------------------------------
       
   309 // TPhoneCmdParamCallHeaderData::CallFlag
       
   310 // Returns the call flag
       
   311 // (other items were commented in a header).
       
   312 // ---------------------------------------------------------
       
   313 //
       
   314 EXPORT_C TBool TPhoneCmdParamCallHeaderData::Diverted() const
       
   315     {
       
   316     return iDiverted;        
       
   317     }
       
   318 
       
   319 // ---------------------------------------------------------
       
   320 // TPhoneCmdParamCallHeaderData::Line2
       
   321 // Returns the call header line2
       
   322 // (other items were commented in a header).
       
   323 // ---------------------------------------------------------
       
   324 //
       
   325 EXPORT_C TBool TPhoneCmdParamCallHeaderData::Line2() const
       
   326    {
       
   327    return iLine2;
       
   328    }
       
   329    
       
   330 // ---------------------------------------------------------
       
   331 // TPhoneCmdParamCallHeaderData::Thumbnail
       
   332 // Returns the pointer to thumbnail image
       
   333 // ---------------------------------------------------------
       
   334 //
       
   335 EXPORT_C CFbsBitmap* TPhoneCmdParamCallHeaderData::Thumbnail() const
       
   336    {
       
   337    return iThumbnail;
       
   338    }
       
   339 
       
   340 // ---------------------------------------------------------
       
   341 // TPhoneCmdParamCallHeaderData::SetThumbnail
       
   342 // Sets the pointer to thumbnail image
       
   343 // ---------------------------------------------------------
       
   344 //
       
   345 EXPORT_C void TPhoneCmdParamCallHeaderData::SetThumbnail( 
       
   346    CFbsBitmap* aThumbnail )
       
   347    {
       
   348    iThumbnail = aThumbnail;
       
   349    }
       
   350 
       
   351 // ---------------------------------------------------------
       
   352 // TPhoneCmdParamCallHeaderData::CallerText
       
   353 // Returns the Caller text
       
   354 // ---------------------------------------------------------
       
   355 //
       
   356 EXPORT_C const TDesC& TPhoneCmdParamCallHeaderData::CallerText() const
       
   357    {
       
   358    return iCallerText;
       
   359    }
       
   360 
       
   361 // ---------------------------------------------------------
       
   362 // TPhoneCmdParamCallHeaderData::CallerText
       
   363 // Sets the Caller text
       
   364 // ---------------------------------------------------------
       
   365 //
       
   366 EXPORT_C void TPhoneCmdParamCallHeaderData::SetCallerText( 
       
   367    const TDesC& aCallerText )
       
   368    {
       
   369    iCallerText.Set( aCallerText );
       
   370    }
       
   371    
       
   372 // ---------------------------------------------------------
       
   373 // TPhoneCmdParamCallHeaderData::SetParticipantCLI
       
   374 // Sets the Caller text
       
   375 // ---------------------------------------------------------
       
   376 //
       
   377 EXPORT_C void TPhoneCmdParamCallHeaderData::SetParticipantListCLI(
       
   378     TPhoneParticipantListCLI aCLIType )
       
   379     {
       
   380     iParticipantListCLI = aCLIType;
       
   381     }
       
   382 
       
   383 // ---------------------------------------------------------
       
   384 // TPhoneCmdParamCallHeaderData::ParticipantCLI
       
   385 // Sets the Caller text
       
   386 // ---------------------------------------------------------
       
   387 //
       
   388 EXPORT_C TPhoneCmdParamCallHeaderData::TPhoneParticipantListCLI 
       
   389     TPhoneCmdParamCallHeaderData::ParticipantCLI() const
       
   390     {
       
   391     return iParticipantListCLI;    
       
   392     }       
       
   393 
       
   394 // ---------------------------------------------------------
       
   395 // TPhoneCmdParamCallHeaderData::HasThumbnail
       
   396 // ---------------------------------------------------------
       
   397 //
       
   398 EXPORT_C TBool TPhoneCmdParamCallHeaderData::HasThumbnail() const
       
   399     {
       
   400     return iHasThumbnail;
       
   401     }    
       
   402 // ---------------------------------------------------------
       
   403 // TPhoneCmdParamCallHeaderData::SetHasThumbnail
       
   404 // ---------------------------------------------------------
       
   405 //
       
   406 EXPORT_C void TPhoneCmdParamCallHeaderData::SetHasThumbnail( TBool aStatus )
       
   407     {
       
   408     iHasThumbnail = aStatus;
       
   409     }
       
   410    
       
   411 // ---------------------------------------------------------
       
   412 // TPhoneCmdParamCallHeaderData::SetCipheringIndicatorAllowed
       
   413 // Sets the ciphering indicator allowed status
       
   414 // (other items were commented in a header).
       
   415 // ---------------------------------------------------------
       
   416 //
       
   417 EXPORT_C void TPhoneCmdParamCallHeaderData::SetCipheringIndicatorAllowed( 
       
   418     TBool aAllowed )
       
   419     {
       
   420     iCipheringIndicatorAllowed = aAllowed;
       
   421     }
       
   422 
       
   423 // ---------------------------------------------------------
       
   424 // TPhoneCmdParamCallHeaderData::CipheringIndicatorAllowed
       
   425 // Returns the ciphering indicator allowed status
       
   426 // (other items were commented in a header).
       
   427 // ---------------------------------------------------------
       
   428 //
       
   429 EXPORT_C TBool TPhoneCmdParamCallHeaderData::CipheringIndicatorAllowed() const    
       
   430     {
       
   431     return iCipheringIndicatorAllowed;
       
   432     }
       
   433 
       
   434 // ---------------------------------------------------------
       
   435 // TPhoneCmdParamCallHeaderData::SetServiceId
       
   436 // ---------------------------------------------------------
       
   437 //
       
   438 EXPORT_C void TPhoneCmdParamCallHeaderData::SetServiceId( TUint32 aServiceId )
       
   439     {
       
   440     iServiceId = aServiceId;
       
   441     }
       
   442 
       
   443 // ---------------------------------------------------------
       
   444 // TPhoneCmdParamCallHeaderData::ServiceId
       
   445 // ---------------------------------------------------------
       
   446 //
       
   447 EXPORT_C TUint32 TPhoneCmdParamCallHeaderData::ServiceId() const
       
   448     {
       
   449     return iServiceId;
       
   450     }
       
   451 
       
   452 // ---------------------------------------------------------
       
   453 // TPhoneCmdParamCallHeaderData::SetContactLink
       
   454 // ---------------------------------------------------------
       
   455 //
       
   456 EXPORT_C void TPhoneCmdParamCallHeaderData::SetContactLink( 
       
   457     const TDesC8& aContactLink )
       
   458     {
       
   459     iContactLink.Set( aContactLink );
       
   460     }
       
   461 
       
   462 // ---------------------------------------------------------
       
   463 // TPhoneCmdParamCallHeaderData::ContactLink
       
   464 // ---------------------------------------------------------
       
   465 //
       
   466 EXPORT_C const TDesC8& TPhoneCmdParamCallHeaderData::ContactLink() const
       
   467     {
       
   468     return iContactLink;
       
   469     }
       
   470 
       
   471 // ---------------------------------------------------------
       
   472 // TPhoneCmdParamCallHeaderData::SetRemotePhoneNumber
       
   473 // ---------------------------------------------------------
       
   474 //
       
   475 EXPORT_C void TPhoneCmdParamCallHeaderData::SetRemotePhoneNumber( 
       
   476     const TDesC& aPhoneNumber )
       
   477     {
       
   478     iRemotePhoneNumber.Set( aPhoneNumber );
       
   479     }
       
   480 
       
   481 // ---------------------------------------------------------
       
   482 // TPhoneCmdParamCallHeaderData::RemotePhoneNumber
       
   483 // ---------------------------------------------------------
       
   484 //
       
   485 EXPORT_C const TDesC& TPhoneCmdParamCallHeaderData::RemotePhoneNumber() const
       
   486     {
       
   487     return iRemotePhoneNumber;
       
   488     }
       
   489 
       
   490 //  End of File