ipsservices/ipssossettings/inc/ipssetuiitemtext.h
changeset 0 8466d47a6819
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2007 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:  Decleares class with textual user data.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef IPSSETUIITEMTEXT_H
       
    20 #define IPSSETUIITEMTEXT_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 #include "ipssetuiitembase.h"
       
    25 
       
    26 /**
       
    27  *  Container class for user data and branched items.
       
    28  *
       
    29  *  @lib IpsSosSettings.lib
       
    30  *  @since FS v1.0
       
    31  */
       
    32 class CIpsSetUiItemsEditText : public CIpsSetUiItem
       
    33     {
       
    34 public:
       
    35 
       
    36 // Constructors and Destructor
       
    37 
       
    38     /**
       
    39      * Destructor
       
    40      */
       
    41     virtual ~CIpsSetUiItemsEditText();
       
    42 
       
    43     /**
       
    44      * @return New text item.
       
    45      */
       
    46     static CIpsSetUiItemsEditText* NewL();
       
    47 
       
    48     /**
       
    49      * @return New text item.
       
    50      */
       
    51     static CIpsSetUiItemsEditText* NewLC();
       
    52 
       
    53 // Operators
       
    54 
       
    55     /**
       
    56      * Copy operator
       
    57      *
       
    58      * @param aBaseItem Item, which values are copied.
       
    59      */
       
    60     CIpsSetUiItemsEditText& operator=(
       
    61         const CIpsSetUiItemsEditText& aBaseItem );
       
    62 
       
    63 // New virtual functions
       
    64 
       
    65     /**
       
    66      * @return Read-only reference to user data.
       
    67      */
       
    68     virtual inline const TDesC& Text() const;
       
    69 
       
    70     /**
       
    71      * @param aText Sets user data.
       
    72      */
       
    73     virtual inline void SetText( const TDesC& aText );
       
    74 
       
    75 protected:
       
    76 
       
    77 // Constructors
       
    78 
       
    79     /**
       
    80      * Constructor
       
    81      */
       
    82     CIpsSetUiItemsEditText();
       
    83 
       
    84     /**
       
    85      * 2nd-phase constructor
       
    86      */
       
    87     void ConstructL();
       
    88 
       
    89 // Data
       
    90 
       
    91     /**
       
    92      * Container for user text
       
    93      */
       
    94     RBuf                iUserText;
       
    95 
       
    96 public:
       
    97 
       
    98 // Data
       
    99 
       
   100     /**
       
   101      * Maximum value for the item.
       
   102      */
       
   103     TInt                iItemMaxLength;
       
   104     };
       
   105 
       
   106 #include "ipssetuiitemtext.inl"
       
   107 
       
   108 #endif /* IPSSETUIITEMTEXT_H */
       
   109 
       
   110 // End of file