webservices/wsframework/inc/senlayeredvtcptransportproperties.h
changeset 0 62f9d29f7211
equal deleted inserted replaced
-1:000000000000 0:62f9d29f7211
       
     1 /*
       
     2 * Copyright (c) 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 SEN_LAYERED_VTCP_TRANSPORT_PROPERTIES_H
       
    26 #define SEN_LAYERED_VTCP_TRANSPORT_PROPERTIES_H
       
    27 
       
    28 #include "senlayeredtransportproperties.h"
       
    29 
       
    30 class CSenLayeredVtcpTransportProperties : public CSenLayeredTransportProperties
       
    31     {
       
    32     public:
       
    33         IMPORT_C static CSenLayeredVtcpTransportProperties* NewL();
       
    34         IMPORT_C static CSenLayeredVtcpTransportProperties* NewLC();
       
    35         IMPORT_C static CSenLayeredVtcpTransportProperties* NewL(const CSenElement& aElement);
       
    36         IMPORT_C static CSenLayeredVtcpTransportProperties* NewLC(const CSenElement& aElement);        
       
    37 
       
    38         // From MSenProperties
       
    39         virtual void SetReader(CSenXmlReader& aReader);
       
    40         virtual TSenPropertiesClassType PropertiesClassType();
       
    41         virtual void WriteToL(RWriteStream& aWriteStream);
       
    42         virtual void ReadFromL(const TDesC8& aBuffer);
       
    43         virtual HBufC8* AsUtf8L();
       
    44         virtual HBufC8* AsUtf8LC();
       
    45         virtual TInt SetPropertyL(const TDesC8& aName, const TDesC8& aValue);
       
    46         virtual TInt PropertyL(const TDesC8& aName, TPtrC8& aValue);
       
    47         virtual TInt SetIntPropertyL(const TDesC8& aName, const TInt aValue);
       
    48         virtual TInt IntPropertyL(const TDesC8& aName, TInt& aValue);
       
    49         virtual TInt SetBoolPropertyL(const TDesC8& aName, const TBool aValue);
       
    50         virtual TInt BoolPropertyL(const TDesC8& aName, TBool& aValue);
       
    51         virtual TBool IsSafeToCast(TSenPropertiesClassType aClass);
       
    52 
       
    53         // From MSenLayeredProperties 
       
    54         virtual void WriteToL(RWriteStream& aWriteStream, TSenPropertiesLayer aLayer);
       
    55         virtual void ReadFromL(const TDesC8& aBuffer, TSenPropertiesLayer aLayer);
       
    56         virtual HBufC8* AsUtf8L(TSenPropertiesLayer aLayer);
       
    57         virtual HBufC8* AsUtf8LC(TSenPropertiesLayer aLayer);
       
    58         virtual TInt ShrinkTo(TSenPropertiesLayer aLayer);
       
    59         virtual void ExpandToL(TSenPropertiesLayer aLayer);
       
    60         virtual TSenPropertiesLayer TopLayer();
       
    61         virtual TInt SetPropertyL(const TDesC8& aName, const TDesC8& aValue, TSenPropertiesLayer aLayer);
       
    62         virtual TInt PropertyL(const TDesC8& aName, TPtrC8& aValue, TSenPropertiesLayer aLayer);
       
    63         virtual TInt PropertyL(const TDesC8& aName, MSenProperty*& aValue, TSenPropertiesLayer aLayer);
       
    64         virtual TInt PropertyL(const TDesC8& aName, MSenProperty*& aValue);                               
       
    65         virtual TInt PropertiesByTypeL(const TDesC8& aTypeName, RPointerArray<MSenProperty>& aArray);
       
    66         virtual TInt SetIntPropertyL(const TDesC8& aName, const TInt aValue, TSenPropertiesLayer aLayer);
       
    67         virtual TInt IntPropertyL(const TDesC8& aName, TInt& aValue, TSenPropertiesLayer aLayer);
       
    68         virtual MSenProperties* CloneL() const;
       
    69         virtual TInt SetBoolPropertyL(const TDesC8& aName, const TBool aValue, TSenPropertiesLayer aLayer);
       
    70         virtual TInt BoolPropertyL(const TDesC8& aName, TBool& aValue, TSenPropertiesLayer aLayer);     
       
    71         virtual TInt SetPropertyL(const TDesC8& aName, const TDesC8& aValue, const TDesC8& aType);
       
    72         virtual TInt PropertyL(const TDesC8& aName, TPtrC8& aValue, TPtrC8& aType);   
       
    73   
       
    74         
       
    75         // New Functions       
       
    76         /**
       
    77         * Gets the IAP ID.
       
    78         * @param aCurrentIapId  A TUint32 reference to be filled in with the
       
    79         *                       value of the IAP ID.
       
    80         * @return               KErrNone if no error, or some of the system
       
    81         *                       wide error codes.
       
    82         */
       
    83         virtual TInt IapIdL(TUint32& aCurrentIapId);
       
    84 
       
    85         /**
       
    86         * Gets the Proxy Port.
       
    87         * @param aProxyPort  A TInt reference to be filled in with the
       
    88         *                    value of the Proxy Port.
       
    89         * @return            KErrNone if no error, or some of the system
       
    90         *                    wide error codes.
       
    91         */
       
    92         virtual TInt ProxyPortL(TInt& aProxyPort);
       
    93 
       
    94         /**
       
    95         * Gets the Proxy Host.
       
    96         * @param aProxyHost  A TPtrC8 reference to be filled in with the
       
    97         *                    value of the Proxy Host.
       
    98         * @return            KErrNone if no error, or some of the system
       
    99         *                    wide error codes.
       
   100         */
       
   101         virtual TInt ProxyHostL(TPtrC8& aProxyHost);
       
   102         /**
       
   103         * Gets the Proxy Usage.
       
   104         * @param aProxyUsage A TBool reference to be filled in with the
       
   105         *                    value of the Proxy Usage.
       
   106         * @return            KErrNone if no error, or some of the system
       
   107         *                    wide error codes.
       
   108         */
       
   109         virtual TInt ProxyUsageL(TBool& aProxyUsage);
       
   110         /**
       
   111         * Gets the UserAgent.
       
   112         * @param aUserAgent  A TPtrC8 reference to be filled in with the
       
   113         *                    value of the UserAgent.
       
   114         * @return            KErrNone if no error, or some of the system
       
   115         *                    wide error codes.
       
   116         */
       
   117         virtual TInt UserAgentL(TPtrC8& aUserAgent);
       
   118         
       
   119         /**
       
   120         * Gets the Device ID.
       
   121         * @param aDeviceID   A TPtrC8 reference to be filled in with the
       
   122         *                    value of the DeviceId.
       
   123         * @return            KErrNone if no error, or some of the system
       
   124         *                    wide error codes.
       
   125         */
       
   126         virtual TInt DeviceIDL(TPtrC8& aDeviceID);
       
   127 
       
   128         /**
       
   129         * Gets the Action of message
       
   130         * @param aAction A TPtrC8 reference to be filled in with the
       
   131         *                    value of the Action.
       
   132         * @return            KErrNone if no error, or some of the system
       
   133         *                    wide error codes.
       
   134         */
       
   135         virtual TInt SoapActionL(TPtrC8& aAction);
       
   136 
       
   137         /**
       
   138         * Gets the Device LCID.
       
   139         * @param aDeviceLCId   A TPtrC8 reference to be filled in with the
       
   140         *                    value of the DeviceLCID.
       
   141         * @return            KErrNone if no error, or some of the system
       
   142         *                    wide error codes.
       
   143         */
       
   144         virtual TInt DeviceLCIDL(TPtrC8& aDeviceLCID);
       
   145         
       
   146         /**
       
   147         * Gets the connection mode (Bound/Unbound)
       
   148         * @param aConnectionBound A Bool reference to be filled in with the
       
   149         *                    value (true if connection is bound).
       
   150         * @return            KErrNone if no error, or some of the system
       
   151         *                    wide error codes.
       
   152         */
       
   153         virtual TInt ConnectionBoundL(TBool& aConnectionBound);
       
   154         
       
   155         /**
       
   156         * Gets the connection time out (in minutes)
       
   157         * @param aConnectionBound A TInt reference to be filled in with the
       
   158         *                    value of time out for virtual connection
       
   159         * @return            KErrNone if no error, or some of the system
       
   160         *                    wide error codes.
       
   161         */
       
   162         virtual TInt ConnectionTimeOutL(TInt& aConnectionTimeOut);
       
   163         
       
   164         /**
       
   165         * Gets download folder for incoming BLOB (binary large objects)
       
   166         * @param aDownloadFolder - A TPtrC8 reference to be filled in with the
       
   167         *                    value of the shared, public folder for downloaded 
       
   168         *                    content
       
   169         * @return            KErrNone if no error, or some of the system
       
   170         *                    wide error codes.
       
   171         */
       
   172         virtual TInt DownloadFolderL(TPtrC8& aDownloadFolder);
       
   173        
       
   174         /**
       
   175         * Gets filename of file attachment
       
   176         * @param aCid - cid for filename
       
   177         * @param aFileName - filename of file attachment with current cid
       
   178         * @return            KErrNone if no error, or some of the system
       
   179         *                    wide error codes.
       
   180         */
       
   181         virtual TInt FileAttachmentL(const TDesC8& aCid, HBufC8*& aFileName);
       
   182 
       
   183         /**
       
   184         * Gets namespace of Microsoft schema
       
   185         * @param aMwsNamespace - namespace
       
   186         * @return            KErrNone if no error, or some of the system
       
   187         *                    wide error codes.
       
   188         */
       
   189         virtual TInt MwsNamespaceL(TPtrC8& aMwsNamespace);
       
   190 
       
   191        /**
       
   192         * Destructor.
       
   193         */
       
   194         virtual ~CSenLayeredVtcpTransportProperties();
       
   195 
       
   196 		/**
       
   197         * Gets the SNAP ID.
       
   198         * @param aCurrentSnapId  A TUint32 reference to be filled in with the
       
   199         *                       value of the SNAP ID.
       
   200         * @return               KErrNone if no error, or some of the system
       
   201         *                       wide error codes.
       
   202         */
       
   203         virtual TInt SnapIdL(TUint32& aCurrentSnapId);	
       
   204 
       
   205     protected:
       
   206         /**
       
   207         * Constructor.
       
   208         */
       
   209         CSenLayeredVtcpTransportProperties();
       
   210     };
       
   211 
       
   212 #endif // SEN_LAYERED_VTCP_TRANSPORT_PROPERTIES_H
       
   213 
       
   214 // End of File
       
   215