equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2005 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CMCENATMACROS_H |
|
21 #define CMCENATMACROS_H |
|
22 |
|
23 #include "mcenatstate.h" |
|
24 #include "mcesipsession.h" |
|
25 |
|
26 #define NAT_SESSION( session ) session.NatSession() |
|
27 #define NAT_STATE( session, state ) ( state == session.NatState() ) |
|
28 |
|
29 #define NAT_WAIT( session )\ |
|
30 ( NAT_SESSION( session ) &&\ |
|
31 ( NAT_STATE( session, KMceNatStateCreateOffer ) ||\ |
|
32 NAT_STATE( session, KMceNatStateCreateAnswer ) ||\ |
|
33 NAT_STATE( session, KMceNatStateWait ) ||\ |
|
34 NAT_STATE( session, KMceNatStateDecodeOffer ) ||\ |
|
35 NAT_STATE( session, KMceNatStateConnected ) ) ) |
|
36 |
|
37 #define NAT_WAIT_NO_EXEC( session, exec )\ |
|
38 if( !(NAT_WAIT( session )) ){ exec; } |
|
39 |
|
40 #endif // CMCENATMACROS_H |
|
41 |
|
42 // End of File |