diff -r 453dfc402455 -r 0aa8cc770c8a connectivitymodules/SeCon/servers/pcconn/inc/sconbtengine.h --- a/connectivitymodules/SeCon/servers/pcconn/inc/sconbtengine.h Thu Aug 19 10:44:03 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,82 +0,0 @@ -/* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: CSconBtEngine declaration -* -*/ - - - -#ifndef SCONBTENGINE_H_ -#define SCONBTENGINE_H_ - -#include -#include -#include -#include -#include - -const TInt KCenRepAddrBufSize = 2 * KBTDevAddrSize; - -class CSconBtEngine : public CBase, - public MBTEngDevManObserver, - public MBTEngSettingsObserver - { -public: - static CSconBtEngine* NewL(); - ~CSconBtEngine(); - - void ReadBTInfoL( RBufWriteStream& aStream ); - - void SetBtAuthorizedL( const TDesC& aBtDevAddress, TBool aAuthorized ); - - TInt SetBtPowerState( TBool aPower ); - - TInt SetBtName( const TDesC& aBtName ); - -protected: - // From MBTEngDevManObserver - void HandleDevManComplete( TInt aErr ); - void HandleGetDevicesComplete( TInt aErr, - CBTDeviceArray* aDeviceArray ); - - // From MBTEngSettingsObserver - void PowerStateChanged( TBTPowerStateValue aState ); - void VisibilityModeChanged( TBTVisibilityMode aState ); - -private: - CSconBtEngine(); - void ConstructL(); - - void PrintDevicesL(); - -private: - enum TState - { - EIdle, - ERequestBtInfo, - EChangeBtState, - EChangeAuthorized - }; - TState iState; - TInt iOperationError; - CActiveSchedulerWait iWait; - RBufWriteStream* iStream; - CBTEngDevMan* iBtEng; - CBTDeviceArray* iBtDevArray; - CBTEngSettings* iBtSettings; - TBool iAuthorizedValue; - TBuf iBtAddress; - }; - -#endif /* SCONBTENGINE_H_ */