|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef TNATTRAVERSALPENDINGREQUEST_H |
|
19 #define TNATTRAVERSALPENDINGREQUEST_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <e32base.h> |
|
23 |
|
24 // FORWARD DECLARATIONS |
|
25 class MSIPNATTraversalRequestObserver; |
|
26 class MNATTraversalPendingRequestContainer; |
|
27 |
|
28 |
|
29 class TNATTraversalPendingRequest |
|
30 { |
|
31 public: // Constructors |
|
32 |
|
33 TNATTraversalPendingRequest( |
|
34 const TUint32& aRequestId, |
|
35 MSIPNATTraversalRequestObserver* aObserver, |
|
36 MNATTraversalPendingRequestContainer& aContainer); |
|
37 |
|
38 public: // New functions |
|
39 |
|
40 const TUint32& RequestId() const; |
|
41 TDeltaTimerEntry& DeltaTimerEntry(); |
|
42 void CompleteRequest(); |
|
43 |
|
44 static TInt TimerExpired(TAny* aPtr); |
|
45 |
|
46 static TInt RequestOrder( |
|
47 const TNATTraversalPendingRequest& aFirst, |
|
48 const TNATTraversalPendingRequest& aSecond); |
|
49 |
|
50 private: // New functions |
|
51 |
|
52 void RequestCompleted(); |
|
53 |
|
54 private: // Data |
|
55 |
|
56 TUint32 iRequestId; |
|
57 MSIPNATTraversalRequestObserver* iObserver; |
|
58 MNATTraversalPendingRequestContainer& iContainer; |
|
59 TCallBack iDeltaTimerCallBack; |
|
60 TDeltaTimerEntry iDeltaTimerEntry; |
|
61 }; |
|
62 |
|
63 #endif // TNATTRAVERSALPENDINGREQUEST_H |
|
64 |
|
65 // End of File |