|
1 /* |
|
2 * Copyright (c) 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: Candidate store |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef NATCOMTESTOBSERVER_H |
|
22 #define NATCOMTESTOBSERVER_H |
|
23 |
|
24 #include <e32std.h> |
|
25 |
|
26 class CNATFWCandidate; |
|
27 class CNATFWCandidatePair; |
|
28 |
|
29 class MNatComTestObserver |
|
30 { |
|
31 |
|
32 public: |
|
33 |
|
34 enum TNatComTestEvent |
|
35 { |
|
36 ESessionCreated = 1, |
|
37 EStreamCreated = 2, |
|
38 ESetIdentification = 3, |
|
39 ELocalCandidateFound = 4, |
|
40 EFetchingCompleted = 5, |
|
41 ESetOperationMode = 6, |
|
42 ENewCandPairFound = 7, |
|
43 EConnChecksCompleted = 8, |
|
44 ERunning = 9, |
|
45 ETestError = 10, |
|
46 ETestEnd = 11 |
|
47 }; |
|
48 |
|
49 virtual void Notify( TNatComTestEvent aEvent, TInt aError ) = 0; |
|
50 |
|
51 virtual TInt LocalCandidates( const RPointerArray<CNATFWCandidate>& aLocalCandidates ) = 0; |
|
52 |
|
53 virtual TInt RemoteCandidates( RPointerArray<CNATFWCandidate>& aRemoteCandidates ) = 0; |
|
54 |
|
55 virtual void DoPause( TRequestStatus& aStatus ) = 0; |
|
56 |
|
57 virtual TInt CandidatePairs( const RPointerArray<CNATFWCandidatePair>& iCandidatePairs ) = 0; |
|
58 }; |
|
59 |
|
60 #endif // NATCOMTESTOBSERVER_H |