webservices/idwsfplugin/inc/idwsfserviceprovider.h
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: Header declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 #ifndef IDWSF_SERVICE_PROVIDER_H
       
    26 #define IDWSF_SERVICE_PROVIDER_H
       
    27 
       
    28 // INCLUDES
       
    29 #include <e32base.h>
       
    30 
       
    31 // CLASS DECLARATION
       
    32 class CIdWsfServiceProvider : public CBase
       
    33     {
       
    34     public: // Constructors and destructor
       
    35     
       
    36         static CIdWsfServiceProvider* NewL(const TDesC8& aProviderID = KNullDesC8,
       
    37                                            const TDesC8& aServiceURL = KNullDesC8);
       
    38 
       
    39         static CIdWsfServiceProvider* NewLC(const TDesC8& aProviderID = KNullDesC8,
       
    40                                             const TDesC8& aServiceURL = KNullDesC8);
       
    41         virtual ~CIdWsfServiceProvider();
       
    42 
       
    43         // New functions
       
    44         
       
    45         TInt SetProviderIdL(const TDesC8& aProviderID);
       
    46         TInt SetEndPointL(const TDesC8& aServiceURL);
       
    47         TPtrC8 ProviderId();
       
    48         TPtrC8 Endpoint();
       
    49         TBool Equals(const TDesC8& aProviderID);
       
    50 
       
    51     private:
       
    52         
       
    53         /**
       
    54         * C++ default constructor.
       
    55         */
       
    56         CIdWsfServiceProvider();
       
    57         
       
    58         /**
       
    59         * By default Symbian 2nd phase constructor is private.
       
    60         */
       
    61         void ConstructL(const TDesC8& aProviderID, const TDesC8& aEndpoint);
       
    62 
       
    63     private: // Data
       
    64         HBufC8* ipProviderId;   // Owned
       
    65         HBufC8* ipEndpoint;     // Owned
       
    66     };
       
    67 
       
    68 #endif // IDWSF_SERVICE_PROVIDER_H
       
    69 
       
    70 // End of File