ncdengine/provider/client/inc/ncdquerynumericitemimpl.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:   Interface definition for numeric value query item.
       
    15 *
       
    16 */
       
    17 	
       
    18 
       
    19 #ifndef C_NCD_QUERY_NUMERIC_ITEM_H
       
    20 #define C_NCD_QUERY_NUMERIC_ITEM_H
       
    21 
       
    22 #include <e32cmn.h>
       
    23 
       
    24 #include "ncdqueryitemimpl.h"
       
    25 #include "ncdquerynumericitem.h"
       
    26 
       
    27 /**
       
    28  *  Describes a numeric query item.
       
    29  */
       
    30 class CNcdQueryNumericItem : public CNcdQueryItem,
       
    31                              public MNcdQueryNumericItem
       
    32     {
       
    33     
       
    34 public:
       
    35 
       
    36     static CNcdQueryNumericItem* NewL(
       
    37         RReadStream& aReadStream, CNcdQuery& aParent );
       
    38     
       
    39     static CNcdQueryNumericItem* NewLC(
       
    40         RReadStream& aReadStream, CNcdQuery& aParent );
       
    41     
       
    42     static CNcdQueryNumericItem* NewL(
       
    43         const MNcdConfigurationProtocolQueryElement& aQueryElement,
       
    44         CNcdQuery& aParent );
       
    45     
       
    46     static CNcdQueryNumericItem* NewLC(
       
    47         const MNcdConfigurationProtocolQueryElement& aQueryElement,
       
    48         CNcdQuery& aParent );
       
    49       
       
    50     void InternalizeL( RReadStream& aReadStream );
       
    51     
       
    52     void InternalizeL(
       
    53         const MNcdConfigurationProtocolQueryElement& aQueryElement );
       
    54     
       
    55     void ExternalizeL( RWriteStream& aWriteStream ) const;
       
    56     
       
    57 public: // From MNcdQueryNumericItem
       
    58     
       
    59     /**
       
    60      * @see MNcdQueryNumericItem
       
    61      */
       
    62     virtual void SetValueL( const TDesC& aValue );
       
    63 
       
    64 public: // From MNcdQueryItem
       
    65 
       
    66     /**
       
    67      * @see MNcdQueryItem
       
    68      */
       
    69     virtual TNcdInterfaceId Type() const;
       
    70     
       
    71 public: // From CNcdQueryItem
       
    72     
       
    73     /**
       
    74      * @see CNcdQueryItem
       
    75      */
       
    76     const TDesC& ValueL();
       
    77     
       
    78 protected:
       
    79 
       
    80     virtual ~CNcdQueryNumericItem();
       
    81 
       
    82 private:
       
    83 
       
    84     CNcdQueryNumericItem( CNcdQuery& aParent );
       
    85     
       
    86     virtual void ConstructL();
       
    87     };
       
    88 	
       
    89 	
       
    90 #endif //  M_NCD_QUERY_NUMERIC_ITEM_H