meetingrequest/mrgui/inc/mesmrlistobserver.h
branchRCL_3
changeset 12 4ce476e64c59
parent 0 8466d47a6819
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
     1 /*
     1 /*
     2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    23 //</cmail>
    23 //</cmail>
    24 
    24 
    25 class CESMRField;
    25 class CESMRField;
    26 
    26 
    27 /**
    27 /**
    28  *  Observer interface for the custom list component.
    28  *  Observer interface for the custom list pane.
    29  *
    29  *
    30  *  @see cesmrlistcomponent.h
    30  *  @see cesmrlistpane.h
    31  *  @lib esmrgui.lib
    31  *  @lib esmrgui.lib
    32  */
    32  */
    33  class MESMRListObserver
    33  class MESMRListObserver
    34     {
    34     {
    35 public:
    35 public:
    44     /**
    44     /**
    45      * Sets field to be visible in the list.
    45      * Sets field to be visible in the list.
    46      *
    46      *
    47      * @param aField - id of the field.
    47      * @param aField - id of the field.
    48      */
    48      */
    49     virtual void InsertControl( TESMREntryFieldId aField ) = 0;
    49     virtual void ShowControl( TESMREntryFieldId aField ) = 0;
    50 
    50 
    51     /**
    51     /**
    52      * Disables field in the list. This method does not delete field.
    52      * Disables field in the list. This method does not delete field.
    53      *
    53      *
    54      * @param aField - id of the field.
    54      * @param aField - id of the field.
    55      */
    55      */
    56     virtual void RemoveControl( TESMREntryFieldId aField ) = 0;
    56     virtual void HideControl( TESMREntryFieldId aField ) = 0;
    57 
    57 
    58     /**
    58     /**
    59      * Is field visible or not.
    59      * Is field visible or not.
    60      *
    60      *
    61      * @return Boolean ETrue/EFalse
    61      * @return Boolean ETrue/EFalse
    71 
    71 
    72     /**
    72     /**
    73      * Scrolls the specific field to be fully visible
    73      * Scrolls the specific field to be fully visible
    74      *
    74      *
    75      * @param aInd Index of the field that needs to be fully visible
    75      * @param aInd Index of the field that needs to be fully visible
    76      * @param aSizeChanged ETrue if the field size has been changed
       
    77      */
    76      */
    78     virtual void ScrollItemVisible( TInt aInd ) = 0;
    77     virtual void ScrollControlVisible( TInt aInd ) = 0;
    79 
    78 
    80 // SCROLLING_MOD: Two methods for CESMRRichTextViewer usage
    79     /**
    81     virtual void MoveListAreaDownL( TInt aAmount) = 0;
    80      * Returns the height of the whole field container area containing all visible fields
    82     virtual void MoveListAreaUpL(TInt aAmount) = 0;
    81      *
    83 
    82      * @return World height.
       
    83      */
    84     virtual TInt ListHeight() = 0;
    84     virtual TInt ListHeight() = 0;
    85     virtual TBool IsFieldBottomVisible() = 0;
    85     
       
    86     /**
       
    87      * Returns ETrue if focused fields bottom is visible, otherwise EFalse
       
    88      *
       
    89      * @return Boolean ETrue/EFalse
       
    90      */
       
    91     virtual TBool IsFocusedControlsBottomVisible() = 0;
       
    92     
       
    93     /**
       
    94      * Moves fields the amount of pixels given. 
       
    95      *
       
    96      * @param aAmount, amount of the movement in pixels. Positive down, negative up.
       
    97      */
       
    98     virtual void RePositionFields( TInt aAmount ) = 0;
       
    99     
       
   100     /**
       
   101      * Return viewable areas rect, which in other words is
       
   102      * listpanes rect.
       
   103      *
       
   104      * @return TRect, rect of the viewable area.
       
   105      */
       
   106     virtual TRect ViewableAreaRect() = 0;
    86     };
   107     };
    87 
   108 
    88 #endif // MESMRLISTOBSERVER_H
   109 #endif // MESMRLISTOBSERVER_H