|
1 // Copyright (c) 2005-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 // THIS API IS INTERNAL TO NETWORKING AND IS SUBJECT TO CHANGE AND NOT FOR EXTERNAL USE |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalAll |
|
21 */ |
|
22 |
|
23 #ifndef SYMBIAN_NODEMESSAGES_SUBCONN_H |
|
24 #define SYMBIAN_NODEMESSAGES_SUBCONN_H |
|
25 |
|
26 #include <comms-infras/ss_nodemessages_internal.h> |
|
27 #include <comms-infras/ss_nodemessages_serviceprovider.h> |
|
28 |
|
29 namespace ESock |
|
30 { |
|
31 |
|
32 class TCFSubConnControlClient : public TCFControlClient |
|
33 { |
|
34 private: |
|
35 enum |
|
36 { |
|
37 ECFSubConnNotification = 1, |
|
38 #ifdef SYMBIAN_ADAPTIVE_TCP_RECEIVE_WINDOW |
|
39 ECFPlaneNotification = 2, // PJTODO, move to another realm, not subconnection specific notification |
|
40 #endif // SYMBIAN_ADAPTIVE_TCP_RECEIVE_WINDOW |
|
41 }; |
|
42 |
|
43 public: |
|
44 enum { ERealmId = 0x10285F50 }; //UID allocated on 4/6/08 from KUidNodeMessageRealms |
|
45 |
|
46 /*========================================================================== |
|
47 [Name]: TSubConnNotification |
|
48 [Semantics]: Sent by a subconnection provider to its control clients raising a CSubConNotificationEvent. |
|
49 The message has to be consumed as the CSubConNotificationEvent is refcounted. I.e.: the |
|
50 refcount is increased with each post and hence its dispatch has to consume the message |
|
51 by calling iRefCountOwnedSubConNotification.Close() (decrease the refcount). |
|
52 |
|
53 [Type]: Notification |
|
54 |
|
55 [Structure]: |
|
56 param: iRefCountOwnedNotification - refcounting wrapper that holds a reference to the |
|
57 XPlaneEvent. |
|
58 ===========================================================================*/ |
|
59 typedef TMessageSigSubConNotification<ECFSubConnNotification, TCFSubConnControlClient::ERealmId> TSubConnNotification; |
|
60 #ifdef SYMBIAN_ADAPTIVE_TCP_RECEIVE_WINDOW |
|
61 typedef TMessageSigPlaneNotification<ECFPlaneNotification, TCFSubConnControlClient::ERealmId> TPlaneNotification; |
|
62 #endif // SYMBIAN_ADAPTIVE_TCP_RECEIVE_WINDOW |
|
63 }; |
|
64 |
|
65 } //namespace esock |
|
66 |
|
67 #endif //SYMBIAN_NODEMESSAGES_SUBCONN_H |
|
68 |