bluetoothengine/btui/btuidelegate/btdelegatedevsecurity.h
changeset 31 a0ea99b6fa53
child 40 997690c3397a
equal deleted inserted replaced
30:df7a93ede42e 31:a0ea99b6fa53
       
     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 BTDELEGATEDEVSECURITY_H
       
    19 #define BTDELEGATEDEVSECURITY_H
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <btengconnman.h>
       
    23 #include <btengdevman.h>
       
    24 #include "btabstractdelegate.h"
       
    25 
       
    26 class BtuiModel;
       
    27 
       
    28 /*!
       
    29     \class BtDelegateDisconnect
       
    30     \brief the base class for Disconnecting Bluetooth Connection.
       
    31  */
       
    32 class BtDelegateDevSecurity : public BtAbstractDelegate,
       
    33         public MBTEngDevManObserver
       
    34 {
       
    35     Q_OBJECT
       
    36 
       
    37 public:
       
    38     explicit BtDelegateDevSecurity( 
       
    39             BtSettingModel* settingModel, 
       
    40             BtDeviceModel* deviceModel, 
       
    41             QObject *parent = 0 );
       
    42     
       
    43     virtual ~BtDelegateDevSecurity();
       
    44 
       
    45     virtual void exec( const QVariant &params );
       
    46     
       
    47     virtual void cancel();
       
    48     
       
    49 public slots:
       
    50 
       
    51 protected:
       
    52     //From MBTEngDevManObserver
       
    53     virtual void HandleDevManComplete( TInt aErr );
       
    54     virtual void HandleGetDevicesComplete( TInt aErr, CBTDeviceArray* aDeviceArray );
       
    55     
       
    56     void emitCommandComplete(int error);
       
    57     
       
    58 private:
       
    59 
       
    60     CBTEngDevMan *mBtEngDevMan;
       
    61     
       
    62     QString mdeviceName;
       
    63     
       
    64     Q_DISABLE_COPY(BtDelegateDevSecurity)
       
    65 
       
    66 };
       
    67 
       
    68 
       
    69 #endif /* BTDELEGATEDEVSECURITY_H */