bluetoothengine/btui/btcpplugin/btcpuibaseview.h
changeset 29 48ae3789ce00
child 31 a0ea99b6fa53
equal deleted inserted replaced
28:7e2761e776bd 29:48ae3789ce00
       
     1 /*
       
     2 * ============================================================================
       
     3 *  Name        : btcpuibaseview.h
       
     4 *  Part of     : BluetoothUI / btapplication       *** Info from the SWAD
       
     5 *  Description : Declaration of the baseclass for all views in btapplication.
       
     6 *
       
     7 *  Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     8 *  All rights reserved.
       
     9 *  This component and the accompanying materials are made available
       
    10 *  under the terms of "Eclipse Public License v1.0"
       
    11 *  which accompanies this distribution, and is available
       
    12 *  at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
    13 *
       
    14 *  Initial Contributors:
       
    15 *  Nokia Corporation - initial contribution.
       
    16 *
       
    17 *  Contributors:
       
    18 *  Nokia Corporation
       
    19 * ============================================================================
       
    20 * Template version: 4.2
       
    21 */
       
    22 
       
    23 #ifndef BTCPUIBASEVIEW_H
       
    24 #define BTCPUIBASEVIEW_H
       
    25 
       
    26 #include <hbview.h>
       
    27 #include <qglobal.h>
       
    28 #include <cpbasesettingview.h>
       
    29 #include <btuimodel.h>
       
    30 
       
    31 /*!
       
    32     \class BtUiBaseView
       
    33     \brief the class is the base class for all views in btapplication.
       
    34 
       
    35  */
       
    36 class BtCpUiBaseView : public CpBaseSettingView
       
    37 {
       
    38     Q_OBJECT
       
    39 
       
    40 public:
       
    41     
       
    42     virtual ~BtCpUiBaseView();
       
    43     virtual void activateView( const QVariant& value, int cmdId ) = 0;
       
    44     virtual void deactivateView() = 0;    
       
    45 
       
    46 signals:
       
    47 
       
    48 protected:   
       
    49     explicit BtCpUiBaseView( BtuiModel &model, QGraphicsItem *parent = 0);
       
    50     virtual void setSoftkeyBack() = 0;
       
    51     virtual void switchToPreviousView() = 0;
       
    52     
       
    53 protected:
       
    54     
       
    55     //Does not own this model.
       
    56     BtuiModel &mModel;
       
    57 
       
    58     QGraphicsItem *mParent;
       
    59     int mPreviousViewId;
       
    60     
       
    61     Q_DISABLE_COPY(BtCpUiBaseView)
       
    62 };
       
    63 
       
    64 #endif // BTCPUIBASEVIEW_H