|
1 // Copyright (c) 2006-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 // Definitions for generic Link Tier messages. |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalTechnology |
|
21 */ |
|
22 |
|
23 #ifndef LINKMESSAGES_H |
|
24 #define LINKMESSAGES_H |
|
25 |
|
26 #include <comms-infras/ss_nodemessages.h> |
|
27 |
|
28 |
|
29 class TLinkMessage |
|
30 { |
|
31 public: |
|
32 enum { ERealmId = 0x10281DE6 }; //same as agentcorepr |
|
33 |
|
34 private: |
|
35 // |
|
36 // Messages are grouped according to direction in an attempt to make it easier |
|
37 // to decipher message direction whilst debugging. |
|
38 // |
|
39 enum |
|
40 /** |
|
41 Definition of generic Link Tier message ids |
|
42 */ |
|
43 { |
|
44 // Flow -> SCPR |
|
45 EAuthenticate = Messages::KNullMessageId + 1, |
|
46 EFlowToAgentNotification = 2, |
|
47 |
|
48 // SCPR -> Flow |
|
49 EAuthenticateResponse = 3, |
|
50 EAgentToFlowNotification = 4, |
|
51 |
|
52 // AgentSCPr -> IPProtoSCPr |
|
53 EAgentEventNotification = 10 |
|
54 }; |
|
55 public: |
|
56 // |
|
57 // Generic Link Tier Flow -> SCPR messages |
|
58 // |
|
59 // These are simple messages with no arguments. |
|
60 |
|
61 typedef Messages::TMessageSigVoid<EAuthenticate, TLinkMessage::ERealmId> TAuthenticate; |
|
62 |
|
63 // Send a TCancel message to SCPR to cancel a previous TAuthenticateMsg |
|
64 // (there is no specific CancelAuthenticate) |
|
65 |
|
66 // Notification message to Agent |
|
67 typedef Messages::TMessageSigNumber<EFlowToAgentNotification, TLinkMessage::ERealmId> TFlowToAgentNotification; |
|
68 |
|
69 |
|
70 |
|
71 // |
|
72 // Generic Link Tier SCPR -> Flow messages |
|
73 // |
|
74 // These are simple messages with no arguments. |
|
75 |
|
76 typedef Messages::TMessageSigVoid<EAuthenticateResponse, TLinkMessage::ERealmId> TAuthenticateResponse; |
|
77 |
|
78 // Notification message to Flow |
|
79 typedef Messages::TMessageSigNumber<EAgentToFlowNotification, TLinkMessage::ERealmId> TAgentToFlowNotification; |
|
80 |
|
81 // |
|
82 // AgentSCPr -> IPProtoSCPr |
|
83 // |
|
84 typedef Messages::TMessageSigNumberNumber<EAgentEventNotification, TLinkMessage::ERealmId> TAgentEventNotification; |
|
85 }; |
|
86 |
|
87 #endif |
|
88 // LINKMESSAGES_H |
|
89 |