phoneapp/phoneuiutils/src/tphonecmdparamemergencycallheaderdata.cpp
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2005 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 TPhoneCmdParamEmergencyCallHeaderData class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include "tphonecmdparamemergencycallheaderdata.h"   
       
    21 
       
    22 // ================= MEMBER FUNCTIONS =======================
       
    23 
       
    24 // -----------------------------------------------------------------------------
       
    25 // TPhoneCmdParamEmergencyCallHeaderData::TPhoneCmdParamEmergencyCallHeaderData
       
    26 // C++ default constructor can NOT contain any code, that
       
    27 // might leave.
       
    28 // -----------------------------------------------------------------------------
       
    29 //
       
    30 EXPORT_C TPhoneCmdParamEmergencyCallHeaderData::
       
    31 TPhoneCmdParamEmergencyCallHeaderData() :
       
    32     TPhoneCommandParam(),
       
    33     iLabelText( KNullDesC ),
       
    34     iHeaderText( KNullDesC ),
       
    35     iCiphering( EFalse ),
       
    36     iOwnPhoneNumberText( KNullDesC ),
       
    37     iCipheringIndicatorAllowed( ETrue )
       
    38     {
       
    39     iParamId = EPhoneParamIdEmergencyCallHeaderData;
       
    40     }
       
    41 
       
    42 // ---------------------------------------------------------
       
    43 // TPhoneCmdParamEmergencyCallHeaderData::SetLabelText
       
    44 // Sets the call header label text
       
    45 // (other items were commented in a header).
       
    46 // ---------------------------------------------------------
       
    47 //
       
    48 EXPORT_C void TPhoneCmdParamEmergencyCallHeaderData::SetLabelText( 
       
    49    const TDesC& aLabelText )
       
    50    {
       
    51    iLabelText.Set( aLabelText );
       
    52    }
       
    53 
       
    54 // ---------------------------------------------------------
       
    55 // TPhoneCmdParamEmergencyCallHeaderData::SetHeaderText
       
    56 // Sets the call header text
       
    57 // (other items were commented in a header).
       
    58 // ---------------------------------------------------------
       
    59 //
       
    60 EXPORT_C void TPhoneCmdParamEmergencyCallHeaderData::SetHeaderText( 
       
    61    const TDesC& aHeaderText )
       
    62    {
       
    63    iHeaderText.Set( aHeaderText );
       
    64    }
       
    65 
       
    66 // ---------------------------------------------------------
       
    67 // TPhoneCmdParamEmergencyCallHeaderData::SetCiphering
       
    68 // Sets the call header ciphering status
       
    69 // (other items were commented in a header).
       
    70 // ---------------------------------------------------------
       
    71 //
       
    72 EXPORT_C void TPhoneCmdParamEmergencyCallHeaderData::SetCiphering( 
       
    73    TBool aCiphering )
       
    74    {
       
    75    iCiphering = aCiphering;
       
    76    }
       
    77 
       
    78 // ---------------------------------------------------------
       
    79 // TPhoneCmdParamEmergencyCallHeaderData::SetOwnPhoneNumberText
       
    80 // Sets the call header own phone number text
       
    81 // (other items were commented in a header).
       
    82 // ---------------------------------------------------------
       
    83 //
       
    84 EXPORT_C void TPhoneCmdParamEmergencyCallHeaderData::SetOwnPhoneNumberText( 
       
    85    const TDesC& aOwnPhoneNumberText )
       
    86    {
       
    87    iOwnPhoneNumberText.Set( aOwnPhoneNumberText );
       
    88    }
       
    89 
       
    90 // ---------------------------------------------------------
       
    91 // TPhoneCmdParamEmergencyCallHeaderData::LabelText
       
    92 // Returns the call header label text
       
    93 // (other items were commented in a header).
       
    94 // ---------------------------------------------------------
       
    95 //
       
    96 EXPORT_C const TDesC& TPhoneCmdParamEmergencyCallHeaderData::LabelText() const
       
    97    {
       
    98    return iLabelText;
       
    99    }
       
   100 
       
   101 // ---------------------------------------------------------
       
   102 // TPhoneCmdParamEmergencyCallHeaderData::HeaderText
       
   103 // Returns the call header text
       
   104 // (other items were commented in a header).
       
   105 // ---------------------------------------------------------
       
   106 //
       
   107 EXPORT_C const TDesC& TPhoneCmdParamEmergencyCallHeaderData::HeaderText() const
       
   108    {
       
   109    return iHeaderText;
       
   110    }
       
   111 
       
   112 // ---------------------------------------------------------
       
   113 // TPhoneCmdParamEmergencyCallHeaderData::Ciphering
       
   114 // Returns the call header ciphering
       
   115 // (other items were commented in a header).
       
   116 // ---------------------------------------------------------
       
   117 //
       
   118 EXPORT_C TBool TPhoneCmdParamEmergencyCallHeaderData::Ciphering() const
       
   119    {
       
   120    return iCiphering;
       
   121    }
       
   122 
       
   123 // ---------------------------------------------------------
       
   124 // TPhoneCmdParamEmergencyCallHeaderData::OwnPhoneNumberText
       
   125 // Returns the call header own phone number text
       
   126 // (other items were commented in a header).
       
   127 // ---------------------------------------------------------
       
   128 //
       
   129 EXPORT_C const TDesC& 
       
   130 TPhoneCmdParamEmergencyCallHeaderData::OwnPhoneNumberText() const
       
   131    {
       
   132    return iOwnPhoneNumberText;
       
   133    }
       
   134 
       
   135 // ---------------------------------------------------------
       
   136 // TPhoneCmdParamEmergencyCallHeaderData::SetCipheringIndicatorAllowed
       
   137 // Sets the ciphering indicator allowed status
       
   138 // (other items were commented in a header).
       
   139 // ---------------------------------------------------------
       
   140 //
       
   141 EXPORT_C void TPhoneCmdParamEmergencyCallHeaderData::SetCipheringIndicatorAllowed( 
       
   142     TBool aAllowed )
       
   143     {
       
   144     iCipheringIndicatorAllowed = aAllowed;
       
   145     }
       
   146 
       
   147 // ---------------------------------------------------------
       
   148 // TPhoneCmdParamEmergencyCallHeaderData::CipheringIndicatorAllowed
       
   149 // Returns the ciphering indicator allowed status
       
   150 // (other items were commented in a header).
       
   151 // ---------------------------------------------------------
       
   152 //
       
   153 EXPORT_C TBool TPhoneCmdParamEmergencyCallHeaderData::CipheringIndicatorAllowed() const    
       
   154     {
       
   155     return iCipheringIndicatorAllowed;
       
   156     }
       
   157 
       
   158 //  End of File