bluetooth/btexample/example/codsetter/CodSetter.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 DISC_H
       
    17 #define DISC_H
       
    18 
       
    19 
       
    20 static const TBTMajorDeviceClass KMajorDeviceClass = EMajorDevicePhone;
       
    21 static const TBTMinorDeviceClassPhone KMinorDeviceClass = EMinorDevicePhoneCellular;
       
    22 
       
    23 
       
    24 class CCodSetter : public CActive
       
    25 /**
       
    26 Example subscriber
       
    27 @internalComponent
       
    28 */
       
    29 	{
       
    30 public:
       
    31 	static CCodSetter* NewL(RTest& aTest);
       
    32 	void Start();
       
    33 
       
    34 	void RunL();
       
    35 	void DoCancel();
       
    36 
       
    37 	~CCodSetter();
       
    38 
       
    39 private:
       
    40 	CCodSetter(RTest&);
       
    41 	void ConstructL();
       
    42 private:
       
    43 	RTest&					iTest;
       
    44 	RProperty				iProperty;
       
    45 	TBTMajorServiceClass	iServiceClassToSet; //run BTProperties to see result
       
    46 	};
       
    47 
       
    48 #endif //DISC