MSenMessage.h

Go to the documentation of this file.
00001 /*
00002 * ==============================================================================
00003 *  Name        : MSenMessage.h
00004 *  Part of     : Web Services Messages
00005 *  Interface   :
00006 *  Description : This is the superclass interface for wider set of 
00007 *                concrete WSF message classes.
00008 *  Version     :
00009 *
00010 *  Copyright © 2006 Nokia. All rights reserved.
00011 *  This material, including documentation and any related
00012 *  computer programs, is protected by copyright controlled by
00013 *  Nokia. All rights are reserved. Copying, including
00014 *  reproducing, storing, adapting or translating, any
00015 *  or all of this material requires the prior written consent of
00016 *  Nokia. This material also contains confidential
00017 *  information which may not be disclosed to others without the
00018 *  prior written consent of Nokia.
00019 * ==============================================================================
00020 */
00021 
00022 
00023 #ifndef M_SEN_MESSAGE_H
00024 #define M_SEN_MESSAGE_H
00025 
00026 #include <e32std.h>
00027 
00028 // FORWARD DECLARATIONS
00029 class CSenElement;
00030 class CSenXmlReader;
00031 
00032 //using namespace SenContext;
00033 
00034 // CONSTANTS
00035 //namespace SenContext // consider whether or not to declare new SenMessage c++ namespace
00036 //    {
00037 //    // Message class type enumeration for class casting:        
00038 //    }
00039 
00040 // FORWARD DECLARATIONS
00041 class MSenMessageContext;
00042 class MSenProperties;
00043 
00044 // CLASS DECLARATION
00052 class MSenMessage
00053     {
00054     public:
00055 
00059         enum TClass
00060             {
00061             EMessageBase     = 0,
00062             EHttpGetMsg      = 1,
00063             EHttpPostMsg     = 2,
00064             EHttpPutMsg      = 3,
00065             EHttpDeleteMsg   = 4,
00066             ESoapEnvelope    = 5, 
00067             ESoapMessage     = 6,
00068             ESoapEnvelope2   = 7,
00069             ESoapMessage2    = 8,
00070             ESoapMessageDom2 = 9,
00071             EAtomMessage     = 10
00072             };
00076         enum TDirection
00077             {
00078             EOutbound        = 0,
00079             EInbound         = 1
00080             };        
00081  
00085         virtual TClass Type() = 0;
00089         virtual TDirection Direction() = 0;
00090         
00091         
00103         virtual TInt SetContext(MSenMessageContext* apNotOwnedContext) = 0;
00104         
00110         virtual MSenMessageContext* Context() = 0;
00111 
00129         virtual TInt SetProperties(MSenProperties* apOwnedProperties) = 0;
00130 
00137         virtual MSenProperties* Properties() = 0;
00138 
00139         virtual TBool IsSafeToCast(TClass aType) = 0;
00151         virtual TInt TxnId() = 0; 
00152 
00173         virtual MSenMessage* CloneL() = 0;
00174     };
00175 
00176 #endif // M_SEN_MESSAGE_H
00177 
00178 // End of File
00179 
00180 

Copyright © Nokia Corporation 2001-2007
Back to top