phoneuis/BubbleManager/Src/BMCallHeader.cpp
branchRCL_3
changeset 62 5266b1f337bd
parent 0 5f000ab63145
equal deleted inserted replaced
61:41a7f70b3818 62:5266b1f337bd
       
     1 /*
       
     2 * Copyright (c) 2002 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:  Call Header
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include    "BMCallHeader.h"
       
    21 
       
    22 
       
    23 // ========================= MEMBER FUNCTIONS ================================
       
    24 
       
    25 // ---------------------------------------------------------------------------
       
    26 // CBubbleCallHeader::CBubbleCallHeader
       
    27 // Default constructor
       
    28 // 
       
    29 // ---------------------------------------------------------------------------
       
    30 //
       
    31 CBubbleCallHeader::CBubbleCallHeader()
       
    32     {
       
    33     }
       
    34 
       
    35 
       
    36 // ---------------------------------------------------------------------------
       
    37 // CBubbleCallHeader::NewL
       
    38 // Symbian OS two phased constructor
       
    39 // 
       
    40 // ---------------------------------------------------------------------------
       
    41 //
       
    42 CBubbleCallHeader* CBubbleCallHeader::NewL( 
       
    43                                  const CBubbleManager::TBubbleId& aBubbleId )
       
    44     {
       
    45     CBubbleCallHeader* self = new( ELeave )CBubbleCallHeader( );    
       
    46     CleanupStack::PushL( self );
       
    47     self->ConstructL( aBubbleId );
       
    48     CleanupStack::Pop( );    // self
       
    49     return self;
       
    50     }
       
    51 
       
    52 
       
    53 // ---------------------------------------------------------------------------
       
    54 // CBubbleCallHeader::ConstructL
       
    55 // 
       
    56 // ---------------------------------------------------------------------------
       
    57 //
       
    58 void CBubbleCallHeader::ConstructL( 
       
    59     const CBubbleManager::TBubbleId& aBubbleId )
       
    60     {
       
    61     CBubbleHeader::ConstructL( aBubbleId ); // call to parent's ConstructL
       
    62     Reset( );
       
    63     }
       
    64 
       
    65 // ---------------------------------------------------------------------------
       
    66 // CBubbleCallHeader::~CBubbleCallHeader
       
    67 // Destructor
       
    68 // 
       
    69 // ---------------------------------------------------------------------------
       
    70 //
       
    71 CBubbleCallHeader::~CBubbleCallHeader()
       
    72     {
       
    73     }
       
    74 
       
    75 // ---------------------------------------------------------------------------
       
    76 // CBubbleCallHeader::IsUsed
       
    77 // 
       
    78 // 
       
    79 // ---------------------------------------------------------------------------
       
    80 //
       
    81 TBool CBubbleCallHeader::IsUsed( ) const
       
    82     {
       
    83     return iIsUsed;
       
    84     }
       
    85 
       
    86 // ---------------------------------------------------------------------------
       
    87 // CBubbleCallHeader::SetIsUsed
       
    88 // 
       
    89 // 
       
    90 // ---------------------------------------------------------------------------
       
    91 //
       
    92 void CBubbleCallHeader::SetIsUsed( const TBool& aIsUsed )
       
    93     {
       
    94     iIsUsed = aIsUsed;
       
    95     if ( !iIsUsed )
       
    96         {
       
    97         Reset( );
       
    98         }
       
    99     }
       
   100 
       
   101 // ---------------------------------------------------------------------------
       
   102 // CBubbleCallHeader::IsConference
       
   103 // 
       
   104 // 
       
   105 // ---------------------------------------------------------------------------
       
   106 //
       
   107 TBool CBubbleCallHeader::IsConference() const
       
   108     {
       
   109     return EFalse; // This is for normal call header.
       
   110     }
       
   111 
       
   112 // ---------------------------------------------------------------------------
       
   113 // CBubbleCallHeader::Reset
       
   114 //
       
   115 // 
       
   116 // ---------------------------------------------------------------------------
       
   117 //
       
   118 void CBubbleCallHeader::Reset()
       
   119     {
       
   120     iIsUsed = EFalse;
       
   121     ResetParent( ); // call to parent's reset
       
   122     }
       
   123 
       
   124 // End of File