phoneuis/dialer/src/cdialerstub.cpp
branchRCL_3
changeset 3 8871b09be73b
parent 0 5f000ab63145
child 6 38529f706030
equal deleted inserted replaced
2:c84cf270c54f 3:8871b09be73b
     1 /*
     1 /*
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2007 - 2010 Nokia Corporation and/or its subsidiary(-ies). 
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    28 //
    28 //
    29 // Symbian OS two phased constructor for telephony phone dialer mode
    29 // Symbian OS two phased constructor for telephony phone dialer mode
    30 // ---------------------------------------------------------------------------
    30 // ---------------------------------------------------------------------------
    31 //
    31 //
    32 EXPORT_C CDialer* CDialer::NewL( const CCoeControl& aContainer, 
    32 EXPORT_C CDialer* CDialer::NewL( const CCoeControl& aContainer, 
    33                                  const TRect& aRect )
    33                                  const TRect& aRect, 
       
    34                                  MPhoneDialerController* aController )
    34     {
    35     {
    35     CDialer* self = new( ELeave )CDialer ( );    
    36     CDialer* self = new( ELeave )CDialer ( );    
    36     CleanupStack::PushL( self );
    37     CleanupStack::PushL( self );
    37     self->ConstructL( aContainer , aRect );
    38     self->ConstructL( aContainer , aRect, aController );
    38     CleanupStack::Pop();    // self
    39     CleanupStack::Pop();    // self
    39     return self;
    40     return self;
    40     }
    41     }
    41 
    42 
    42 // Destructor
    43 // Destructor
    51 // Symbian OS two phased constructor for phone dialer more.
    52 // Symbian OS two phased constructor for phone dialer more.
    52 // ---------------------------------------------------------------------------
    53 // ---------------------------------------------------------------------------
    53 //
    54 //
    54 void CDialer::ConstructL( 
    55 void CDialer::ConstructL( 
    55     const CCoeControl& aContainer, 
    56     const CCoeControl& aContainer, 
    56     const TRect& aRect )
    57     const TRect& aRect,
    57     {    
    58     MPhoneDialerController* /*aController*/ )
       
    59     {
    58     // set window
    60     // set window
    59     SetContainerWindowL( aContainer );
    61     SetContainerWindowL( aContainer );
    60     SetParent( const_cast<CCoeControl*>(&aContainer) );
    62     SetParent( const_cast<CCoeControl*>(&aContainer) );
    61     iParentControl = &aContainer;
       
    62     SetRect( aRect );
    63     SetRect( aRect );
    63     }
    64     }
    64 
    65 
    65 // Constructor
    66 // Constructor
    66 CDialer::CDialer( ) :
    67 CDialer::CDialer( ) :
    88 EXPORT_C void CDialer::SetNumberEntryObserver( MNumberEntryObserver& /*aObserver*/ ) 
    89 EXPORT_C void CDialer::SetNumberEntryObserver( MNumberEntryObserver& /*aObserver*/ ) 
    89     {
    90     {
    90     // Empty
    91     // Empty
    91     }
    92     }
    92 
    93 
       
    94 // -----------------------------------------------------------------------------
       
    95 // CDialer::SetControllerL
       
    96 // -----------------------------------------------------------------------------
       
    97 //
       
    98 EXPORT_C void CDialer::SetControllerL( MPhoneDialerController* /*aController*/ ) 
       
    99     {
       
   100     // Empty
       
   101     }
       
   102 
       
   103 // ---------------------------------------------------------------------------
       
   104 // CDialer::Controller
       
   105 // ---------------------------------------------------------------------------
       
   106 //
       
   107 EXPORT_C MPhoneDialerController* CDialer::Controller()
       
   108     {
       
   109     return NULL;
       
   110     }
       
   111 
       
   112 // -----------------------------------------------------------------------------
       
   113 // CDialer::GetEasyDialingInterface
       
   114 // -----------------------------------------------------------------------------
       
   115 //
       
   116 EXPORT_C CDialingExtensionInterface* CDialer::GetEasyDialingInterface() const
       
   117     {
       
   118     return NULL;
       
   119     }
       
   120 
       
   121 // ---------------------------------------------------------------------------
       
   122 // CDialer::UpdateToolbar
       
   123 // ---------------------------------------------------------------------------
       
   124 //
       
   125 EXPORT_C void CDialer::UpdateToolbar()
       
   126     {
       
   127     // empty
       
   128     }
    93 
   129 
    94 // Methods from MNumberEntry
   130 // Methods from MNumberEntry
    95 
   131 
    96 // ---------------------------------------------------------------------------
   132 // ---------------------------------------------------------------------------
    97 // CDialer::CreateNumberEntry
   133 // CDialer::CreateNumberEntry
   224 //    
   260 //    
   225 void CDialer::EnableTactileFeedback( const TBool /*aEnable*/ )
   261 void CDialer::EnableTactileFeedback( const TBool /*aEnable*/ )
   226     {
   262     {
   227     // Empty
   263     // Empty
   228     }
   264     }
       
   265 
       
   266 
       
   267 // ---------------------------------------------------------------------------
       
   268 // CDialer::HandleControlEventL
       
   269 // ---------------------------------------------------------------------------
       
   270 //
       
   271 void CDialer::HandleControlEventL( CCoeControl* /*aControl*/, TCoeEvent /*aEventType*/ )
       
   272     {
       
   273     // Empty
       
   274     }
       
   275 
       
   276 
   229 // Functions from CCoeControl
   277 // Functions from CCoeControl
   230 
   278 
   231 // ---------------------------------------------------------------------------
   279 // ---------------------------------------------------------------------------
   232 // CDialer::SizeChanged
   280 // CDialer::SizeChanged
   233 // 
   281 //