mulwidgets/mulsliderwidget/inc/imulsliderbaseelementinternal.h
changeset 17 3eca7e70b1b8
parent 3 4526337fb576
equal deleted inserted replaced
3:4526337fb576 17:3eca7e70b1b8
     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:  interface for the slider base element internal functions.
       
    15  *
       
    16 */
       
    17 
       
    18 #ifndef I_MULSLIDERBASEELEMENTINTERNAL_H
       
    19 #define I_MULSLIDERBASEELEMENTINTERNAL_H
       
    20 
       
    21 //Widget Model include
       
    22 #include <alf/ialfinterfacebase.h>
       
    23 
       
    24 //Toolkit include
       
    25 #include <alf/alfevent.h>
       
    26 #include <alf/alftypes.h>
       
    27 #include <mul/imulsliderwidget.h>
       
    28 namespace Alf
       
    29     {
       
    30     enum SliderLCTIDs
       
    31     {
       
    32     EHSliderPane,// horizontal slider aacf_slider_pane(0) for base layout 
       
    33     EHSliderBase,
       
    34     EHSliderCentre,
       
    35     EHSliderCenter,// horizontal slider aaslider_bg_pane(0) for track
       
    36     EHSliderRight,
       
    37     EHSliderLeft,
       
    38     EHSliderHandle,// horizontal slider aacf_slider_pane_g1(0) for thumb 
       
    39     EHSliderHandleExtended,
       
    40     EVSliderPane,  // vertical slider aaslider_pane(2) for mainlayout
       
    41     EVSliderBackground, // vertical slider aaslider_pane_g1(2) for mainlayout
       
    42     EVSliderBgPane , // aaslider_bg_pane_cp001     
       
    43     EVSliderTop ,
       
    44     EVSliderMiddle ,
       
    45     EVSliderEnd ,
       
    46     EVSliderPlus, //aid_touch_size_slider_max
       
    47     EVSliderMinus, //aid_touch_size_slider_min
       
    48     EVSliderMarker, //aacf_slider_pane_g1
       
    49     EVSliderMarkerExtended,
       
    50     EVSliderZoomText, //aaslider_pane_t3
       
    51     EVSliderAudioImage,
       
    52     EVSliderInnerRect,
       
    53     EPSliderLeft,
       
    54     EPSliderCentre,
       
    55     EPSliderRight   
       
    56     };    
       
    57 enum TOperation
       
    58 {
       
    59 ENop,      // Nothing is going on.
       
    60 EMoveItem   // Item is begin moved.
       
    61 }; 
       
    62 /**
       
    63  * @namespace mulsliderbaseelementinternal
       
    64  *
       
    65  * internal interface.
       
    66  */
       
    67 namespace mulsliderbaseelementinternal
       
    68     {
       
    69     static const IfId ident =
       
    70         {
       
    71         0,"mulsliderbaseelementinternal" 
       
    72         };
       
    73     }
       
    74 
       
    75 
       
    76 class IMulSliderBaseElementInternal : public IAlfInterfaceBase 
       
    77     {
       
    78 
       
    79 public:
       
    80 
       
    81  
       
    82     static inline const IfId& type()
       
    83         {
       
    84         return mulsliderbaseelementinternal :: ident;
       
    85         }
       
    86 
       
    87     /**
       
    88      * Notified when the base layout of Slider changes .
       
    89      * Relayouts all the visuals with respect to the new size.
       
    90      */
       
    91 
       
    92     virtual void baseLayoutSizeChanged()=0;
       
    93     /**
       
    94       * Creates the Visualization of Slider
       
    95       * 
       
    96       */
       
    97  
       
    98     virtual void createVisualization(sliderTemplate aTemplate) = 0;
       
    99     /**
       
   100       * Updates the Visualization of Slider
       
   101       * 
       
   102       */
       
   103 
       
   104     virtual void updateVisualization() = 0;
       
   105     /**
       
   106       * Updates the Text Visualization of Slider
       
   107       * 
       
   108       */
       
   109 
       
   110     virtual void updateTextVisualization() = 0;
       
   111     /**
       
   112       * Stops all the event handling operations 
       
   113       * 
       
   114       */
       
   115 
       
   116     virtual void stopEvents()
       
   117         {
       
   118         
       
   119         }
       
   120     /**
       
   121       * API to make the widget transparent.
       
   122       * @param aTransparent - True will make it transparent.
       
   123       *                     - False for Opaque. 
       
   124       */
       
   125 
       
   126     virtual void MakeTransparent( bool /*aTransparent*/ )
       
   127     {
       
   128     	
       
   129     }
       
   130     /**
       
   131       * API to Handle Long Tap events.
       
   132       */   
       
   133     virtual AlfEventStatus handleLongTap() 
       
   134     {
       
   135     	 return EEventNotHandled;
       
   136     }
       
   137        
       
   138     /** 
       
   139      *virtual Destructor.
       
   140      *
       
   141      */
       
   142     virtual ~IMulSliderBaseElementInternal() {}
       
   143 
       
   144     }; // end of class IMulSliderBaseElementInternal
       
   145   
       
   146     } // end of namespace Alf
       
   147 
       
   148 #endif // I_MULSLIDERBASEELEMENTINTERNAL_H
       
   149 //End Of File