phoneapp/phoneuiutils/src/tphonecmdparamreconnectquery.cpp
changeset 37 ba76fc04e6c2
child 51 f39ed5e045e0
equal deleted inserted replaced
36:2eacb6118286 37:ba76fc04e6c2
       
     1 /*
       
     2 * Copyright (c) 2006 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 TPhoneCmdParamReconnectQuery class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include <ccauireconnectquery.h>
       
    21 
       
    22 #include "tphonecmdparamreconnectquery.h" 
       
    23 #include "phoneui.pan"
       
    24 
       
    25 // ================= MEMBER FUNCTIONS =======================
       
    26 
       
    27 // -----------------------------------------------------------------------------
       
    28 // TPhoneCmdParamReconnectQuery::TPhoneCmdParamReconnectQuery
       
    29 // C++ default constructor can NOT contain any code, that
       
    30 // might leave.
       
    31 // -----------------------------------------------------------------------------
       
    32 //
       
    33 EXPORT_C TPhoneCmdParamReconnectQuery::TPhoneCmdParamReconnectQuery( 
       
    34     MCaUiReconnectQueryObserver& aObserver ):
       
    35     TPhoneCommandParam(),
       
    36     iObserver( aObserver ),
       
    37     iContactMatcher( NULL ),
       
    38     iPhoneNumber( KNullDesC ),
       
    39     iIncludeVideoCallOption( EFalse )
       
    40     {
       
    41     iParamId = EPhoneParamIdReconnectQuery;
       
    42     }
       
    43 
       
    44 // ---------------------------------------------------------
       
    45 // TPhoneCmdParamReconnectQuery::SetContactMatcher
       
    46 // ---------------------------------------------------------
       
    47 //
       
    48 EXPORT_C void TPhoneCmdParamReconnectQuery::SetContactMatcher( CPhCntMatcher* aPhCntMatcher )
       
    49     {
       
    50     __ASSERT_DEBUG( aPhCntMatcher, 
       
    51         Panic( EPhoneUtilsParameterNotInitialized ) );
       
    52     iContactMatcher = aPhCntMatcher;   
       
    53     }
       
    54 
       
    55 // ---------------------------------------------------------
       
    56 // TPhoneCmdParamReconnectQuery::SetPhoneNumber
       
    57 // ---------------------------------------------------------
       
    58 //
       
    59 EXPORT_C void TPhoneCmdParamReconnectQuery::SetPhoneNumber( const TPtrC aPhoneNumber )
       
    60     {
       
    61     iPhoneNumber.Set( aPhoneNumber );   
       
    62     }
       
    63 
       
    64 // ---------------------------------------------------------
       
    65 // TPhoneCmdParamReconnectQuery::SetIncludeVideoOption
       
    66 // ---------------------------------------------------------
       
    67 //
       
    68 EXPORT_C void TPhoneCmdParamReconnectQuery::SetIncludeVideoOption( 
       
    69     const TBool aIncludeVideoCallOption )
       
    70     {
       
    71     iIncludeVideoCallOption = aIncludeVideoCallOption;
       
    72     }
       
    73 
       
    74 // ---------------------------------------------------------
       
    75 // TPhoneCmdParamReconnectQuery::ReconnectQueryObserver
       
    76 // ---------------------------------------------------------
       
    77 //
       
    78 EXPORT_C MCaUiReconnectQueryObserver& TPhoneCmdParamReconnectQuery::ReconnectQueryObserver() const
       
    79     {
       
    80     return iObserver;
       
    81     }
       
    82 
       
    83 // ---------------------------------------------------------
       
    84 // TPhoneCmdParamReconnectQuery::ContactMatcher
       
    85 // ---------------------------------------------------------
       
    86 //
       
    87 EXPORT_C CPhCntMatcher* TPhoneCmdParamReconnectQuery::ContactMatcher() const
       
    88     {
       
    89     return iContactMatcher;
       
    90     }
       
    91 
       
    92 // ---------------------------------------------------------
       
    93 // TPhoneCmdParamReconnectQuery::PhoneNumber
       
    94 // ---------------------------------------------------------
       
    95 //
       
    96 EXPORT_C const TPtrC TPhoneCmdParamReconnectQuery::PhoneNumber() const
       
    97     {
       
    98     return iPhoneNumber;
       
    99     }
       
   100 
       
   101 // ---------------------------------------------------------
       
   102 // TPhoneCmdParamReconnectQuery::IncludeVideoCallOption
       
   103 // ---------------------------------------------------------
       
   104 //
       
   105 EXPORT_C TBool TPhoneCmdParamReconnectQuery::IncludeVideoCallOption() const
       
   106     {
       
   107     return iIncludeVideoCallOption;
       
   108     }
       
   109 
       
   110 //  End of File