phoneapp/phoneuiutils/src/tphonecmdparamincallindicatordata.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 TPhoneCmdParamIncallIndicatorData class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include "tphonecmdparamincallindicatordata.h"   
       
    21 
       
    22 // ================= MEMBER FUNCTIONS =======================
       
    23 
       
    24 // -----------------------------------------------------------------------------
       
    25 // TPhoneCmdParamIncallIndicatorData::TPhoneCmdParamIncallIndicatorData
       
    26 // C++ default constructor can NOT contain any code, that
       
    27 // might leave.
       
    28 // -----------------------------------------------------------------------------
       
    29 //
       
    30 EXPORT_C 
       
    31 TPhoneCmdParamIncallIndicatorData::TPhoneCmdParamIncallIndicatorData() :
       
    32     iCallState( 0 ),
       
    33     iMode( 0 ),
       
    34     iMute( EFalse ),
       
    35     iCiphering( EFalse ),
       
    36     iEmergency( EFalse ),
       
    37     iLine2( EFalse ),
       
    38     iLittleBubbleVisible( ETrue ), 
       
    39     iCipheringIndicatorAllowed( ETrue )
       
    40     {
       
    41     iParamId = EPhoneParamIdIncallIndicatorData;
       
    42     }
       
    43 
       
    44 // ---------------------------------------------------------
       
    45 // TPhoneCmdParamIncallIndicatorData::SetCallState
       
    46 // Sets the incall indicator call state
       
    47 // (other items were commented in a header).
       
    48 // ---------------------------------------------------------
       
    49 //
       
    50 EXPORT_C void TPhoneCmdParamIncallIndicatorData::SetCallState( 
       
    51    TInt aCallState )
       
    52    {
       
    53    iCallState = aCallState;
       
    54    }
       
    55 
       
    56 // ---------------------------------------------------------
       
    57 // TPhoneCmdParamIncallIndicatorData::SetMode
       
    58 // Sets the incall indicator mode
       
    59 // (other items were commented in a header).
       
    60 // ---------------------------------------------------------
       
    61 //
       
    62 EXPORT_C void TPhoneCmdParamIncallIndicatorData::SetMode( TInt aMode )
       
    63    {
       
    64    iMode = aMode;
       
    65    }
       
    66 
       
    67 // ---------------------------------------------------------
       
    68 // TPhoneCmdParamIncallIndicatorData::SetMute
       
    69 // Sets the incall indicator mute status
       
    70 // (other items were commented in a header).
       
    71 // ---------------------------------------------------------
       
    72 //
       
    73 EXPORT_C void TPhoneCmdParamIncallIndicatorData::SetMute( 
       
    74    TBool aMute )
       
    75    {
       
    76    iMute = aMute;
       
    77    }
       
    78 
       
    79 // ---------------------------------------------------------
       
    80 // TPhoneCmdParamIncallIndicatorData::SetCiphering
       
    81 // Sets the incall indicator ciphering status
       
    82 // (other items were commented in a header).
       
    83 // ---------------------------------------------------------
       
    84 //
       
    85 EXPORT_C void TPhoneCmdParamIncallIndicatorData::SetCiphering( 
       
    86    TBool aCiphering )
       
    87    {
       
    88    iCiphering = aCiphering;
       
    89    }
       
    90 
       
    91 // ---------------------------------------------------------
       
    92 // TPhoneCmdParamIncallIndicatorData::SetEmergency
       
    93 // Sets the incall indicator emergency status
       
    94 // (other items were commented in a header).
       
    95 // ---------------------------------------------------------
       
    96 //
       
    97 EXPORT_C void TPhoneCmdParamIncallIndicatorData::SetEmergency( 
       
    98    TBool aEmergency )
       
    99    {
       
   100    iEmergency = aEmergency;
       
   101    }
       
   102 
       
   103 // ---------------------------------------------------------
       
   104 // TPhoneCmdParamIncallIndicatorData::SetMute
       
   105 // Sets the incall indicator mute status
       
   106 // (other items were commented in a header).
       
   107 // ---------------------------------------------------------
       
   108 //
       
   109 EXPORT_C void TPhoneCmdParamIncallIndicatorData::SetLine2( 
       
   110    TBool aLine2 )
       
   111    {
       
   112    iLine2 = aLine2;
       
   113    }
       
   114 
       
   115 // ---------------------------------------------------------
       
   116 // TPhoneCmdParamIncallIndicatorData::SetLittleBubbleVisible
       
   117 // Sets the little bubble visible or hidden
       
   118 // (other items were commented in a header).
       
   119 // ---------------------------------------------------------
       
   120 //
       
   121 EXPORT_C void TPhoneCmdParamIncallIndicatorData::SetLittleBubbleVisible( 
       
   122    TBool aVisible )
       
   123    {
       
   124    iLittleBubbleVisible = aVisible;
       
   125    }
       
   126    
       
   127 // ---------------------------------------------------------
       
   128 // TPhoneCmdParamIncallIndicatorData::CallState
       
   129 // Returns the incall indicator call state
       
   130 // (other items were commented in a header).
       
   131 // ---------------------------------------------------------
       
   132 //
       
   133 EXPORT_C TInt TPhoneCmdParamIncallIndicatorData::CallState() const
       
   134    {
       
   135    return iCallState;
       
   136    }
       
   137 
       
   138 // ---------------------------------------------------------
       
   139 // TPhoneCmdParamIncallIndicatorData::Mode
       
   140 // Returns the incall indicator mode
       
   141 // (other items were commented in a header).
       
   142 // ---------------------------------------------------------
       
   143 //
       
   144 EXPORT_C TInt TPhoneCmdParamIncallIndicatorData::Mode() const
       
   145    {
       
   146    return iMode;
       
   147    }
       
   148 
       
   149 // ---------------------------------------------------------
       
   150 // TPhoneCmdParamIncallIndicatorData::Mute
       
   151 // Returns the incall indicator mute
       
   152 // (other items were commented in a header).
       
   153 // ---------------------------------------------------------
       
   154 //
       
   155 EXPORT_C TBool TPhoneCmdParamIncallIndicatorData::Mute() const
       
   156    {
       
   157    return iMute;
       
   158    }
       
   159 
       
   160 // ---------------------------------------------------------
       
   161 // TPhoneCmdParamIncallIndicatorData::Ciphering
       
   162 // Returns the incall indicator ciphering status
       
   163 // (other items were commented in a header).
       
   164 // ---------------------------------------------------------
       
   165 //
       
   166 EXPORT_C TBool TPhoneCmdParamIncallIndicatorData::Ciphering() const
       
   167    {
       
   168    return iCiphering;
       
   169    }
       
   170 
       
   171 // ---------------------------------------------------------
       
   172 // TPhoneCmdParamIncallIndicatorData::Emergency
       
   173 // Returns the incall indicator emergency status
       
   174 // (other items were commented in a header).
       
   175 // ---------------------------------------------------------
       
   176 //
       
   177 EXPORT_C TBool TPhoneCmdParamIncallIndicatorData::Emergency() const
       
   178    {
       
   179    return iEmergency;
       
   180    }
       
   181 
       
   182 // ---------------------------------------------------------
       
   183 // TPhoneCmdParamIncallIndicatorData::Line2
       
   184 // Returns the incall indicator line2
       
   185 // (other items were commented in a header).
       
   186 // ---------------------------------------------------------
       
   187 //
       
   188 EXPORT_C TBool TPhoneCmdParamIncallIndicatorData::Line2() const
       
   189    {
       
   190    return iLine2;
       
   191    }
       
   192 
       
   193 // ---------------------------------------------------------
       
   194 // TPhoneCmdParamIncallIndicatorData::LittleBubbleVisible
       
   195 // Returns the little bubble visible status
       
   196 // (other items were commented in a header).
       
   197 // ---------------------------------------------------------
       
   198 //
       
   199 EXPORT_C TBool TPhoneCmdParamIncallIndicatorData::LittleBubbleVisible() const
       
   200    {
       
   201    return iLittleBubbleVisible;
       
   202    }
       
   203 
       
   204 // ---------------------------------------------------------
       
   205 // TPhoneCmdParamIncallIndicatorData::SetCipheringIndicatorAllowed
       
   206 // Sets the ciphering indicator allowed status
       
   207 // (other items were commented in a header).
       
   208 // ---------------------------------------------------------
       
   209 //
       
   210 EXPORT_C void TPhoneCmdParamIncallIndicatorData::SetCipheringIndicatorAllowed( 
       
   211     TBool aAllowed )
       
   212     {
       
   213     iCipheringIndicatorAllowed = aAllowed;
       
   214     }
       
   215 
       
   216 // ---------------------------------------------------------
       
   217 // TPhoneCmdParamIncallIndicatorData::CipheringIndicatorAllowed
       
   218 // Returns the ciphering indicator allowed status
       
   219 // (other items were commented in a header).
       
   220 // ---------------------------------------------------------
       
   221 //
       
   222 EXPORT_C TBool TPhoneCmdParamIncallIndicatorData::CipheringIndicatorAllowed() const    
       
   223     {
       
   224     return iCipheringIndicatorAllowed;
       
   225     }
       
   226     
       
   227 
       
   228 //  End of File