|
1 /* |
|
2 * Copyright (c) 2008 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 |
|
19 #ifndef BTDEVICECLASSMANAGER_H |
|
20 #define BTDEVICECLASSMANAGER_H |
|
21 |
|
22 #include "javaosheaders.h" |
|
23 #include "commslistener.h" |
|
24 #include "extensionplugininterface.h" |
|
25 #include "eventconsumerinterface.h" |
|
26 #include "applicationmanagementeventsinterface.h" |
|
27 #include "applicationruntimeeventsinterface.h" |
|
28 #include "serviceclasslisthandler.h" |
|
29 |
|
30 namespace java |
|
31 { |
|
32 namespace bluetooth |
|
33 { |
|
34 |
|
35 |
|
36 |
|
37 OS_NONSHARABLE_CLASS(BtDeviceClassManager) : public java::captain::ExtensionPluginInterface, |
|
38 public java::comms::CommsListener |
|
39 { |
|
40 public: |
|
41 BtDeviceClassManager(); |
|
42 virtual ~ BtDeviceClassManager(); |
|
43 |
|
44 // PluginInterface |
|
45 virtual void startPlugin(java::captain::CoreInterface* aCore); |
|
46 virtual void stopPlugin(); |
|
47 // CommsListener |
|
48 virtual java::comms::CommsListener* getCommsListener(); |
|
49 |
|
50 protected: |
|
51 // CommsListener methods |
|
52 virtual void processMessage(CommsMessage& message); |
|
53 int setServiceClassBits(unsigned int aDeviceServiceClass); |
|
54 unsigned int getServiceClassBits(); |
|
55 |
|
56 private: |
|
57 java::captain::CoreInterface* mCore; |
|
58 ServiceClassListHandler mServiceListHandler; |
|
59 TUint32 mInitialServiceClassBits; |
|
60 }; |
|
61 |
|
62 } // namespace bluetooth |
|
63 } // namespace java |
|
64 |
|
65 #endif // BTDEVICECLASSMANAGER_H |
|
66 |