phonebookui/Phonebook/App/src/CPbkContactInfoGroupMemberNavigationStrategy.cpp
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     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: 
       
    15 *       Contact Info View group members navigation stategy.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include "CPbkContactInfoGroupMemberNavigationStrategy.h"  // This class' declaration
       
    22 #include <cntview.h>
       
    23 #include "CPbkContactEngine.h"
       
    24 #include <pbkdebug.h>
       
    25 
       
    26 
       
    27 // ================= MEMBER FUNCTIONS =======================
       
    28 
       
    29 inline CPbkContactInfoGroupMemberNavigationStrategy::CPbkContactInfoGroupMemberNavigationStrategy
       
    30         (CPbkContactEngine& aEngine,
       
    31         MPbkContactInfoNavigationCallback& aCallback) :
       
    32     CPbkContactInfoBaseNavigationStrategy(aEngine, aCallback)
       
    33     {
       
    34     }
       
    35 
       
    36 inline void CPbkContactInfoGroupMemberNavigationStrategy::ConstructL
       
    37         (TContactItemId aGroupId)
       
    38     {
       
    39     iScrollView = CContactGroupView::NewL(
       
    40         iEngine.Database(), iEngine.AllContactsView(),
       
    41         *this, aGroupId, CContactGroupView::EShowContactsInGroup);
       
    42     }
       
    43 
       
    44 CPbkContactInfoGroupMemberNavigationStrategy* CPbkContactInfoGroupMemberNavigationStrategy::NewL
       
    45         (CPbkContactEngine& aEngine,
       
    46         MPbkContactInfoNavigationCallback& aCallback,
       
    47         TContactItemId aGroupId)
       
    48     {
       
    49     CPbkContactInfoGroupMemberNavigationStrategy* self = new(ELeave) CPbkContactInfoGroupMemberNavigationStrategy(
       
    50             aEngine, aCallback);
       
    51     CleanupStack::PushL(self);
       
    52     self->ConstructL(aGroupId);
       
    53     CleanupStack::Pop();  // self
       
    54     return self;
       
    55     }
       
    56 
       
    57 CPbkContactInfoGroupMemberNavigationStrategy::~CPbkContactInfoGroupMemberNavigationStrategy()
       
    58     {
       
    59     if (iScrollView)
       
    60         {
       
    61         iScrollView->Close(*this);
       
    62         }
       
    63     }
       
    64 
       
    65 //  End of File