phoneclientserver/phoneserver/Inc/Standard/MPhSrvMessageProcessor.h
changeset 46 2fa1fa551b0b
parent 42 35488577e233
child 48 78df25012fda
equal deleted inserted replaced
42:35488577e233 46:2fa1fa551b0b
     1 /*
       
     2 * Copyright (c) 2002-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:  Message Processor interface class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MPHSRVMESSAGEPROCESSOR_H
       
    20 #define MPHSRVMESSAGEPROCESSOR_H
       
    21 
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 /**
       
    30 *  Abstract message decoder class.
       
    31 *
       
    32 *  @since 1.0 
       
    33 */
       
    34 class MPhSrvMessageDecoder
       
    35     {
       
    36     public: // New functions
       
    37 
       
    38         /**
       
    39         * Returns ETrue if this object can understand the specified
       
    40         * message function.
       
    41         *
       
    42         * @return Whether this object can understand the specified 
       
    43         *         client/server operation.
       
    44         */
       
    45         virtual TBool PhSrvMessageDecoderCanProcessMessage( 
       
    46             TInt aFunction ) = 0;
       
    47     };
       
    48 
       
    49 
       
    50 
       
    51 // CLASS DECLARATION
       
    52 
       
    53 /**
       
    54 *  Abstract message processor class.
       
    55 *
       
    56 *  @since 1.0 
       
    57 */
       
    58 class MPhSrvMessageProcessor : public MPhSrvMessageDecoder
       
    59     {
       
    60     public: // New functions
       
    61 
       
    62         /**
       
    63         * Process the specified client/server message.
       
    64         *
       
    65         * @param aMessage Message to be processed.
       
    66         */
       
    67         virtual void PhSrvMessageProcessorHandleMessageL( 
       
    68             const RMessage2& aMessage ) = 0;
       
    69     };
       
    70 
       
    71 
       
    72 #endif // MPHSRVMESSAGEPROCESSOR
       
    73 
       
    74        
       
    75 // End of File