ipsservices/ipssossettings/inc/ipssetuiitemvalue.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 numeric user data container.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef IPSSETUIITEMVALUE_H
       
    21 #define IPSSETUIITEMVALUE_H
       
    22 
       
    23 #include <e32base.h>
       
    24 
       
    25 #include "ipssetuiitembase.h"
       
    26 #include "ipssetutilsconsts.h"
       
    27 
       
    28 /**
       
    29  *  Container class for numeric user data.
       
    30  *
       
    31  *  @lib IpsSosSettings.lib
       
    32  *  @since FS v1.0
       
    33  */
       
    34 class CIpsSetUiItemValue : public CIpsSetUiItem
       
    35     {
       
    36 public:
       
    37 
       
    38 // Constructors and Destructor
       
    39 
       
    40     /**
       
    41      * Destructor
       
    42      */
       
    43     virtual ~CIpsSetUiItemValue();
       
    44 
       
    45     /**
       
    46      * @return New numeric dataitem.
       
    47      */
       
    48     static CIpsSetUiItemValue* NewL();
       
    49 
       
    50     /**
       
    51      * @return New numeric dataitem.
       
    52      */
       
    53     static CIpsSetUiItemValue* NewLC();
       
    54 
       
    55 // Operators
       
    56 
       
    57     /**
       
    58      * Copy operator
       
    59      *
       
    60      * @param aBaseItem Item, which values are copied.
       
    61      */
       
    62     CIpsSetUiItemValue& operator=(
       
    63         const CIpsSetUiItemValue& aBaseItem );
       
    64 
       
    65 // New Functions
       
    66 
       
    67     /**
       
    68      * @return User data.
       
    69      */
       
    70     virtual inline TInt64 Value() const;
       
    71 
       
    72     /**
       
    73      * @param aValue Sets user data.
       
    74      */
       
    75     virtual inline void SetValue( const TInt64 aValue );
       
    76 
       
    77 private:
       
    78 
       
    79 // Constructors
       
    80 
       
    81     /**
       
    82      * Constructor
       
    83      */
       
    84     CIpsSetUiItemValue();
       
    85 
       
    86     /**
       
    87      * 2nd-phase constructor
       
    88      */
       
    89     void ConstructL();
       
    90 
       
    91 private: // Data
       
    92 
       
    93     /**
       
    94      * Container for numeric userdata
       
    95      */
       
    96     TInt64              iUserValue;
       
    97 
       
    98 public: // Data
       
    99 
       
   100     /**
       
   101      * Maximum value for the item.
       
   102      */
       
   103     TInt                iItemMaxLength;
       
   104 
       
   105     /**
       
   106      * Text that should showed in the setting list for the item.
       
   107      */
       
   108     TIpsSetUtilsTextPlain*  iItemSettingText;
       
   109     };
       
   110 
       
   111 #include "ipssetuiitemvalue.inl"
       
   112 
       
   113 #endif // IPSSETUIITEMVALUE_H
       
   114 
       
   115 // End of file