|
1 /* |
|
2 * Copyright (c) 2002-2007 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: This class handles irda obex settings. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef _SRCSIRDACONNECTION_H |
|
21 #define _SRCSIRDACONNECTION_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 |
|
26 #include <obex.h> |
|
27 #include "SrcsTransport.h" |
|
28 #include "SrcsInterface.h" |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * Class to handle IRDA connection |
|
34 */ |
|
35 class CObexSMIrDAConnection: public CSrcsTransport |
|
36 { |
|
37 public: |
|
38 |
|
39 /** |
|
40 * Two-phased constructor. |
|
41 * @param aInitParams initial parameters |
|
42 */ |
|
43 static CObexSMIrDAConnection* NewL(TAny* aInitParams); |
|
44 |
|
45 /** |
|
46 * Destructor. |
|
47 */ |
|
48 virtual ~CObexSMIrDAConnection(); |
|
49 |
|
50 /** |
|
51 * Check if OBEX service is still active. |
|
52 * @return ETrue: OBEX service is still active. |
|
53 * EFalse: OBEX service is inactive. |
|
54 */ |
|
55 TBool IsOBEXActive(); |
|
56 |
|
57 private: |
|
58 |
|
59 /** |
|
60 * C++ default constructor. |
|
61 */ |
|
62 CObexSMIrDAConnection(); |
|
63 |
|
64 /** |
|
65 * Constructor. |
|
66 * |
|
67 * @param aInitParams initial parameters |
|
68 */ |
|
69 CObexSMIrDAConnection(TAny* aInitParams); |
|
70 |
|
71 /** |
|
72 * Constructor |
|
73 * Open IRDA connection and creates OBEX server. |
|
74 */ |
|
75 void ConstructL(); |
|
76 |
|
77 /** |
|
78 * MObexAuthChallengeHandler implementation |
|
79 */ |
|
80 |
|
81 /** |
|
82 * Password for authenticated connection |
|
83 * |
|
84 * @param aUserID User ID. |
|
85 */ |
|
86 void GetUserPasswordL( const TDesC& aUserID ); |
|
87 |
|
88 |
|
89 |
|
90 private: |
|
91 CObexServer* iServer; // Obex Server |
|
92 CSrcsInterface* iController; // Service Controller callback |
|
93 CImplementationInformation* iImplementationInfo; // Implementation Info |
|
94 }; |
|
95 |
|
96 |
|
97 |
|
98 #endif // _SRCSIRDACONNECTION_H |
|
99 |
|
100 // End of File |