phonebookui/phonebookservices/src/cntservicegroupmemberview.cpp
changeset 59 a642906a277a
equal deleted inserted replaced
47:7cbcb2896f0e 59:a642906a277a
       
     1 /*
       
     2 * Copyright (c) 2009 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 *
       
    16 */
       
    17 
       
    18 #include "cntservicegroupmemberview.h"
       
    19 #include "cntabstractserviceprovider.h"
       
    20 #include "cntdebug.h"
       
    21 #include <cntservicescontact.h>
       
    22 
       
    23 /*!
       
    24 Constructor, initialize member variables.
       
    25 \a viewManager is the parent that creates this view. \a parent is a pointer to parent QGraphicsItem (by default this is 0)
       
    26 */
       
    27 CntServiceGroupMemberView::CntServiceGroupMemberView( CntAbstractServiceProvider& aServiceProvider ) : 
       
    28     CntGroupMemberView(),
       
    29     mProvider( aServiceProvider )
       
    30 {
       
    31     CNT_ENTRY
       
    32     connect(this, SIGNAL(backPressed()), this, SLOT(closeGroupMemberView()));
       
    33     CNT_EXIT
       
    34 }
       
    35 
       
    36 /*!
       
    37 Destructor
       
    38 */
       
    39 CntServiceGroupMemberView::~CntServiceGroupMemberView()
       
    40 {
       
    41     CNT_ENTRY
       
    42     CNT_EXIT
       
    43 }
       
    44 
       
    45 /*!
       
    46 Close the view (quits the service as well)
       
    47 */
       
    48 void CntServiceGroupMemberView::closeGroupMemberView()
       
    49 {
       
    50     CNT_ENTRY
       
    51     QVariant variant;
       
    52     variant.setValue(KCntServicesTerminated);
       
    53     mProvider.CompleteServiceAndCloseApp(variant);
       
    54     CNT_EXIT
       
    55 }
       
    56 
       
    57 // end of file