ncdengine/provider/server/inc/ncdserverdetails.h
author Simon Howkins <simonh@symbian.org>
Mon, 22 Nov 2010 12:04:39 +0000
branchRCL_3
changeset 84 e6c5e34cd9b9
parent 0 ba25891c3a9e
permissions -rw-r--r--
Adjusted to avoid exports, etc, from a top-level bld.inf

/*
* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:   MNcdServerDetails declaration
*
*/

 
#ifndef M_NCDSERVERDETAILS_H
#define M_NCDSERVERDETAILS_H 
 
class MCatalogsContext;
class MNcdConfigurationProtocolCookie;
 
/**
 * Interface for server details manipulation
 */
class MNcdServerDetails
    {        
public:    
    /**
     * Adds a new capability to details.
     *
     * @param aCapability Capability
     * @note Does not check for duplicates
     */
    virtual void AddCapabilityL( const TDesC& aCapability ) = 0;
       
    
    /**
     * Clears server's capabilities
     */
    virtual void ClearCapabilitiesL() = 0;
    
    /**
     */
    virtual TBool IsCapabilitySupported( const TDesC& aCapability ) const = 0;
    
    
    /**
     * Server URI getter
     */
    virtual const TDesC& ServerUri() const = 0;
        
    
    /**
     * Namespace getter
     */
    virtual const TDesC& Namespace() const = 0;
    
    
    /**
     * Cookie adder
     */
    virtual void AddCookieL( 
        const MNcdConfigurationProtocolCookie& aCookie,
        const TDesC8& aSim ) = 0;
            
       
    /**
     * Cookie getter
     *
     * @param aSim SIM identification
     * @return Array of cookies. Ownership of the cookies is not transferred
     */
    virtual RPointerArray<const MNcdConfigurationProtocolCookie>
        CookiesL( const TDesC8& aSim ) const = 0;
    
    
    /**
     * Removes expired cookies
     *
     * @return Number of removed cookies
     */
    virtual TInt RemoveExpiredCookies() = 0;    
protected:
    
    virtual ~MNcdServerDetails()
        {
        }
        
    };
    
    
#endif // M_NCDSERVERDETAILS_H