phonebookui/Phonebook2/UIControls/src/CPbk2NamesListStartupState.cpp
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2005-2007 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:  Phonebook 2 names list not ready state.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include "CPbk2NamesListStartupState.h"
       
    21 
       
    22 // Phonebook 2
       
    23 #include "CPbk2ContactViewListBox.h"
       
    24 #include "CPbk2NamesListControl.h"
       
    25 #include <Pbk2MenuFilteringFlags.hrh>
       
    26 
       
    27 // System includes
       
    28 #include <AknsDrawUtils.h>
       
    29 #include <aknsfld.h>    // CAknSearchField
       
    30 
       
    31 // Debugging headers
       
    32 #include <Pbk2Debug.h>
       
    33 
       
    34 
       
    35 /// Unnamed namespace for local definitions
       
    36 namespace {
       
    37 
       
    38 const TInt KNumberOfContacts = 0;
       
    39 const TInt KNumberOfControls = 1;
       
    40 
       
    41 } /// namespace
       
    42 
       
    43 
       
    44 // --------------------------------------------------------------------------
       
    45 // CPbk2NamesListStartupState::CPbk2NamesListStartupState
       
    46 // --------------------------------------------------------------------------
       
    47 //
       
    48 inline CPbk2NamesListStartupState::CPbk2NamesListStartupState(
       
    49         const CCoeControl& aParent,
       
    50         CPbk2ContactViewListBox& aListBox,
       
    51         CAknSearchField* aFindBox ) :
       
    52             iParent(aParent),
       
    53             iListBox(aListBox),
       
    54             iFindBox( aFindBox )
       
    55     {
       
    56     }
       
    57 
       
    58 // --------------------------------------------------------------------------
       
    59 // CPbk2NamesListStartupState::~CPbk2NamesListStartupState
       
    60 // --------------------------------------------------------------------------
       
    61 //
       
    62 CPbk2NamesListStartupState::~CPbk2NamesListStartupState()
       
    63     {
       
    64     }
       
    65 
       
    66 // --------------------------------------------------------------------------
       
    67 // CPbk2NamesListStartupState::NewL
       
    68 // --------------------------------------------------------------------------
       
    69 //
       
    70 CPbk2NamesListStartupState* CPbk2NamesListStartupState::NewLC
       
    71         ( const CCoeControl* aParent, CPbk2ContactViewListBox& aListBox,
       
    72           CAknSearchField* aFindBox )
       
    73     {
       
    74     CPbk2NamesListStartupState* self =
       
    75         new (ELeave) CPbk2NamesListStartupState(
       
    76                             *aParent, aListBox, aFindBox );
       
    77     CleanupStack::PushL( self );
       
    78     return self;
       
    79     }
       
    80 
       
    81 // --------------------------------------------------------------------------
       
    82 // CPbk2NamesListStartupState::ActivateStateL
       
    83 // --------------------------------------------------------------------------
       
    84 //
       
    85 void CPbk2NamesListStartupState::ActivateStateL()
       
    86     {
       
    87     // Set findbox not focused to prevent cursor blinking in list view.
       
    88     if ( iFindBox && iFindBox->IsFocused() )
       
    89         {
       
    90         iFindBox->SetFocus( EFalse );
       
    91         }
       
    92     }
       
    93 
       
    94 // --------------------------------------------------------------------------
       
    95 // CPbk2NamesListStartupState::DeactivateState
       
    96 // --------------------------------------------------------------------------
       
    97 //
       
    98 void CPbk2NamesListStartupState::DeactivateState()
       
    99     {
       
   100     if ( iFindBox && !iFindBox->IsFocused() )
       
   101         {
       
   102         iFindBox->SetFocus( ETrue );
       
   103         }
       
   104     }
       
   105 
       
   106 // --------------------------------------------------------------------------
       
   107 // CPbk2NamesListStartupState::CountComponentControls
       
   108 // --------------------------------------------------------------------------
       
   109 //
       
   110 TInt CPbk2NamesListStartupState::CountComponentControls() const
       
   111     {
       
   112     return KNumberOfControls;
       
   113     }
       
   114 
       
   115 // --------------------------------------------------------------------------
       
   116 // CPbk2NamesListStartupState::ComponentControl
       
   117 // --------------------------------------------------------------------------
       
   118 //
       
   119 CCoeControl* CPbk2NamesListStartupState::ComponentControl
       
   120         ( TInt /*aIndex*/ ) const
       
   121     {
       
   122     return &iListBox;
       
   123     }
       
   124 
       
   125 // --------------------------------------------------------------------------
       
   126 // CPbk2NamesListStartupState::SizeChanged
       
   127 // --------------------------------------------------------------------------
       
   128 //
       
   129 void CPbk2NamesListStartupState::SizeChanged()
       
   130     {
       
   131     const TRect rect(iParent.Rect());
       
   132     PBK2_DEBUG_PRINT(PBK2_DEBUG_STRING
       
   133         ("CPbk2NamesListStartupState::SizeChanged(0x%x), rect=(%d,%d,%d,%d)"),
       
   134         this, rect.iTl.iX, rect.iTl.iY, rect.iBr.iX, rect.iBr.iY);
       
   135 
       
   136     AknLayoutUtils::LayoutControl(&iListBox, rect,
       
   137         AKN_LAYOUT_WINDOW_list_gen_pane(0));
       
   138     }
       
   139 
       
   140 // --------------------------------------------------------------------------
       
   141 // CPbk2NamesListStartupState::MakeComponentsVisible
       
   142 // --------------------------------------------------------------------------
       
   143 //
       
   144 void CPbk2NamesListStartupState::MakeComponentsVisible
       
   145         ( TBool aVisible )
       
   146     {
       
   147     PBK2_DEBUG_PRINT(PBK2_DEBUG_STRING(
       
   148         "CPbk2NamesListStartupState::MakeComponentsVisible(0x%x,%d)"),
       
   149             this, aVisible);
       
   150 
       
   151     iListBox.MakeVisible(aVisible);
       
   152     }
       
   153 
       
   154 // --------------------------------------------------------------------------
       
   155 // CPbk2NamesListStartupState::ActivateL
       
   156 // --------------------------------------------------------------------------
       
   157 //
       
   158 void CPbk2NamesListStartupState::ActivateL()
       
   159     {
       
   160     // Do nothing
       
   161     }
       
   162 
       
   163 // --------------------------------------------------------------------------
       
   164 // CPbk2NamesListStartupState::Draw
       
   165 // --------------------------------------------------------------------------
       
   166 //
       
   167 void CPbk2NamesListStartupState::Draw
       
   168         (const TRect& aRect, CWindowGc& /*aGc*/) const
       
   169     {
       
   170     PBK2_DEBUG_PRINT(PBK2_DEBUG_STRING(
       
   171         "CPbk2NamesListStartupState::Draw(0x%x, TRect(%d,%d,%d,%d))"),
       
   172         this, aRect.iTl.iX, aRect.iTl.iY, aRect.iBr.iX, aRect.iBr.iY);
       
   173     }
       
   174 
       
   175 // --------------------------------------------------------------------------
       
   176 // CPbk2NamesListStartupState::OfferKeyEventL
       
   177 // --------------------------------------------------------------------------
       
   178 //
       
   179 TKeyResponse CPbk2NamesListStartupState::OfferKeyEventL
       
   180         (const TKeyEvent& /*aKeyEvent*/, TEventCode /*aType*/)
       
   181     {
       
   182     return EKeyWasNotConsumed;
       
   183     }
       
   184 
       
   185 // --------------------------------------------------------------------------
       
   186 // CPbk2NamesListStartupState::HandlePointerEventL
       
   187 // --------------------------------------------------------------------------
       
   188 //
       
   189 void CPbk2NamesListStartupState::HandlePointerEventL
       
   190         ( const TPointerEvent& /*aPointerEvent*/ )
       
   191     {
       
   192     // Do nothing
       
   193     }
       
   194 
       
   195 // --------------------------------------------------------------------------
       
   196 // CPbk2NamesListStartupState::NamesListState
       
   197 // --------------------------------------------------------------------------
       
   198 //
       
   199 TInt CPbk2NamesListStartupState::NamesListState() const
       
   200     {
       
   201     return CPbk2NamesListControl::EStateStartup;
       
   202     }
       
   203 
       
   204 // --------------------------------------------------------------------------
       
   205 // CPbk2NamesListStartupState::HandleContactViewEventL
       
   206 // --------------------------------------------------------------------------
       
   207 //
       
   208 void CPbk2NamesListStartupState::HandleContactViewEventL
       
   209         ( TInt /*aEvent*/, TInt /*aIndex*/ )
       
   210     {
       
   211     // Do nothing
       
   212     }
       
   213 
       
   214 // --------------------------------------------------------------------------
       
   215 // CPbk2NamesListStartupState::HandleCommandEventL
       
   216 // --------------------------------------------------------------------------
       
   217 //
       
   218 void CPbk2NamesListStartupState::HandleCommandEventL
       
   219         (TInt /*aEvent*/, TInt /*aListboxIndex*/)
       
   220     {
       
   221     // Do nothing
       
   222     }
       
   223 
       
   224 
       
   225 // --------------------------------------------------------------------------
       
   226 // CPbk2NamesListStartupState::CoeControl
       
   227 // --------------------------------------------------------------------------
       
   228 //
       
   229 CCoeControl& CPbk2NamesListStartupState::CoeControl()
       
   230     {
       
   231     return const_cast<CCoeControl&>(iParent);
       
   232     }
       
   233 
       
   234 // --------------------------------------------------------------------------
       
   235 // CPbk2NamesListStartupState::HandleControlEventL
       
   236 // --------------------------------------------------------------------------
       
   237 //
       
   238 void CPbk2NamesListStartupState::HandleControlEventL(
       
   239         CCoeControl* /*aControl*/,
       
   240         MCoeControlObserver::TCoeEvent /*aEventType*/, TInt /*aParam*/ )
       
   241     {
       
   242     // Do nothing
       
   243     }
       
   244 
       
   245 // --------------------------------------------------------------------------
       
   246 // CPbk2NamesListStartupState::TopContactL
       
   247 // --------------------------------------------------------------------------
       
   248 //
       
   249 const MVPbkViewContact* CPbk2NamesListStartupState::TopContactL()
       
   250     {
       
   251     return NULL;
       
   252     }
       
   253 
       
   254 // --------------------------------------------------------------------------
       
   255 // CPbk2NamesListStartupState::ParentControl
       
   256 // --------------------------------------------------------------------------
       
   257 //
       
   258 MPbk2ContactUiControl* CPbk2NamesListStartupState::ParentControl() const
       
   259     {
       
   260     // Names list control does not have a parent control
       
   261     return NULL;
       
   262     }
       
   263 
       
   264 // --------------------------------------------------------------------------
       
   265 // CPbk2NamesListStartupState::NumberOfContacts
       
   266 // --------------------------------------------------------------------------
       
   267 //
       
   268 TInt CPbk2NamesListStartupState::NumberOfContacts() const
       
   269     {
       
   270     return KNumberOfContacts;
       
   271     }
       
   272 
       
   273 // --------------------------------------------------------------------------
       
   274 // CPbk2NamesListStartupState::FocusedContactL
       
   275 // --------------------------------------------------------------------------
       
   276 //
       
   277 const MVPbkBaseContact* CPbk2NamesListStartupState::FocusedContactL() const
       
   278     {
       
   279     return NULL;
       
   280     }
       
   281 
       
   282 // --------------------------------------------------------------------------
       
   283 // CPbk2NamesListStartupState::FocusedViewContactL
       
   284 // --------------------------------------------------------------------------
       
   285 //
       
   286 const MVPbkViewContact*
       
   287         CPbk2NamesListStartupState::FocusedViewContactL() const
       
   288     {
       
   289     return NULL;
       
   290     }
       
   291 
       
   292 // --------------------------------------------------------------------------
       
   293 // CPbk2NamesListStartupState::FocusedStoreContact
       
   294 // --------------------------------------------------------------------------
       
   295 //
       
   296 const MVPbkStoreContact*
       
   297         CPbk2NamesListStartupState::FocusedStoreContact() const
       
   298     {
       
   299     return NULL;
       
   300     }
       
   301 
       
   302 // --------------------------------------------------------------------------
       
   303 // CPbk2NamesListStartupState::SetFocusedContactL
       
   304 // --------------------------------------------------------------------------
       
   305 //
       
   306 void CPbk2NamesListStartupState::SetFocusedContactL
       
   307         ( const MVPbkBaseContact& /*aContact*/ )
       
   308     {
       
   309     // Do nothing
       
   310     }
       
   311 
       
   312 // --------------------------------------------------------------------------
       
   313 // CPbk2NamesListStartupState::SetFocusedContactL
       
   314 // --------------------------------------------------------------------------
       
   315 //
       
   316 void CPbk2NamesListStartupState::SetFocusedContactL
       
   317         ( const MVPbkContactBookmark& /*aContactBookmark*/ )
       
   318     {
       
   319     // Do nothing
       
   320     }
       
   321 
       
   322 // --------------------------------------------------------------------------
       
   323 // CPbk2NamesListStartupState::SetFocusedContactL
       
   324 // --------------------------------------------------------------------------
       
   325 //
       
   326 void CPbk2NamesListStartupState::SetFocusedContactL
       
   327         ( const MVPbkContactLink& /*aContactLink*/ )
       
   328     {
       
   329     // Do nothing
       
   330     }
       
   331 
       
   332 // --------------------------------------------------------------------------
       
   333 // CPbk2NamesListStartupState::FocusedContactIndex
       
   334 // --------------------------------------------------------------------------
       
   335 //
       
   336 TInt CPbk2NamesListStartupState::FocusedContactIndex() const
       
   337     {
       
   338     return KErrNotFound;
       
   339     }
       
   340 
       
   341 // --------------------------------------------------------------------------
       
   342 // CPbk2NamesListStartupState::SetFocusedContactIndexL
       
   343 // --------------------------------------------------------------------------
       
   344 //
       
   345 void CPbk2NamesListStartupState::SetFocusedContactIndexL( TInt /*aIndex*/ )
       
   346     {
       
   347     // Do nothing
       
   348     }
       
   349 
       
   350 // --------------------------------------------------------------------------
       
   351 // CPbk2NamesListStartupState::NumberOfContactFields
       
   352 // --------------------------------------------------------------------------
       
   353 //
       
   354 TInt CPbk2NamesListStartupState::NumberOfContactFields() const
       
   355     {
       
   356     return KErrNotSupported;
       
   357     }
       
   358 
       
   359 // --------------------------------------------------------------------------
       
   360 // CPbk2NamesListStartupState::FocusedField
       
   361 // --------------------------------------------------------------------------
       
   362 //
       
   363 const MVPbkBaseContactField*
       
   364         CPbk2NamesListStartupState::FocusedField() const
       
   365     {
       
   366     return NULL;
       
   367     }
       
   368 
       
   369 // --------------------------------------------------------------------------
       
   370 // CPbk2NamesListStartupState::FocusedFieldIndex
       
   371 // --------------------------------------------------------------------------
       
   372 //
       
   373 TInt CPbk2NamesListStartupState::FocusedFieldIndex() const
       
   374     {
       
   375     return KErrNotFound;
       
   376     }
       
   377 
       
   378 // --------------------------------------------------------------------------
       
   379 // CPbk2NamesListStartupState::SetFocusedFieldIndex
       
   380 // --------------------------------------------------------------------------
       
   381 //
       
   382 void CPbk2NamesListStartupState::SetFocusedFieldIndex( TInt /*aIndex*/ )
       
   383     {
       
   384     // Do nothing
       
   385     }
       
   386 
       
   387 // --------------------------------------------------------------------------
       
   388 // CPbk2NamesListStartupState::ContactsMarked
       
   389 // --------------------------------------------------------------------------
       
   390 //
       
   391 TBool CPbk2NamesListStartupState::ContactsMarked() const
       
   392     {
       
   393     return EFalse;
       
   394     }
       
   395 
       
   396 // --------------------------------------------------------------------------
       
   397 // CPbk2NamesListStartupState::SelectedContactsL
       
   398 // --------------------------------------------------------------------------
       
   399 //
       
   400 MVPbkContactLinkArray* CPbk2NamesListStartupState::SelectedContactsL() const
       
   401     {
       
   402     return NULL;
       
   403     }
       
   404 
       
   405 // --------------------------------------------------------------------------
       
   406 // CPbk2NamesListStartupState::SelectedContactsOrFocusedContactL
       
   407 // --------------------------------------------------------------------------
       
   408 //
       
   409 MVPbkContactLinkArray*
       
   410         CPbk2NamesListStartupState::SelectedContactsOrFocusedContactL() const
       
   411     {
       
   412     return NULL;
       
   413     }
       
   414 
       
   415 // --------------------------------------------------------------------------
       
   416 // CPbk2NamesListStartupState::SelectedContactsIteratorL
       
   417 // --------------------------------------------------------------------------
       
   418 //
       
   419 MPbk2ContactLinkIterator*
       
   420         CPbk2NamesListStartupState::SelectedContactsIteratorL() const
       
   421     {
       
   422     return NULL;
       
   423     }
       
   424 
       
   425 // --------------------------------------------------------------------------
       
   426 // CPbk2NamesListStartupState::SelectedContactStoresL
       
   427 // --------------------------------------------------------------------------
       
   428 //
       
   429 CArrayPtr<MVPbkContactStore>*
       
   430         CPbk2NamesListStartupState::SelectedContactStoresL() const
       
   431     {
       
   432     // This is not a state of the contact store control
       
   433     return NULL;
       
   434     }
       
   435 
       
   436 // --------------------------------------------------------------------------
       
   437 // CPbk2NamesListStartupState::ClearMarks
       
   438 // --------------------------------------------------------------------------
       
   439 //
       
   440 void CPbk2NamesListStartupState::ClearMarks()
       
   441     {
       
   442     // Do nothing
       
   443     }
       
   444 
       
   445 // --------------------------------------------------------------------------
       
   446 // CPbk2NamesListStartupState::SetSelectedContactL
       
   447 // --------------------------------------------------------------------------
       
   448 //
       
   449 void CPbk2NamesListStartupState::SetSelectedContactL(
       
   450         TInt /*aIndex*/, TBool /*aSelected*/)
       
   451     {
       
   452     // Do nothing
       
   453     }
       
   454 
       
   455 // --------------------------------------------------------------------------
       
   456 // CPbk2NamesListStartupState::SetSelectedContactL
       
   457 // --------------------------------------------------------------------------
       
   458 //
       
   459 void CPbk2NamesListStartupState::SetSelectedContactL(
       
   460         const MVPbkContactBookmark& /*aContactBookmark*/,
       
   461         TBool /*aSelected*/ )
       
   462     {
       
   463     // Do nothing
       
   464     }
       
   465 
       
   466 // --------------------------------------------------------------------------
       
   467 // CPbk2NamesListStartupState::SetSelectedContactL
       
   468 // --------------------------------------------------------------------------
       
   469 //
       
   470 void CPbk2NamesListStartupState::SetSelectedContactL(
       
   471         const MVPbkContactLink& /*aContactLink*/,
       
   472         TBool /*aSelected*/ )
       
   473     {
       
   474     // Do nothing
       
   475     }
       
   476 
       
   477 TInt CPbk2NamesListStartupState::CommandItemCount() const
       
   478 	{
       
   479 	return 0; // No command items in this state.
       
   480 	}
       
   481 
       
   482 const MPbk2UiControlCmdItem& CPbk2NamesListStartupState::CommandItemAt( TInt /*aIndex*/ ) const
       
   483 	{
       
   484 	// There are no command items in this state.
       
   485 	__ASSERT_ALWAYS( EFalse, User::Panic( _L("Pbk2"), 1)); //TODO
       
   486 
       
   487 	MPbk2UiControlCmdItem* item = NULL; /// For compiler only
       
   488 	return *item; // For compiler only
       
   489 	}
       
   490 
       
   491 const MPbk2UiControlCmdItem* CPbk2NamesListStartupState::FocusedCommandItem() const
       
   492 	{
       
   493 	// TODO
       
   494 	return NULL;
       
   495 	}
       
   496 
       
   497 void CPbk2NamesListStartupState::DeleteCommandItemL( TInt /*aIndex*/ )
       
   498 	{
       
   499 	// do nothing
       
   500 	}
       
   501 
       
   502 void CPbk2NamesListStartupState::AddCommandItemL(MPbk2UiControlCmdItem* /*aCommand*/, TInt /*aIndex*/)
       
   503 	{	
       
   504 	// do nothing
       
   505 	}	
       
   506 
       
   507 // --------------------------------------------------------------------------
       
   508 // CPbk2NamesListStartupState::DynInitMenuPaneL
       
   509 // --------------------------------------------------------------------------
       
   510 //
       
   511 void CPbk2NamesListStartupState::DynInitMenuPaneL(
       
   512         TInt aResourceId, CEikMenuPane* aMenuPane) const
       
   513     {
       
   514     AknSelectionService::HandleMarkableListDynInitMenuPane
       
   515         (aResourceId, aMenuPane, &iListBox);
       
   516     }
       
   517 
       
   518 // --------------------------------------------------------------------------
       
   519 // CPbk2NamesListStartupState::ProcessCommandL
       
   520 // --------------------------------------------------------------------------
       
   521 //
       
   522 void CPbk2NamesListStartupState::ProcessCommandL
       
   523         ( TInt /*aCommandId*/ ) const
       
   524     {
       
   525     // Do nothing
       
   526     }
       
   527 
       
   528 // --------------------------------------------------------------------------
       
   529 // CPbk2NamesListStartupState::UpdateAfterCommandExecution
       
   530 // --------------------------------------------------------------------------
       
   531 //
       
   532 void CPbk2NamesListStartupState::UpdateAfterCommandExecution()
       
   533     {
       
   534     // Do nothing
       
   535     }
       
   536 
       
   537 // --------------------------------------------------------------------------
       
   538 // CPbk2NamesListStartupState::GetMenuFilteringFlagsL
       
   539 // --------------------------------------------------------------------------
       
   540 //
       
   541 TInt CPbk2NamesListStartupState::GetMenuFilteringFlagsL() const
       
   542     {
       
   543     return KPbk2ListContainsNoMarkedItems;
       
   544     }
       
   545 
       
   546 
       
   547 // --------------------------------------------------------------------------
       
   548 // CPbk2NamesListStartupState::ControlStateL
       
   549 // --------------------------------------------------------------------------
       
   550 //
       
   551 CPbk2ViewState* CPbk2NamesListStartupState::ControlStateL() const
       
   552     {
       
   553     // State objects do not handle control state changes
       
   554     return NULL;
       
   555     }
       
   556 
       
   557 // --------------------------------------------------------------------------
       
   558 // CPbk2NamesListStartupState::RestoreControlStateL
       
   559 // --------------------------------------------------------------------------
       
   560 //
       
   561 void CPbk2NamesListStartupState::RestoreControlStateL
       
   562         ( CPbk2ViewState* /*aState*/ )
       
   563     {
       
   564     // State objects do not handle control state changes
       
   565     }
       
   566 
       
   567 // --------------------------------------------------------------------------
       
   568 // CPbk2NamesListStartupState::FindTextL
       
   569 // --------------------------------------------------------------------------
       
   570 //
       
   571 const TDesC& CPbk2NamesListStartupState::FindTextL()
       
   572     {
       
   573     return KNullDesC;
       
   574     }
       
   575 
       
   576 // --------------------------------------------------------------------------
       
   577 // CPbk2NamesListStartupState::ResetFindL
       
   578 // --------------------------------------------------------------------------
       
   579 //
       
   580 void CPbk2NamesListStartupState::ResetFindL()
       
   581     {
       
   582     // Do nothing
       
   583     }
       
   584 
       
   585 // --------------------------------------------------------------------------
       
   586 // CPbk2NamesListStartupState::HideThumbnail
       
   587 // --------------------------------------------------------------------------
       
   588 //
       
   589 void CPbk2NamesListStartupState::HideThumbnail()
       
   590     {
       
   591     // Do nothing
       
   592     }
       
   593 
       
   594 // --------------------------------------------------------------------------
       
   595 // CPbk2NamesListStartupState::ShowThumbnail
       
   596 // --------------------------------------------------------------------------
       
   597 //
       
   598 void CPbk2NamesListStartupState::ShowThumbnail()
       
   599     {
       
   600     // Do nothing
       
   601     }
       
   602 
       
   603 // --------------------------------------------------------------------------
       
   604 // CPbk2NamesListStartupState::SetBlank
       
   605 // --------------------------------------------------------------------------
       
   606 //
       
   607 void CPbk2NamesListStartupState::SetBlank( TBool aBlank )
       
   608     {
       
   609     if (!aBlank)
       
   610         {
       
   611         // Redraw
       
   612         iParent.DrawDeferred();
       
   613         TRAPD( error, iListBox.UpdateScrollBarsL() );
       
   614         if ( error != KErrNone )
       
   615             {
       
   616             CCoeEnv::Static()->HandleError( error );
       
   617             }
       
   618         }
       
   619     }
       
   620 
       
   621 // --------------------------------------------------------------------------
       
   622 // CPbk2NamesListStartupState::RegisterCommand
       
   623 // --------------------------------------------------------------------------
       
   624 //
       
   625 void CPbk2NamesListStartupState::RegisterCommand(
       
   626         MPbk2Command* /*aCommand*/)
       
   627     {
       
   628     }
       
   629 
       
   630 // --------------------------------------------------------------------------
       
   631 // CPbk2NamesListStartupState::SetTextL
       
   632 // --------------------------------------------------------------------------
       
   633 //
       
   634 void CPbk2NamesListStartupState::SetTextL( const TDesC& aText )
       
   635     {
       
   636     iListBox.View()->SetListEmptyTextL( aText );
       
   637     }
       
   638 // --------------------------------------------------------------------------
       
   639 // CPbk2NamesListStartupState::ContactUiControlExtension
       
   640 // --------------------------------------------------------------------------
       
   641 //
       
   642 TAny* CPbk2NamesListStartupState::ContactUiControlExtension(TUid aExtensionUid )
       
   643 	{
       
   644      if( aExtensionUid == KMPbk2ContactUiControlExtension2Uid )
       
   645         { 
       
   646 		return static_cast<MPbk2ContactUiControl2*>( this );
       
   647 		}
       
   648 		
       
   649     return NULL;
       
   650     }
       
   651 
       
   652 
       
   653 // --------------------------------------------------------------------------
       
   654 // CPbk2NamesListStartupState::FocusedItemPointed
       
   655 // --------------------------------------------------------------------------
       
   656 //
       
   657 TBool CPbk2NamesListStartupState::FocusedItemPointed()
       
   658     {
       
   659     return EFalse;
       
   660     }
       
   661 
       
   662 // --------------------------------------------------------------------------
       
   663 // CPbk2NamesListStartupState::FocusableItemPointed
       
   664 // --------------------------------------------------------------------------
       
   665 //
       
   666 TBool CPbk2NamesListStartupState::FocusableItemPointed()
       
   667     {
       
   668     return EFalse;
       
   669     }
       
   670 
       
   671 // --------------------------------------------------------------------------
       
   672 // CPbk2NamesListStartupState::SearchFieldPointed
       
   673 // --------------------------------------------------------------------------
       
   674 //
       
   675 TBool CPbk2NamesListStartupState::SearchFieldPointed()
       
   676     {
       
   677     return EFalse;
       
   678     }
       
   679 
       
   680 // --------------------------------------------------------------------------
       
   681 // CPbk2NamesListStartupState::TopViewChangedL
       
   682 // --------------------------------------------------------------------------
       
   683 //    
       
   684 void CPbk2NamesListStartupState::TopViewChangedL( 
       
   685         MVPbkContactViewBase& /*aOldView*/ )
       
   686     {
       
   687     // Do nothing
       
   688     }
       
   689 
       
   690 // --------------------------------------------------------------------------
       
   691 // CPbk2NamesListStartupState::TopViewUpdatedL
       
   692 // --------------------------------------------------------------------------
       
   693 //    
       
   694 void CPbk2NamesListStartupState::TopViewUpdatedL()
       
   695     {
       
   696     // Do nothing
       
   697     }
       
   698 
       
   699 // --------------------------------------------------------------------------
       
   700 // CPbk2NamesListStartupState::BaseViewChangedL
       
   701 // --------------------------------------------------------------------------
       
   702 //     
       
   703 void CPbk2NamesListStartupState::BaseViewChangedL()
       
   704     {
       
   705     // Do nothing
       
   706     }
       
   707 
       
   708 // --------------------------------------------------------------------------
       
   709 // CPbk2NamesListStartupState::ViewStackError
       
   710 // --------------------------------------------------------------------------
       
   711 //    
       
   712 void CPbk2NamesListStartupState::ViewStackError( TInt /*aError*/ )
       
   713     {
       
   714     // Do nothing
       
   715     }
       
   716 
       
   717 // --------------------------------------------------------------------------
       
   718 // CPbk2NamesListStartupState::ContactAddedToBaseView
       
   719 // --------------------------------------------------------------------------
       
   720 //    
       
   721 void CPbk2NamesListStartupState::ContactAddedToBaseView(
       
   722         MVPbkContactViewBase& /*aBaseView*/, 
       
   723         TInt /*aIndex*/,
       
   724         const MVPbkContactLink& /*aContactLink*/ )
       
   725     {
       
   726     // Do nothing
       
   727     }
       
   728 
       
   729 //  End of File