webservices/wsframework/inc/msencontextitem.h
changeset 0 62f9d29f7211
equal deleted inserted replaced
-1:000000000000 0:62f9d29f7211
       
     1 /*
       
     2 * Copyright (c) 2002-2006 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 M_SEN_CONTEXT_ITEM_H
       
    26 #define M_SEN_CONTEXT_ITEM_H
       
    27 
       
    28 
       
    29 // INCLUDES
       
    30 #include <e32std.h>
       
    31 
       
    32 // CONSTANTS
       
    33 
       
    34 const TInt KErrSenCtxItemTypeMismatch = -30350; 
       
    35 
       
    36 
       
    37 // CLASS DECLARATION
       
    38 /**
       
    39 * This is the abstract super class for all WSF context iten classes, 
       
    40 * providing generic interface for resolving context item type, and
       
    41 * equal properties.
       
    42 */
       
    43 class MSenContextItem
       
    44     {
       
    45     public:
       
    46         enum TClass
       
    47             {
       
    48             EContextItem = 1, 
       
    49             EProtectedContextItem
       
    50             };
       
    51 
       
    52         enum TData
       
    53             {
       
    54             ETAny = 0,
       
    55             ETDesC8, 
       
    56             ETInt,
       
    57             ETUint,
       
    58             EMSenCoreServiceManager,
       
    59             ECSenElement,
       
    60             ECSenSoapMessage,
       
    61             ECSenChunk,
       
    62             EMSenMessage,
       
    63             ECSenMessageBase,
       
    64             ECSenSoapEnvelope2,
       
    65             ECSenXmlReader,
       
    66             ECSenWSDescription,
       
    67             EMSenRemoteServiceConsumer,
       
    68             EMSenRemoteHostlet,
       
    69             EMSenProperties,
       
    70             ECSenAtomMessage
       
    71             };
       
    72     
       
    73         // New functions
       
    74         
       
    75         /**
       
    76         * Method is used to resolve the class-type of the context item implementation
       
    77         * 
       
    78         * @return the class type of this handler
       
    79         */
       
    80         virtual MSenContextItem::TClass Type() const = 0;        
       
    81     };
       
    82 
       
    83 #endif // M_SEN_CONTEXT_ITEM_H
       
    84 
       
    85 // End of File