ncdengine/provider/protocol/inc/ncd_cp_serverdetails.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     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:   MNcdConfigurationProtocolServerDetails declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef M_NCDCONFIGURATIONPROTOCOLSERVERDETAILS_H
       
    20 #define M_NCDCONFIGURATIONPROTOCOLSERVERDETAILS_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 class MNcdConfigurationProtocolDetail;
       
    25 
       
    26 class MNcdConfigurationProtocolServerDetails
       
    27     {
       
    28 public:
       
    29     
       
    30     /**
       
    31      * Destructor
       
    32      */
       
    33     virtual ~MNcdConfigurationProtocolServerDetails() {}
       
    34 
       
    35     /**
       
    36      * Server details version
       
    37      * @return Version or KNullDesC
       
    38      */
       
    39     virtual const TDesC& Version() const = 0;
       
    40     
       
    41     /**
       
    42      * Amount of details
       
    43      * @return Details count
       
    44      */
       
    45     virtual TInt DetailCount() const = 0;
       
    46     
       
    47     /**
       
    48      * Get details element
       
    49      * @param aIndex Details index. Leaves if index is out of bounds.
       
    50      * @return Details object reference.
       
    51      * @see DetailCount()
       
    52      */
       
    53     virtual const MNcdConfigurationProtocolDetail& DetailL( 
       
    54         TInt aIndex ) const = 0;
       
    55 
       
    56     /**
       
    57      * Amount of capabilities
       
    58      * @return Capability count
       
    59      */
       
    60     virtual TInt CapabilityCount() const = 0;
       
    61     
       
    62     /**
       
    63      * Get capability element
       
    64      * @param aIndex Capability index. Leaves if index is out of bounds.
       
    65      * @return Capability object reference.
       
    66      * @see CapabilityCount()
       
    67      */
       
    68     virtual const TDesC& CapabilityL( 
       
    69         TInt aIndex ) const = 0;
       
    70     };
       
    71 
       
    72 
       
    73 #endif // M_NCDCONFIGURATIONPROTOCOLSERVERDETAILS_H