phoneclientserver/phoneserver/Src/Standard/CPhSrvSession.cpp
changeset 12 ae8abd0db65c
parent 0 ff3b6d0fd310
child 13 e32024264ebb
equal deleted inserted replaced
0:ff3b6d0fd310 12:ae8abd0db65c
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 
    19 
    20 // INCLUDE FILES
    20 // INCLUDE FILES
    21 #include "CPhSrvServer.h"
    21 #include "CPhSrvServer.h" 
    22 #include "CPhSrvSession.h"
    22 #include "CPhSrvSession.h" 
    23 #include "CPhSrvSubSessionBase.h"
    23 #include "CPhSrvSubSessionBase.h" 
    24 #include "PhSrvSubSessionFactory.h"
    24 #include "PhSrvSubSessionFactory.h" 
    25 #include "PhCltClientServer.h"
    25 #include "PhCltClientServer.h" 
    26 
    26 
    27 // CONSTANTS
    27 // CONSTANTS
    28 
    28 
    29 
    29 
    30 
    30 
   179         CPhSrvSubSessionBase* subSession = 
   179         CPhSrvSubSessionBase* subSession = 
   180             static_cast< CPhSrvSubSessionBase* >( object );
   180             static_cast< CPhSrvSubSessionBase* >( object );
   181         
   181         
   182         if ( subSession )
   182         if ( subSession )
   183             {
   183             {
   184 	        // Check that the subsession can handle this request
   184             // Check that the subsession can handle this request
   185 	        if ( !subSession->PhSrvMessageDecoderCanProcessMessage( function ) )
   185             if ( !subSession->PhSrvMessageDecoderCanProcessMessage( function ) )
   186 	            {
   186                 {
   187 	            PanicClient(
   187                 PanicClient(
   188 	                aMessage,
   188                     aMessage,
   189 	                EPhCltServerInitiatedPanicInvalidHandle );
   189                     EPhCltServerInitiatedPanicInvalidHandle );
   190 	            }
   190                 }
   191 	        else
   191             else
   192 	            {
   192                 {
   193 	            // Get it to process this request
   193                 // Get it to process this request
   194 	            subSession->PhSrvMessageProcessorHandleMessageL( aMessage );
   194                 subSession->PhSrvMessageProcessorHandleMessageL( aMessage );
   195 	            }
   195                 }
   196             }            
   196             }            
   197         }
   197         }
   198     }
   198     }
   199 
   199 
   200 
   200