|
1 // Copyright (c) 2006-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 __MCOMMSINFOPROVIDER_H__ |
|
17 #define __MCOMMSINFOPROVIDER_H__ |
|
18 |
|
19 #include <e32std.h> |
|
20 #include <in_sock.h> |
|
21 |
|
22 |
|
23 /** |
|
24 The MCommsInfoProvider class provides accessors to a connected socket server |
|
25 session and the protocol description for a particular protocol. |
|
26 |
|
27 @internalTechnology |
|
28 @prototype |
|
29 */ |
|
30 class MCommsInfoProvider |
|
31 { |
|
32 public: |
|
33 /** |
|
34 Access function to the socket server session. |
|
35 @return A reference to the connected socket server session. |
|
36 */ |
|
37 virtual RSocketServ& SocketServer() =0; |
|
38 /** |
|
39 Access function to the protocol description. |
|
40 @return A reference to the protocol description. |
|
41 */ |
|
42 virtual TProtocolDesc& ProtocolDescription() =0; |
|
43 /** |
|
44 Access function to the network connection. |
|
45 @return A reference to the network connection. |
|
46 */ |
|
47 virtual RConnection& Connection() =0; |
|
48 /** |
|
49 Get the security preferences, dialog prompt and security policy |
|
50 @param aDialogPrompt |
|
51 */ |
|
52 virtual void SecurityPreferences(TBool& aDialogPrompt) =0; |
|
53 /** |
|
54 Is the SockServ session owned. |
|
55 @return A boolean value stating whether SockServ session is owned. |
|
56 */ |
|
57 virtual TBool OwnsConnection() =0; |
|
58 }; |
|
59 |
|
60 #endif // __MCOMMSINFOPROVIDER_H__ |