widgetmodel/alfwidgetmodel/inc/alfstringvalue.h
branchRCL_3
changeset 19 4ea6f81c838a
parent 17 514d98f21c43
child 20 0e9bb658ef58
equal deleted inserted replaced
17:514d98f21c43 19:4ea6f81c838a
     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:   Declares StringType attribute Value.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef ALFSTRINGVALUE_H
       
    20 #define ALFSTRINGVALUE_H
       
    21 
       
    22 //INCLUDES
       
    23 #include <osn/osndefines.h>
       
    24 #include <memory>
       
    25 #include <osn/ustring.h>
       
    26 #include "alf/alfattributevaluetype.h"
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 
       
    30 namespace osncore
       
    31     {
       
    32 class UString;
       
    33     }
       
    34 using namespace osncore;
       
    35 using std::auto_ptr;
       
    36 
       
    37 namespace Alf
       
    38     {
       
    39 
       
    40 /**
       
    41  * A class for a string value type.
       
    42  *
       
    43  * @lib alfwidgetmodel.lib
       
    44  * @since S60 ?S60_version
       
    45  */
       
    46 class AlfStringValue : public AlfAttributeValueType
       
    47     {
       
    48 public:
       
    49 
       
    50     /**
       
    51      * Constructor.
       
    52      *
       
    53      * @since S60 ?S60_version
       
    54      * @return New object.
       
    55      */
       
    56     AlfStringValue( const UString& aValue );
       
    57 
       
    58     /**
       
    59      * Destructor.
       
    60      */
       
    61     virtual ~AlfStringValue();
       
    62 
       
    63     /**
       
    64         * Gets the string value.
       
    65         *
       
    66         * @since S60 ?S60_version
       
    67         * @return The string value.
       
    68         */
       
    69     const virtual UString& stringValue() const;
       
    70 
       
    71     /**
       
    72      * Gets the type of the atrribute value.
       
    73      *
       
    74      * @since S60 ?S60_version
       
    75      * @return The type of the value.
       
    76      */
       
    77     virtual Type type() const;
       
    78 
       
    79     /**
       
    80      * Gets the unit.
       
    81      *
       
    82      * @since S60 ?S60_version
       
    83      * @return The unit.
       
    84      */
       
    85     virtual TAlfUnit unit() const;
       
    86 
       
    87 private:    // data
       
    88 
       
    89     UString mString;
       
    90     };
       
    91 
       
    92     } // namespace Alf
       
    93 
       
    94 #endif // ALFSTRINGVALUE_H