bluetoothengine/btui/btuidelegate/btdelegatevisibility.h
author hgs
Fri, 03 Sep 2010 16:17:59 +0300
changeset 57 5ebadcda06cb
parent 42 b72428996822
permissions -rw-r--r--
201035_7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
29
48ae3789ce00 201017_2
hgs
parents:
diff changeset
     1
/*
48ae3789ce00 201017_2
hgs
parents:
diff changeset
     2
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
48ae3789ce00 201017_2
hgs
parents:
diff changeset
     3
* All rights reserved.
48ae3789ce00 201017_2
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
48ae3789ce00 201017_2
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
48ae3789ce00 201017_2
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
48ae3789ce00 201017_2
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
48ae3789ce00 201017_2
hgs
parents:
diff changeset
     8
*
48ae3789ce00 201017_2
hgs
parents:
diff changeset
     9
* Initial Contributors:
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    11
*
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    12
* Contributors:
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    13
*
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    14
* Description: 
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    15
*
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    16
*/
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    17
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    18
#ifndef BTDELEGATEVISIBILITY_H
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    19
#define BTDELEGATEVISIBILITY_H
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    20
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    21
#include <e32base.h>
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    22
#include <btengsettings.h>
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    23
#include "btabstractdelegate.h"
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    24
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    25
class BtuiModel;
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    26
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    27
/*!
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    28
    \class BtDelegateVisibility
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    29
    \brief the base class for handling Bluetooth visibility management.
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    30
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    31
    \\sa btuidelegate
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    32
 */
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    33
class BtDelegateVisibility : public BtAbstractDelegate, public MBTEngSettingsObserver
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    34
{
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    35
    Q_OBJECT
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    36
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    37
public:
31
a0ea99b6fa53 201019_1
hgs
parents: 29
diff changeset
    38
    explicit BtDelegateVisibility( QObject *parent = 0 );
29
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    39
    
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    40
    virtual ~BtDelegateVisibility();
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    41
57
5ebadcda06cb 201035_7
hgs
parents: 42
diff changeset
    42
    int supportedEditorTypes() const;
5ebadcda06cb 201035_7
hgs
parents: 42
diff changeset
    43
29
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    44
    virtual void exec( const QVariant &params );
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    45
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    46
public slots:
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    47
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    48
private:
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    49
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    50
    virtual void PowerStateChanged( TBTPowerStateValue aState );
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    51
    virtual void VisibilityModeChanged( TBTVisibilityMode aState );
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    52
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    53
private:
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    54
    CBTEngSettings* mBtengSettings;
42
hgs
parents: 31
diff changeset
    55
    bool mActiveHandling;
29
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    56
    TBTVisibilityMode mOperation;
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    57
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    58
private:
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    59
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    60
    Q_DISABLE_COPY(BtDelegateVisibility)
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    61
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    62
};
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    63
48ae3789ce00 201017_2
hgs
parents:
diff changeset
    64
#endif // BTDELEGATEVISIBILITY_H