webservices/wsoviplugin/inc/wsovidevicehandler.h
changeset 0 62f9d29f7211
equal deleted inserted replaced
-1:000000000000 0:62f9d29f7211
       
     1 /*
       
     2 * Copyright (c) 2008 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: Header declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 #ifndef WSOVI_ENVELOPER_HANDLER_H
       
    27 #define WSOVI_ENVELOPER_HANDLER_H
       
    28 
       
    29 #include <e32std.h>
       
    30 
       
    31 // FORWARD DECLARATIONS
       
    32 
       
    33 // CONSTANTS
       
    34 
       
    35 
       
    36 // INCLUDES
       
    37 #include <e32std.h>
       
    38 #include <flogger.h>
       
    39 #include "wsovimessagecontext.h"
       
    40 #include "wsovihandlercontext.h"
       
    41 #include "senmessagehandler.h"
       
    42 #include "sendebug.h"
       
    43 #include "senserviceinvocationframework.h"
       
    44 
       
    45 /**
       
    46  * Class:       
       
    47  *
       
    48  * Description: An implementation of the CWSOviHandler definition. This is concrete
       
    49  * class, instance of which ECOM framework gives to ECOM clients.
       
    50  * This handler creates proper Envelope based on provided policy (by message context)
       
    51  */
       
    52 class CWSOviDeviceHandler : public CSenMessageHandler
       
    53     {
       
    54 
       
    55 public:
       
    56     static CWSOviDeviceHandler* NewL(TAny* aHandlerCtx);
       
    57     virtual TInt InvokeL(MSenMessageContext& aCtx);
       
    58     ~CWSOviDeviceHandler();
       
    59     
       
    60     virtual SenHandler::THandlerDirection Direction() const;
       
    61     virtual SenHandler::THandlerPhase Phase();
       
    62     virtual TInt InitL(MSenHandlerContext& aCtx);
       
    63     
       
    64         
       
    65 protected:
       
    66     /**
       
    67      * Function:   CWSOviDeviceHandler
       
    68      *
       
    69      * Discussion: Perform the first phase of two phase construction
       
    70      */
       
    71     CWSOviDeviceHandler(MSenHandlerContext& aCtx);
       
    72     
       
    73     /**
       
    74      * Function:   ConstructL
       
    75      *
       
    76      * Discussion: Perform the second phase construction of a
       
    77      *             CImplementationClassPlus object.
       
    78      */
       
    79     void ConstructL();
       
    80 
       
    81 private:
       
    82 
       
    83     HBufC8* iNAuthVersion;
       
    84     };
       
    85 
       
    86 #endif // WSOVI_ENVELOPER_HANDLER_H
       
    87