|
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 __MCONNECTIONPREFSPROVIDER_H__ |
|
17 #define __MCONNECTIONPREFSPROVIDER_H__ |
|
18 |
|
19 #include <e32std.h> |
|
20 |
|
21 // Forward declarations |
|
22 class RConnection; |
|
23 |
|
24 /** |
|
25 The MConnectionPrefsProvider class provides accessors to |
|
26 connection preferences. |
|
27 |
|
28 @internalTechnology |
|
29 @prototype |
|
30 */ |
|
31 class MConnectionPrefsProvider |
|
32 { |
|
33 public: |
|
34 /** |
|
35 Supply the comms connection |
|
36 @param aSocketServerHandle the handle to the socket server. |
|
37 @param aConnectionPtr The network connection |
|
38 @return Boolean value stating whether comms connection supplied. |
|
39 */ |
|
40 virtual TBool SupplyCommsConnection(TInt& aSocketServerHandle, RConnection*& aConnectionPtr) =0; |
|
41 /** |
|
42 Set the comms connection. |
|
43 @param aSocketServerHandle The handle to the socket server. |
|
44 @param aConnectionPtr The network connection. |
|
45 */ |
|
46 virtual void SetCommsConnectionL(TInt aSocketServerHandle, RConnection*& aConnectionPtr) =0; |
|
47 /** |
|
48 Provide security preferences |
|
49 @param aDialogPrompt The dialog prompt for security dialogs. |
|
50 */ |
|
51 virtual void GetSecurityPrefs(TBool& aDialogPrompt) =0; |
|
52 }; |
|
53 |
|
54 #endif // __MCONNECTIONPREFSPROVIDER_H__ |
|
55 |