locationsystemui/locationsysui/possettings/possettingsengine/src/possettingsview.cpp
changeset 25 73f6c2762ffe
equal deleted inserted replaced
22:4c4ed41530db 25:73f6c2762ffe
       
     1 /*
       
     2 * Copyright (c) 2010 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: This is the first view for Positioning Settings plugin 
       
    15 *
       
    16 */
       
    17 
       
    18 #include "possettingsview.h"
       
    19 #include "possettingsengine.h"
       
    20 #include "possettingsform.h"
       
    21 #include "possettingspushbuttonitem.h"
       
    22 #include <QDebug>
       
    23 
       
    24 // ---------------------------------------------------------------------------
       
    25 // PosSettingsView::PosSettingsView
       
    26 // ---------------------------------------------------------------------------
       
    27 //
       
    28 PosSettingsView::PosSettingsView(QGraphicsItem 
       
    29                                        *parent):CpBaseSettingView(0,parent)
       
    30     {   
       
    31     qDebug() << "================ Positiong settings is launched ==============================";
       
    32     qDebug() << "+ PosSettingsView::PosSettingsView()";
       
    33     mSettingsEngine = new PosSettingsEngine;
       
    34     if(!mSettingsEngine){
       
    35         qDebug() << "- PosSettingsView::PosSettingsView()";
       
    36         return;
       
    37         }
       
    38         
       
    39     mSettingsForm = new PosSettingsForm( *mSettingsEngine, this );  
       
    40     if(mSettingsForm)
       
    41     		this->setWidget( mSettingsForm );   
       
    42     qDebug() << "- PosSettingsView::PosSettingsView()";
       
    43     }
       
    44 
       
    45 // ---------------------------------------------------------------------------
       
    46 // PosSettingsView::~PosSettingsViewl
       
    47 // ---------------------------------------------------------------------------
       
    48 //
       
    49 PosSettingsView::~PosSettingsView()
       
    50     {
       
    51     qDebug() << "+ PosSettingsView::~PosSettingsView()";
       
    52     delete mSettingsEngine;
       
    53     mSettingsEngine = NULL;
       
    54     
       
    55     delete mSettingsForm;
       
    56     mSettingsForm = NULL;
       
    57     
       
    58     qDebug() << "- PosSettingsView::~PosSettingsView()";            
       
    59     qDebug() << "================ Positiong settings is closed ==============================";	   
       
    60     }
       
    61 
       
    62 //EOF
       
    63