29
|
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:
|
31
|
38 |
explicit BtDelegateVisibility( QObject *parent = 0 );
|
29
|
39 |
|
|
40 |
virtual ~BtDelegateVisibility();
|
|
41 |
|
57
|
42 |
int supportedEditorTypes() const;
|
|
43 |
|
29
|
44 |
virtual void exec( const QVariant ¶ms );
|
|
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;
|
42
|
55 |
bool mActiveHandling;
|
29
|
56 |
TBTVisibilityMode mOperation;
|
|
57 |
|
|
58 |
private:
|
|
59 |
|
|
60 |
Q_DISABLE_COPY(BtDelegateVisibility)
|
|
61 |
|
|
62 |
};
|
|
63 |
|
|
64 |
#endif // BTDELEGATEVISIBILITY_H
|