ncdengine/provider/protocol/inc/ncd_cp_queryoption.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:   MNcdProtocolElementEntity declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef NCDPROTOCOLELEMENTQUERYOPTION_H
       
    20 #define NCDPROTOCOLELEMENTQUERYOPTION_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 class CNcdString;
       
    25 
       
    26 /**
       
    27  * Defines a selectable option in a query element.
       
    28  */
       
    29 class MNcdConfigurationProtocolQueryOption
       
    30     {
       
    31 public:
       
    32     
       
    33     /**
       
    34      * Destructor
       
    35      */
       
    36     virtual ~MNcdConfigurationProtocolQueryOption() {}
       
    37 
       
    38     
       
    39     /**
       
    40      * Unique identifier for the option. This needs to be sent
       
    41      * back in a query response if this option is selected.
       
    42      *
       
    43      * @return TNcdProtocolQueryTrigger
       
    44      */
       
    45     virtual const TDesC& Value() const = 0;
       
    46     
       
    47     /**
       
    48      * Name of the option. Should be shown to the end user.
       
    49      *
       
    50      * @return Option name.
       
    51      */
       
    52     virtual const CNcdString& Name() const = 0;    
       
    53 
       
    54     };
       
    55 
       
    56 
       
    57 #endif // NCDPROTOCOLELEMENTQUERYOPTION_H