equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2010 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: Secure connections test application |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef M_MTLSCONNECTIONOBSERVER_H |
|
19 #define M_MTLSCONNECTIONOBSERVER_H |
|
20 |
|
21 enum TTlsConnectionState |
|
22 { |
|
23 ENotInitialized = 0, |
|
24 EDisconnected, |
|
25 EIdle, |
|
26 EConnectingNetwork, |
|
27 EOpeningDelay, |
|
28 EResolvingHostName, |
|
29 EConnectingServer, |
|
30 EHandshaking, |
|
31 EConnecting, |
|
32 ESending, |
|
33 EReading, |
|
34 EAllDone |
|
35 }; |
|
36 |
|
37 class MTlsConnectionObserver |
|
38 { |
|
39 public: |
|
40 virtual void HandleNetworkEvent( TTlsConnectionState aEvent, TInt aError ) = 0; |
|
41 virtual void HandleTransferData( const TDesC8& aData, TInt aLength ) = 0; |
|
42 }; |
|
43 |
|
44 #endif // M_MTLSCONNECTIONOBSERVER_H |
|