webservices/wsoviplugin/inc/wsovihandlercontext.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 #ifndef WSOvi_HANDLER_VALIDATE_CONTEXT_H
       
    26 #define WSOvi_HANDLER_VALIDATE_CONTEXT_H
       
    27 
       
    28 // INCLUDES
       
    29 #include <e32std.h>
       
    30 #include <flogger.h>
       
    31 #include "msenhandlercontext.h"
       
    32 
       
    33 // CONSTANTS
       
    34 namespace HandlerContextKey
       
    35     {
       
    36     _LIT8(KSIF,         "SIF");
       
    37     _LIT8(KLogger,      "Logger");
       
    38     _LIT8(KVersion,     "version");
       
    39     _LIT8(KDiff,		"diff");
       
    40     }
       
    41 
       
    42 // FORWARD DECLARATIONS
       
    43 class CWSOviPlugin;
       
    44 
       
    45 /**
       
    46  * Class:       
       
    47  */
       
    48 class CWSOviHandlerContext : public CBase, public MSenHandlerContext
       
    49     {
       
    50     public:
       
    51         static CWSOviHandlerContext* NewL();
       
    52         ~CWSOviHandlerContext();
       
    53 
       
    54         //from HandlerContext    
       
    55         virtual TInt Add(MSenCoreServiceManager& aValue);
       
    56         virtual MSenCoreServiceManager* GetSenCoreServiceManager();
       
    57             
       
    58         //from MContext    
       
    59         virtual SenContext::TContextType Type() const;        
       
    60         virtual SenContext::TContextDirection Direction() const;
       
    61         virtual TInt Add(const TDesC8& aKey, const TDesC8& aValue);
       
    62         virtual TInt Update(const TDesC8& aKey, const TDesC8& aValue);
       
    63         virtual const TDesC8* GetDesC8L(const TDesC8& aKey);
       
    64         virtual TInt Add(const TDesC8& aKey, TInt aValue);
       
    65         virtual TInt Update(const TDesC8& aKey, TInt aValue);
       
    66         virtual const TInt* GetIntL(const TDesC8& aKey);
       
    67         virtual TInt Add(const TDesC8& aKey, CSenElement* aValue);
       
    68         virtual TInt Update(const TDesC8& aKey, CSenElement* aValue);
       
    69         virtual const CSenElement* GetSenElementL(const TDesC8& aKey) ;
       
    70         virtual TInt Add(const TDesC8& aKey, TAny* aValue);
       
    71         virtual TInt Update(const TDesC8& aKey, TAny* aValue) ;
       
    72         virtual TAny* GetAnyL(const TDesC8& aKey);		//codescannerwarnings
       
    73         virtual const CSenXmlReader* GetParser();
       
    74         virtual TInt Remove(const TDesC8& aKey);         
       
    75         virtual TInt Count() const;
       
    76         virtual TPtrC8 KeyAtL(TInt aIndex);
       
    77         virtual void Reset() ;
       
    78         
       
    79         inline virtual TInt SetDirection( SenContext::TContextDirection /* aDirection */ ) { return KErrNotSupported; } // not implemented
       
    80 
       
    81             
       
    82     protected:
       
    83         /**
       
    84          * Function:   CWSOviHandlerContext
       
    85          *
       
    86          * Discussion: Perform the first phase of two phase construction
       
    87          */
       
    88         CWSOviHandlerContext();
       
    89 
       
    90         /**
       
    91          * Function:   ConstructL
       
    92          *
       
    93          * Discussion: Perform the second phase construction of a
       
    94          *             CImplementationClassPlus object.
       
    95          */
       
    96         void ConstructL();
       
    97             
       
    98     private://data
       
    99         MSenCoreServiceManager* iCoreServiceManager;
       
   100         CWSOviPlugin* iWSOviPlugin;
       
   101         RFileLogger* iLogger;
       
   102         HBufC8* iVersion;//owned
       
   103         TInt* iDiff;     //owned
       
   104     };
       
   105 
       
   106 
       
   107 #endif // WSOvi_HANDLER_VALIDATE_CONTEXT_H
       
   108 
       
   109 
       
   110     
       
   111 // END OF FILE
       
   112