|
1 /* |
|
2 * Copyright (c) 2005-2009 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 |
|
20 |
|
21 #ifndef BTGPSHANDLERFACTORY_H |
|
22 #define BTGPSHANDLERFACTORY_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 |
|
27 // CLASS DECLARATION |
|
28 class MBTGPSConnectManagerExt; |
|
29 |
|
30 //Connecting handler id |
|
31 enum TConnectingHandlerId |
|
32 { |
|
33 EDeviceSelector, ///Device selection handler id |
|
34 EPairingHandler, ///Device pairing handler id |
|
35 ESdpHandler, ///Sdp search handler id |
|
36 EBtOnQueryHandler, ///Bt On query handler id |
|
37 ESocketHandler, ///Socket connection handler id |
|
38 EInitHandler, ///Initialisation complete handler id |
|
39 EDeviceInfoHandler, ///Device bonded information handler |
|
40 EGetNextDevice, ///Get the next device from Device Config API |
|
41 ECheckDevicePairing, ///Check the pairing of the current device |
|
42 }; |
|
43 |
|
44 /** |
|
45 * Factory class to construct all connection handlers. |
|
46 * |
|
47 */ |
|
48 class TBTGPSHandlerFactory |
|
49 { |
|
50 public: |
|
51 /** |
|
52 * Constructor |
|
53 * @param aManagerExt Reference to connect manager. |
|
54 */ |
|
55 TBTGPSHandlerFactory( |
|
56 MBTGPSConnectManagerExt& aManagerExt); |
|
57 |
|
58 public: //Factory function |
|
59 /** |
|
60 * Construct connection handler by handler Id |
|
61 * @param aId The handler id that should be constructed |
|
62 * @return Pointer to the handler that has been constructed. |
|
63 */ |
|
64 CBase* ConstructHandlerL(TInt aId); |
|
65 |
|
66 private: |
|
67 //Manager ext |
|
68 MBTGPSConnectManagerExt& iManagerExt; |
|
69 |
|
70 }; |
|
71 #endif |
|
72 // End of File |
|
73 |