1 /* |
|
2 * Copyright (c) 2003-2004 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: Stub implementation for Sub Session Command handler notify. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include "cphsrvsubsessionbase.h" |
|
22 #include "cphsrvsession.h" |
|
23 #include "cphsrvserver.h" |
|
24 #include <phclttypes.h> |
|
25 #include "mphsrvcomhandnegotiators.h" |
|
26 #include "cphsrvsubsessioncommandhandlernotify.h" |
|
27 |
|
28 |
|
29 |
|
30 // ============================ MEMBER FUNCTIONS =============================== |
|
31 |
|
32 |
|
33 // ----------------------------------------------------------------------------- |
|
34 // CPhSrvSubSessionCommandHandlerNotify:: |
|
35 // CPhSrvSubSessionCommandHandlerNotify |
|
36 // |
|
37 // Constructor. |
|
38 // ----------------------------------------------------------------------------- |
|
39 // |
|
40 CPhSrvSubSessionCommandHandlerNotify::CPhSrvSubSessionCommandHandlerNotify( |
|
41 CPhSrvSession& aSession ) |
|
42 : CPhSrvSubSessionBase( aSession, EPhSrvSubSessionTypeComHandNotify ) |
|
43 { |
|
44 } |
|
45 |
|
46 |
|
47 // ----------------------------------------------------------------------------- |
|
48 // CPhSrvSubSessionCommandHandlerNotify::NewL |
|
49 // |
|
50 // Two-phased constructor. |
|
51 // ----------------------------------------------------------------------------- |
|
52 // |
|
53 CPhSrvSubSessionBase* |
|
54 CPhSrvSubSessionCommandHandlerNotify::NewL( |
|
55 CPhSrvSession& aSession ) |
|
56 { |
|
57 CPhSrvSubSessionBase* self = |
|
58 new( ELeave ) CPhSrvSubSessionCommandHandlerNotify( aSession ); |
|
59 |
|
60 return self; |
|
61 } |
|
62 |
|
63 |
|
64 // ----------------------------------------------------------------------------- |
|
65 // CPhSrvSubSessionCommandHandlerNotify::~CPhSrvSubSessionCommandHandlerNotify |
|
66 // |
|
67 // Destructor. |
|
68 // ----------------------------------------------------------------------------- |
|
69 // |
|
70 CPhSrvSubSessionCommandHandlerNotify::~CPhSrvSubSessionCommandHandlerNotify() |
|
71 { |
|
72 } |
|
73 |
|
74 |
|
75 // ----------------------------------------------------------------------------- |
|
76 // CPhSrvSubSessionCommandHandlerNotify::PhSrvMessageDecoderCanProcessMessage |
|
77 // |
|
78 // Framework function. Returns ETrue for the op codes that |
|
79 // this subsession can handle. |
|
80 // ----------------------------------------------------------------------------- |
|
81 // |
|
82 TBool |
|
83 CPhSrvSubSessionCommandHandlerNotify::PhSrvMessageDecoderCanProcessMessage( |
|
84 TInt aFunction ) |
|
85 { |
|
86 switch( aFunction ) |
|
87 { |
|
88 case EPhoneServerComHandNotifySubSessionClose: |
|
89 case EPhoneServerComHandNotifySubSessionComHandRequest: |
|
90 case EPhoneServerComHandNotifySubSessionComHandRequestCancel: |
|
91 case EPhoneServerComHandNotifySubSessionReportComHandResult: |
|
92 return ETrue; |
|
93 |
|
94 default: |
|
95 return EFalse; |
|
96 } |
|
97 } |
|
98 |
|
99 |
|
100 // ----------------------------------------------------------------------------- |
|
101 // CPhSrvSubSessionCommandHandlerNotify::PhSrvMessageProcessorHandleMessageL |
|
102 // |
|
103 // Framework function. Handle any op-codes here. |
|
104 // ----------------------------------------------------------------------------- |
|
105 // |
|
106 void CPhSrvSubSessionCommandHandlerNotify::PhSrvMessageProcessorHandleMessageL( |
|
107 const RMessage2& /* aMessage */ ) |
|
108 { |
|
109 // Stub implementation, i.e. functionality not supported. |
|
110 User::Leave( KErrNotSupported ); |
|
111 } |
|
112 |
|
113 |
|
114 // ----------------------------------------------------------------------------- |
|
115 // CPhSrvSubSessionCommandHandlerNotify::InitiatorMakeAsynchronousComHandRequest |
|
116 // |
|
117 // Called by the command handler negotiator when it wants this object to |
|
118 // initiate a command handler request (on behalf of the external interface). |
|
119 // ----------------------------------------------------------------------------- |
|
120 // |
|
121 void |
|
122 CPhSrvSubSessionCommandHandlerNotify::InitiatorMakeAsynchronousComHandRequest( |
|
123 const TPhCltComHandCommandParameters& /* aParams */ ) |
|
124 { |
|
125 } |
|
126 |
|
127 |
|
128 // ----------------------------------------------------------------------------- |
|
129 // CPhSrvSubSessionCommandHandlerNotify::InitiatorIsReadyToPerformRequest |
|
130 // |
|
131 // Does this session have a pending request? |
|
132 // ----------------------------------------------------------------------------- |
|
133 // |
|
134 TBool |
|
135 CPhSrvSubSessionCommandHandlerNotify::InitiatorIsReadyToPerformRequest() const |
|
136 { |
|
137 return EFalse; |
|
138 } |
|
139 |
|
140 |
|
141 |
|
142 |
|
143 // End of File |
|