bluetoothengine/btui/btuidelegate/btdelegatevisibility.h
branchRCL_3
changeset 56 9386f31cc85b
parent 55 613943a21004
child 61 269724087bed
equal deleted inserted replaced
55:613943a21004 56:9386f31cc85b
     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: 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef BTDELEGATEVISIBILITY_H
       
    19 #define BTDELEGATEVISIBILITY_H
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <btengsettings.h>
       
    23 #include "btabstractdelegate.h"
       
    24 
       
    25 class BtuiModel;
       
    26 
       
    27 /*!
       
    28     \class BtDelegateVisibility
       
    29     \brief the base class for handling Bluetooth visibility management.
       
    30 
       
    31     \\sa btuidelegate
       
    32  */
       
    33 class BtDelegateVisibility : public BtAbstractDelegate, public MBTEngSettingsObserver
       
    34 {
       
    35     Q_OBJECT
       
    36 
       
    37 public:
       
    38     explicit BtDelegateVisibility( QObject *parent = 0 );
       
    39     
       
    40     virtual ~BtDelegateVisibility();
       
    41 
       
    42     virtual void exec( const QVariant &params );
       
    43     
       
    44 
       
    45     
       
    46 public slots:
       
    47 
       
    48 private:
       
    49 
       
    50     virtual void PowerStateChanged( TBTPowerStateValue aState );
       
    51     virtual void VisibilityModeChanged( TBTVisibilityMode aState );
       
    52 
       
    53 private:
       
    54     CBTEngSettings* mBtengSettings;
       
    55     bool mActiveHandling;
       
    56     TBTVisibilityMode mOperation;
       
    57 
       
    58 private:
       
    59 
       
    60     Q_DISABLE_COPY(BtDelegateVisibility)
       
    61 
       
    62 };
       
    63 
       
    64 #endif // BTDELEGATEVISIBILITY_H