ncdengine/provider/client/inc/ncdquerytextitemimpl.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 text query item.
       
    15 *
       
    16 */
       
    17 	
       
    18 
       
    19 #ifndef C_NCD_QUERY_TEXT_ITEM_H
       
    20 #define C_NCD_QUERY_TEXT_ITEM_H
       
    21 
       
    22 #include <e32cmn.h>
       
    23 
       
    24 #include "ncdqueryitemimpl.h"
       
    25 #include "ncdquerytextitem.h"
       
    26 #include "ncdinterfaceids.h"
       
    27 
       
    28 class MNcdConfigurationProtocolQueryElement;
       
    29 
       
    30 /**
       
    31  *  Implementation for text query item.
       
    32  *
       
    33  * @since S60 v3.2
       
    34  */
       
    35 class CNcdQueryTextItem : public CNcdQueryItem,
       
    36                           public MNcdQueryTextItem
       
    37     {
       
    38     
       
    39 public:
       
    40 
       
    41     static CNcdQueryTextItem* NewL(
       
    42         RReadStream& aReadStream, CNcdQuery& aParent );
       
    43     
       
    44     static CNcdQueryTextItem* NewLC(
       
    45         RReadStream& aReadStream, CNcdQuery& aParent );
       
    46     
       
    47     static CNcdQueryTextItem* NewL(
       
    48         const MNcdConfigurationProtocolQueryElement& aQueryElement,
       
    49         CNcdQuery& aParent );
       
    50     
       
    51     static CNcdQueryTextItem* NewLC(
       
    52         const MNcdConfigurationProtocolQueryElement& aQueryElement,
       
    53         CNcdQuery& aParent );
       
    54       
       
    55     void InternalizeL( RReadStream& aReadStream );
       
    56     
       
    57     void InternalizeL( const MNcdConfigurationProtocolQueryElement& aQueryElement );
       
    58     
       
    59     void ExternalizeL( RWriteStream& aWriteStream ) const;
       
    60     
       
    61     const TDesC& Text();    
       
    62     
       
    63     
       
    64 public: // From MNcdQueryTextItem
       
    65 
       
    66     /**
       
    67      * @see MNcdQueryTextItem
       
    68      */ 
       
    69     virtual void SetTextL( const TDesC& aText );
       
    70     
       
    71 public: // From MNcdQueryItem
       
    72 
       
    73     /**
       
    74      * @see MNcdQueryItem
       
    75      */
       
    76     virtual TNcdInterfaceId Type() const;
       
    77     
       
    78 public: // From CNcdQueryItem
       
    79     
       
    80     /**
       
    81      * @see CNcdQueryItem
       
    82      */
       
    83     const TDesC& ValueL();
       
    84     
       
    85 protected:
       
    86 
       
    87     virtual ~CNcdQueryTextItem();
       
    88     
       
    89 private:
       
    90 
       
    91     CNcdQueryTextItem( CNcdQuery& aParent );
       
    92     
       
    93     virtual void ConstructL();
       
    94 
       
    95 private:
       
    96     
       
    97     HBufC* iText;
       
    98 
       
    99     };
       
   100 	
       
   101 	
       
   102 #endif //  C_NCD_QUERY_TEXT_ITEM_H