webservices/wsframework/src/senwsdescription.cpp
changeset 0 62f9d29f7211
equal deleted inserted replaced
-1:000000000000 0:62f9d29f7211
       
     1 /*
       
     2 * Copyright (c) 2002-2005 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:       
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 // INCLUDE FILESS
       
    26 #include "senwsdescription.h"
       
    27 
       
    28 EXPORT_C CSenWSDescription* CSenWSDescription::NewL()
       
    29     {
       
    30     CSenWSDescription* pNew = NewLC();
       
    31     CleanupStack::Pop();
       
    32     return(pNew) ;
       
    33     }
       
    34 
       
    35 EXPORT_C CSenWSDescription* CSenWSDescription::NewLC()
       
    36     {
       
    37     CSenWSDescription* pNew =
       
    38         new (ELeave) CSenWSDescription(EWSDescription);
       
    39     CleanupStack::PushL(pNew);
       
    40     pNew->ConstructL();
       
    41     return pNew;
       
    42     }
       
    43 
       
    44 EXPORT_C CSenWSDescription* CSenWSDescription::NewL(const TDesC8& aNamespaceURI)
       
    45     {
       
    46     CSenWSDescription* pNew = NewLC(aNamespaceURI);
       
    47     CleanupStack::Pop();
       
    48     return(pNew) ;
       
    49     }
       
    50 
       
    51 EXPORT_C CSenWSDescription* CSenWSDescription::NewLC(const TDesC8& aNamespaceURI)
       
    52     {
       
    53     CSenWSDescription* pNew =
       
    54                 new (ELeave) CSenWSDescription(EWSDescription);
       
    55     CleanupStack::PushL(pNew);
       
    56     pNew->ConstructL(aNamespaceURI);
       
    57     return pNew;
       
    58     }
       
    59 
       
    60 EXPORT_C CSenWSDescription* CSenWSDescription::NewL(const TDesC8& aEndPoint,
       
    61                                                     const TDesC8& aContract)
       
    62     {
       
    63     CSenWSDescription* pNew = NewLC(aEndPoint, aContract);
       
    64     CleanupStack::Pop();
       
    65     return(pNew) ;
       
    66     }
       
    67 
       
    68 EXPORT_C CSenWSDescription* CSenWSDescription::NewLC(const TDesC8& aEndPoint,
       
    69                                                      const TDesC8& aContract)
       
    70     {
       
    71     CSenWSDescription* pNew =
       
    72         new (ELeave) CSenWSDescription(EWSDescription);
       
    73     CleanupStack::PushL(pNew);
       
    74     pNew->ConstructL(aEndPoint, aContract);
       
    75     return pNew;
       
    76     }
       
    77     
       
    78 EXPORT_C CSenWSDescription::CSenWSDescription(TDescriptionClassType aType)
       
    79 : CSenXmlServiceDescription(aType)
       
    80     {
       
    81     }
       
    82 
       
    83 EXPORT_C CSenWSDescription::~CSenWSDescription()
       
    84     {
       
    85     }
       
    86     
       
    87 EXPORT_C TBool CSenWSDescription::HasEqualPrimaryKeysL(MSenServiceDescription& aCandidate)
       
    88     {
       
    89     return CSenXmlServiceDescription::HasEqualPrimaryKeysL(aCandidate);
       
    90     }
       
    91 
       
    92 EXPORT_C TBool CSenWSDescription::IsLocalL()
       
    93     {
       
    94     return CSenXmlServiceDescription::IsLocalL();
       
    95     }
       
    96 
       
    97 EXPORT_C TInt CSenWSDescription::SetTransportCueL(const TDesC8& aTransportCue)
       
    98     {
       
    99     return CSenXmlServiceDescription::SetTransportCueL(aTransportCue);
       
   100     }
       
   101 
       
   102 EXPORT_C TPtrC8 CSenWSDescription::TransportCue()
       
   103     {
       
   104     return CSenXmlServiceDescription::TransportCue();
       
   105     }
       
   106 
       
   107 EXPORT_C TBool CSenWSDescription::HasSuperClass( TDescriptionClassType /* aType */ )
       
   108     {
       
   109     return EFalse;
       
   110     }
       
   111 
       
   112 EXPORT_C MSenServicePolicy* CSenWSDescription::ServicePolicy()
       
   113     {
       
   114     return CSenXmlServiceDescription::ServicePolicy();
       
   115     }
       
   116 
       
   117 EXPORT_C TInt CSenWSDescription::SetPolicyL(const TDesC8& aName)
       
   118     {
       
   119     return CSenXmlServiceDescription::SetPolicyL(aName);
       
   120     }
       
   121 
       
   122 EXPORT_C TInt CSenWSDescription::SetPolicyL(const TDesC8& aName, const TDesC8& aValue)
       
   123     {
       
   124     return CSenXmlServiceDescription::SetPolicyL(aName, aValue);
       
   125     }
       
   126 
       
   127 EXPORT_C TInt CSenWSDescription::SetPolicyL(const TDesC8& aName, const TDesC8& aValue, const TDesC8& aAttribName, const TDesC8& aAttribValue)
       
   128     {
       
   129     return CSenXmlServiceDescription::SetPolicyL(aName, aValue, aAttribName, aAttribValue);
       
   130     }
       
   131 
       
   132 EXPORT_C TInt CSenWSDescription::SetProviderIdL( const TDesC8& aProviderID )
       
   133     {
       
   134     return CSenXmlServiceDescription::SetProviderIdL(aProviderID);
       
   135     }
       
   136 
       
   137 // Setter for SNAP
       
   138 EXPORT_C void CSenWSDescription::SetSnapIdL(TUint32 aSnapId)
       
   139     {
       
   140     CSenXmlServiceDescription::SetSnapIdL(aSnapId);
       
   141     }
       
   142 
       
   143 // Getter for SNAP
       
   144 EXPORT_C TInt CSenWSDescription::SnapId(TUint32& aCurrentSnapId)
       
   145     {
       
   146     return CSenXmlServiceDescription::SnapId(aCurrentSnapId);
       
   147     }
       
   148 
       
   149 // End of File