phoneapp/phoneuiutils/src/tphonecmdparamcallheaderdata.cpp
changeset 0 5f000ab63145
child 21 92ab7f8d0eab
child 58 40a3f856b14d
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: 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     iCallFlag( CBubbleManager::ENormal ),
       
    43     iLine2 ( EFalse ),
       
    44     iThumbnail( NULL ),
       
    45     iCallerText( KNullDesC ),
       
    46     iParticipantListCLI( EPhoneParticipantCLIText ),
       
    47     iCipheringIndicatorAllowed( ETrue ),
       
    48     iContactLink( KNullDesC8 ),
       
    49     iRemotePhoneNumber( KNullDesC )
       
    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    CBubbleManager::TPhoneClippingDirection 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    CBubbleManager::TPhoneClippingDirection 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::SetCallFlag(
       
   170     const CBubbleManager::TPhoneCallTypeFlags aCallFlag )
       
   171     {
       
   172     iCallFlag = aCallFlag;        
       
   173     }
       
   174 
       
   175 // ---------------------------------------------------------
       
   176 // TPhoneCmdParamCallHeaderData::AddCallFlag
       
   177 // Adds the call flag
       
   178 // (other items were commented in a header).
       
   179 // ---------------------------------------------------------
       
   180 //
       
   181 EXPORT_C void TPhoneCmdParamCallHeaderData::AddCallFlag(
       
   182     const CBubbleManager::TPhoneCallTypeFlags aCallFlag )
       
   183     {
       
   184     iCallFlag |= aCallFlag;
       
   185     }
       
   186 
       
   187 // ---------------------------------------------------------
       
   188 // TPhoneCmdParamCallHeaderData::SetLine2
       
   189 // ---------------------------------------------------------
       
   190 //	
       
   191 EXPORT_C void TPhoneCmdParamCallHeaderData::SetLine2(
       
   192     TBool aLine2 )
       
   193    {
       
   194    iLine2 = aLine2;
       
   195    }
       
   196     
       
   197 // ---------------------------------------------------------
       
   198 // TPhoneCmdParamCallHeaderData::LabelText
       
   199 // Returns the call header label text
       
   200 // (other items were commented in a header).
       
   201 // ---------------------------------------------------------
       
   202 //
       
   203 EXPORT_C const TDesC& TPhoneCmdParamCallHeaderData::LabelText() const
       
   204    {
       
   205    return iLabelText;
       
   206    }
       
   207 
       
   208 // ---------------------------------------------------------
       
   209 // TPhoneCmdParamCallHeaderData::ShortLabelText
       
   210 // Returns the call header short label text
       
   211 // (other items were commented in a header).
       
   212 // ---------------------------------------------------------
       
   213 //
       
   214 EXPORT_C const TDesC& TPhoneCmdParamCallHeaderData::ShortLabelText() const
       
   215    {
       
   216    return iShortLabelText;
       
   217    }
       
   218 
       
   219 // ---------------------------------------------------------
       
   220 // TPhoneCmdParamCallHeaderData::CallState
       
   221 // Returns the call header call state
       
   222 // (other items were commented in a header).
       
   223 // ---------------------------------------------------------
       
   224 //
       
   225 EXPORT_C TInt TPhoneCmdParamCallHeaderData::CallState() const
       
   226    {
       
   227    return iCallState;
       
   228    }
       
   229 
       
   230 // ---------------------------------------------------------
       
   231 // TPhoneCmdParamCallHeaderData::CallType
       
   232 // Returns the call header call type
       
   233 // (other items were commented in a header).
       
   234 // ---------------------------------------------------------
       
   235 //
       
   236 EXPORT_C TInt TPhoneCmdParamCallHeaderData::CallType() const
       
   237    {
       
   238    return iCallType;
       
   239    }
       
   240 
       
   241 // ---------------------------------------------------------
       
   242 // TPhoneCmdParamCallHeaderData::NumberType
       
   243 // Returns the call header number type
       
   244 // (other items were commented in a header).
       
   245 // ---------------------------------------------------------
       
   246 //
       
   247 EXPORT_C TInt TPhoneCmdParamCallHeaderData::NumberType() const
       
   248    {
       
   249    return iNumberType;
       
   250    }
       
   251 
       
   252 // ---------------------------------------------------------
       
   253 // TPhoneCmdParamCallHeaderData::Ciphering
       
   254 // Returns the call header ciphering
       
   255 // (other items were commented in a header).
       
   256 // ---------------------------------------------------------
       
   257 //
       
   258 EXPORT_C TBool TPhoneCmdParamCallHeaderData::Ciphering() const
       
   259    {
       
   260    return iCiphering;
       
   261    }
       
   262 
       
   263 // ---------------------------------------------------------
       
   264 // TPhoneCmdParamCallHeaderData::CLIText
       
   265 // Returns the call header CLI text
       
   266 // (other items were commented in a header).
       
   267 // ---------------------------------------------------------
       
   268 //
       
   269 EXPORT_C const TDesC& TPhoneCmdParamCallHeaderData::CLIText() const
       
   270    {
       
   271    return iCLIText;
       
   272    }
       
   273 
       
   274 // ---------------------------------------------------------
       
   275 // TPhoneCmdParamCallHeaderData::CLITextClippingDirection
       
   276 // Returns the clipping direction of the CLI text.
       
   277 // (other items were commented in a header).
       
   278 // ---------------------------------------------------------
       
   279 //
       
   280 EXPORT_C CBubbleManager::TPhoneClippingDirection 
       
   281 TPhoneCmdParamCallHeaderData::CLITextClippingDirection() const
       
   282     {
       
   283     return iCLITextClippingDirection;
       
   284     }
       
   285 
       
   286 // ---------------------------------------------------------
       
   287 // TPhoneCmdParamCallHeaderData::CNAPTextClippingDirection
       
   288 // Returns the clipping direction of the CNAP text.
       
   289 // (other items were commented in a header).
       
   290 // ---------------------------------------------------------
       
   291 //
       
   292 EXPORT_C CBubbleManager::TPhoneClippingDirection 
       
   293 TPhoneCmdParamCallHeaderData::CNAPTextClippingDirection() const
       
   294     {
       
   295     return iCNAPTextClippingDirection;
       
   296     }
       
   297 
       
   298 // ---------------------------------------------------------
       
   299 // TPhoneCmdParamCallHeaderData::CNAPText
       
   300 // Returns the call header CNAP text
       
   301 // (other items were commented in a header).
       
   302 // ---------------------------------------------------------
       
   303 //
       
   304 EXPORT_C const TDesC& TPhoneCmdParamCallHeaderData::CNAPText() const
       
   305    {
       
   306    return iCNAPText;
       
   307    }
       
   308 
       
   309 // ---------------------------------------------------------
       
   310 // TPhoneCmdParamCallHeaderData::Picture
       
   311 // Returns the call header picture
       
   312 // (other items were commented in a header).
       
   313 // ---------------------------------------------------------
       
   314 //
       
   315 EXPORT_C const TDesC& TPhoneCmdParamCallHeaderData::Picture() const
       
   316    {
       
   317    return iPicture;
       
   318    }
       
   319 
       
   320 // ---------------------------------------------------------
       
   321 // TPhoneCmdParamCallHeaderData::CallFlag
       
   322 // Returns the call flag
       
   323 // (other items were commented in a header).
       
   324 // ---------------------------------------------------------
       
   325 //
       
   326 EXPORT_C TUint32
       
   327     TPhoneCmdParamCallHeaderData::CallFlag() const
       
   328     {
       
   329     return iCallFlag;        
       
   330     }
       
   331 
       
   332 // ---------------------------------------------------------
       
   333 // TPhoneCmdParamCallHeaderData::Line2
       
   334 // Returns the call header line2
       
   335 // (other items were commented in a header).
       
   336 // ---------------------------------------------------------
       
   337 //
       
   338 EXPORT_C TBool TPhoneCmdParamCallHeaderData::Line2() const
       
   339    {
       
   340    return iLine2;
       
   341    }
       
   342    
       
   343 // ---------------------------------------------------------
       
   344 // TPhoneCmdParamCallHeaderData::Thumbnail
       
   345 // Returns the pointer to thumbnail image
       
   346 // ---------------------------------------------------------
       
   347 //
       
   348 EXPORT_C CFbsBitmap* TPhoneCmdParamCallHeaderData::Thumbnail() const
       
   349    {
       
   350    return iThumbnail;
       
   351    }
       
   352 
       
   353 // ---------------------------------------------------------
       
   354 // TPhoneCmdParamCallHeaderData::SetThumbnail
       
   355 // Sets the pointer to thumbnail image
       
   356 // ---------------------------------------------------------
       
   357 //
       
   358 EXPORT_C void TPhoneCmdParamCallHeaderData::SetThumbnail( 
       
   359    CFbsBitmap* aThumbnail )
       
   360    {
       
   361    iThumbnail = aThumbnail;
       
   362    }
       
   363 
       
   364 // ---------------------------------------------------------
       
   365 // TPhoneCmdParamCallHeaderData::CallerText
       
   366 // Returns the Caller text
       
   367 // ---------------------------------------------------------
       
   368 //
       
   369 EXPORT_C const TDesC& TPhoneCmdParamCallHeaderData::CallerText() const
       
   370    {
       
   371    return iCallerText;
       
   372    }
       
   373 
       
   374 // ---------------------------------------------------------
       
   375 // TPhoneCmdParamCallHeaderData::CallerText
       
   376 // Sets the Caller text
       
   377 // ---------------------------------------------------------
       
   378 //
       
   379 EXPORT_C void TPhoneCmdParamCallHeaderData::SetCallerText( 
       
   380    const TDesC& aCallerText )
       
   381    {
       
   382    iCallerText.Set( aCallerText );
       
   383    }
       
   384    
       
   385 // ---------------------------------------------------------
       
   386 // TPhoneCmdParamCallHeaderData::SetParticipantCLI
       
   387 // Sets the Caller text
       
   388 // ---------------------------------------------------------
       
   389 //
       
   390 EXPORT_C void TPhoneCmdParamCallHeaderData::SetParticipantListCLI(
       
   391     TPhoneParticipantListCLI aCLIType )
       
   392     {
       
   393     iParticipantListCLI = aCLIType;
       
   394     }
       
   395 
       
   396 // ---------------------------------------------------------
       
   397 // TPhoneCmdParamCallHeaderData::ParticipantCLI
       
   398 // Sets the Caller text
       
   399 // ---------------------------------------------------------
       
   400 //
       
   401 EXPORT_C TPhoneCmdParamCallHeaderData::TPhoneParticipantListCLI 
       
   402     TPhoneCmdParamCallHeaderData::ParticipantCLI() const
       
   403     {
       
   404     return iParticipantListCLI;    
       
   405     }       
       
   406 
       
   407 // ---------------------------------------------------------
       
   408 // TPhoneCmdParamCallHeaderData::HasThumbnail
       
   409 // ---------------------------------------------------------
       
   410 //
       
   411 EXPORT_C TBool TPhoneCmdParamCallHeaderData::HasThumbnail() const
       
   412     {
       
   413     return iHasThumbnail;
       
   414     }    
       
   415 // ---------------------------------------------------------
       
   416 // TPhoneCmdParamCallHeaderData::SetHasThumbnail
       
   417 // ---------------------------------------------------------
       
   418 //
       
   419 EXPORT_C void TPhoneCmdParamCallHeaderData::SetHasThumbnail( TBool aStatus )
       
   420     {
       
   421     iHasThumbnail = aStatus;
       
   422     }
       
   423    
       
   424 // ---------------------------------------------------------
       
   425 // TPhoneCmdParamCallHeaderData::SetCipheringIndicatorAllowed
       
   426 // Sets the ciphering indicator allowed status
       
   427 // (other items were commented in a header).
       
   428 // ---------------------------------------------------------
       
   429 //
       
   430 EXPORT_C void TPhoneCmdParamCallHeaderData::SetCipheringIndicatorAllowed( 
       
   431     TBool aAllowed )
       
   432     {
       
   433     iCipheringIndicatorAllowed = aAllowed;
       
   434     }
       
   435 
       
   436 // ---------------------------------------------------------
       
   437 // TPhoneCmdParamCallHeaderData::CipheringIndicatorAllowed
       
   438 // Returns the ciphering indicator allowed status
       
   439 // (other items were commented in a header).
       
   440 // ---------------------------------------------------------
       
   441 //
       
   442 EXPORT_C TBool TPhoneCmdParamCallHeaderData::CipheringIndicatorAllowed() const    
       
   443     {
       
   444     return iCipheringIndicatorAllowed;
       
   445     }
       
   446 
       
   447 // ---------------------------------------------------------
       
   448 // TPhoneCmdParamCallHeaderData::SetServiceId
       
   449 // ---------------------------------------------------------
       
   450 //
       
   451 EXPORT_C void TPhoneCmdParamCallHeaderData::SetServiceId( TUint32 aServiceId )
       
   452     {
       
   453     iServiceId = aServiceId;
       
   454     }
       
   455 
       
   456 // ---------------------------------------------------------
       
   457 // TPhoneCmdParamCallHeaderData::ServiceId
       
   458 // ---------------------------------------------------------
       
   459 //
       
   460 EXPORT_C TUint32 TPhoneCmdParamCallHeaderData::ServiceId() const
       
   461     {
       
   462     return iServiceId;
       
   463     }
       
   464 
       
   465 // ---------------------------------------------------------
       
   466 // TPhoneCmdParamCallHeaderData::SetContactLink
       
   467 // ---------------------------------------------------------
       
   468 //
       
   469 EXPORT_C void TPhoneCmdParamCallHeaderData::SetContactLink( 
       
   470     const TDesC8& aContactLink )
       
   471     {
       
   472     iContactLink.Set( aContactLink );
       
   473     }
       
   474 
       
   475 // ---------------------------------------------------------
       
   476 // TPhoneCmdParamCallHeaderData::ContactLink
       
   477 // ---------------------------------------------------------
       
   478 //
       
   479 EXPORT_C const TDesC8& TPhoneCmdParamCallHeaderData::ContactLink() const
       
   480     {
       
   481     return iContactLink;
       
   482     }
       
   483 
       
   484 // ---------------------------------------------------------
       
   485 // TPhoneCmdParamCallHeaderData::SetRemotePhoneNumber
       
   486 // ---------------------------------------------------------
       
   487 //
       
   488 EXPORT_C void TPhoneCmdParamCallHeaderData::SetRemotePhoneNumber( 
       
   489     const TDesC& aPhoneNumber )
       
   490     {
       
   491     iRemotePhoneNumber.Set( aPhoneNumber );
       
   492     }
       
   493 
       
   494 // ---------------------------------------------------------
       
   495 // TPhoneCmdParamCallHeaderData::RemotePhoneNumber
       
   496 // ---------------------------------------------------------
       
   497 //
       
   498 EXPORT_C const TDesC& TPhoneCmdParamCallHeaderData::RemotePhoneNumber() const
       
   499     {
       
   500     return iRemotePhoneNumber;
       
   501     }
       
   502 
       
   503 //  End of File