bluetoothengine/btui/btcpplugin/btcpuibaseview.cpp
author hgs
Mon, 12 Jul 2010 18:51:05 +0300
changeset 42 b72428996822
parent 31 a0ea99b6fa53
child 57 5ebadcda06cb
permissions -rw-r--r--
201025
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
29
48ae3789ce00 201017_2
hgs
parents:
diff changeset
     1
/*
42
hgs
parents: 31
diff changeset
     2
 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents: 31
diff changeset
     3
 * All rights reserved.
hgs
parents: 31
diff changeset
     4
 * This component and the accompanying materials are made available
hgs
parents: 31
diff changeset
     5
 * under the terms of "Eclipse Public License v1.0""
hgs
parents: 31
diff changeset
     6
 * which accompanies this distribution, and is available
hgs
parents: 31
diff changeset
     7
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents: 31
diff changeset
     8
 *
hgs
parents: 31
diff changeset
     9
 * Initial Contributors:
hgs
parents: 31
diff changeset
    10
 * Nokia Corporation - initial contribution.
hgs
parents: 31
diff changeset
    11
 *
hgs
parents: 31
diff changeset
    12
 * Contributors:
hgs
parents: 31
diff changeset
    13
 *
hgs
parents: 31
diff changeset
    14
 * Description:  
hgs
parents: 31
diff changeset
    15
 *
hgs
parents: 31
diff changeset
    16
 */
29
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    17
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    18
#include "btcpuibaseview.h"
31
a0ea99b6fa53 201019_1
hgs
parents: 29
diff changeset
    19
#include <hbaction.h>
29
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    20
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    21
/*!
42
hgs
parents: 31
diff changeset
    22
    This constructor constructs new setting and device models.
hgs
parents: 31
diff changeset
    23
 */
hgs
parents: 31
diff changeset
    24
BtCpUiBaseView::BtCpUiBaseView(QGraphicsItem *parent )
hgs
parents: 31
diff changeset
    25
    :CpBaseSettingView( 0 , parent )
hgs
parents: 31
diff changeset
    26
{
hgs
parents: 31
diff changeset
    27
    mSettingModel = new BtSettingModel(this);
hgs
parents: 31
diff changeset
    28
    mDeviceModel = new BtDeviceModel(this);
hgs
parents: 31
diff changeset
    29
}
hgs
parents: 31
diff changeset
    30
hgs
parents: 31
diff changeset
    31
/*!
hgs
parents: 31
diff changeset
    32
    This constructor constructs models from the given setting and device models.
hgs
parents: 31
diff changeset
    33
    This implies the model impl and data structure is shared.
29
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    34
 */
31
a0ea99b6fa53 201019_1
hgs
parents: 29
diff changeset
    35
BtCpUiBaseView::BtCpUiBaseView(
a0ea99b6fa53 201019_1
hgs
parents: 29
diff changeset
    36
        BtSettingModel &settingModel, 
a0ea99b6fa53 201019_1
hgs
parents: 29
diff changeset
    37
        BtDeviceModel &deviceModel, 
a0ea99b6fa53 201019_1
hgs
parents: 29
diff changeset
    38
        QGraphicsItem *parent )
42
hgs
parents: 31
diff changeset
    39
    :CpBaseSettingView( 0 , parent )
29
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    40
{
42
hgs
parents: 31
diff changeset
    41
    mSettingModel = new BtSettingModel(settingModel, this);
hgs
parents: 31
diff changeset
    42
    mDeviceModel = new BtDeviceModel(deviceModel, this);    
29
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    43
}
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    44
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    45
/*!
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    46
    Destructor.
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    47
 */
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    48
BtCpUiBaseView::~BtCpUiBaseView()
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    49
{
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    50
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    51
}
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    52
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    53
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    54
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    55