svgtopt/SVG/SVGImpl/inc/SVGEventAttributes.h
changeset 46 88edb906c587
equal deleted inserted replaced
-1:000000000000 46:88edb906c587
       
     1 /*
       
     2 * Copyright (c) 2005 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:  SVG Implementation header file
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef _INC_SVGEVENTATTRIBUTE_
       
    20 #define _INC_SVGEVENTATTRIBUTE_
       
    21 
       
    22 #if !defined(__E32BASE_H__)
       
    23 #include <e32base.h>
       
    24 #endif
       
    25 
       
    26 /**
       
    27  *  This is group all 'on' attributes into one class.
       
    28  *  CSvgElementImpl only has to hold one pointer to this class,
       
    29  *  thus saving memory for most instances of svg elements, which
       
    30  *  usually do not have these 'on' attributes.
       
    31  */
       
    32 class CSvgEventAttributes : public CBase
       
    33 {
       
    34 public:
       
    35     /**
       
    36     * Constructor
       
    37     *
       
    38     * @since 1.0
       
    39     * @param None
       
    40     * @return None
       
    41     */
       
    42     CSvgEventAttributes();
       
    43 
       
    44     /**
       
    45     * Destructor
       
    46     *
       
    47     * @since 1.0
       
    48     * @param None
       
    49     * @return None
       
    50     */
       
    51     virtual ~CSvgEventAttributes();
       
    52 
       
    53     /**
       
    54     * Get the 'onclick' attribute value
       
    55     *
       
    56     * @since 1.0
       
    57     * @param None
       
    58     * @return 'onclick' value
       
    59     */
       
    60     const HBufC* OnClick();
       
    61 
       
    62     /**
       
    63     * Set the 'onclick' attribute value
       
    64     *
       
    65     * @since 1.0
       
    66     * @param aString -- string to set value
       
    67     * @return none
       
    68     */
       
    69     void SetOnClickL( const TDesC& aString );
       
    70 
       
    71     /**
       
    72     * Get the 'onload' attribute value
       
    73     *
       
    74     * @since 1.0
       
    75     * @param None
       
    76     * @return 'onclick' value
       
    77     */
       
    78     const HBufC* OnLoad();
       
    79 
       
    80     /**
       
    81     * Set the 'onload' attribute value
       
    82     *
       
    83     * @since 1.0
       
    84     * @param aString -- string to set value
       
    85     * @return none
       
    86     */
       
    87     void SetOnLoadL( const TDesC& aString );
       
    88 
       
    89     /**
       
    90     * Get the 'onmousemove' attribute value
       
    91     *
       
    92     * @since 1.0
       
    93     * @param None
       
    94     * @return 'onclick' value
       
    95     */
       
    96     const HBufC* OnMouseMove();
       
    97 
       
    98     /**
       
    99     * Set the 'onmousemove' attribute value
       
   100     *
       
   101     * @since 1.0
       
   102     * @param aString -- string to set value
       
   103     * @return none
       
   104     */
       
   105     void SetOnMouseMoveL( const TDesC& aString );
       
   106 
       
   107 private:
       
   108     HBufC* iOnClick;
       
   109     HBufC* iOnLoad;
       
   110     HBufC* iOnMouseMove;
       
   111 };
       
   112 
       
   113 
       
   114 
       
   115 #endif