bluetooth/btexample/example/afhsetter/AFHSetter.h
changeset 0 29b1cd4cb562
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef AFHSETTER_H
       
    17 #define AFHSETTER_H
       
    18 
       
    19 
       
    20 
       
    21 const TUint8 KSendHCC = 0xff;
       
    22 
       
    23 
       
    24 const TUint8 KPairs = 0x01; // take numbers in for ranges
       
    25 const TUint8 KLast = 0x02; // ready to accept last (or only) number
       
    26 const TUint8 KSetChannelsBad = 0x04; //ready to use (either a pair or a single)
       
    27 class CAFHSetter : public CActive
       
    28 /**
       
    29 Example subscriber
       
    30 @internalComponent
       
    31 */
       
    32 	{
       
    33 public:
       
    34 	static CAFHSetter* NewL(RTest& aTest);
       
    35 	void Start();
       
    36 	void GetClassificationBySettingBadChannels();
       
    37 	TInt SendBluetoothAFHHostChannelClassification();
       
    38 
       
    39 	void RunL();
       
    40 	void DoCancel();
       
    41 
       
    42 	~CAFHSetter();
       
    43 
       
    44 private:
       
    45 	CAFHSetter(RTest& aTest);
       
    46 	void ConstructL();
       
    47 	TInt GetNextChannelNum();
       
    48 
       
    49 private:
       
    50 	RTest&					iTest;
       
    51 	RProperty				iProperty;
       
    52 	TBTAFHHostChannelClassification	iHCC;
       
    53 	TUint8					iCounter;
       
    54 	TBool					iTens;
       
    55 	RTimer					iTimer;
       
    56 	RSocketServ				iSS;
       
    57 	TUint8					iState;
       
    58 	TUint8					iChannel1;
       
    59 	TUint8					iChannel2;
       
    60 	};
       
    61 
       
    62 
       
    63 
       
    64 #endif //AFHSETTER