phoneapp/phoneuiqtviewadapter/tsrc/ut_phoneindicatorcontroller/phoneuiqtviewif_stub.h
changeset 77 2be0b271d017
child 78 baacf668fe89
equal deleted inserted replaced
72:c76a0b1755b9 77:2be0b271d017
       
     1 /*!
       
     2 * Copyright (c) 2009 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:  Phone UI Qt view's interface.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef PHONEUIQTVIEWIF_STUB_H
       
    19 #define PHONEUIQTVIEWIF_STUB_H
       
    20 
       
    21 
       
    22 #include <phoneuiqtviewif.h>
       
    23 
       
    24 class QKeyEvent;
       
    25 class QString;
       
    26 class HbIcon;
       
    27 class HbAction;
       
    28 class HbMenu;
       
    29 class PhoneAction;
       
    30 class BubbleManagerIF;
       
    31 
       
    32 
       
    33 
       
    34 class PhoneUIQtViewIFStub : public PhoneUIQtViewIF
       
    35 {
       
    36 
       
    37 public:
       
    38     
       
    39     PhoneUIQtViewIFStub(){};
       
    40     
       
    41     virtual ~PhoneUIQtViewIFStub() {};
       
    42         
       
    43     /*!
       
    44         \fn void PhoneUIQtViewIF::bubbleManager ()
       
    45         
       
    46         Returns reference to BubbleManager's interface.
       
    47     */
       
    48     BubbleManagerIF& bubbleManager () {};
       
    49     
       
    50     /*!
       
    51         \fn void PhoneUIQtViewIF::addBubbleCommand ()
       
    52         
       
    53         Adds new command to bubble. Command id will be emitted as
       
    54         a parameter from view's command(int) signal.
       
    55     */
       
    56     void addBubbleCommand ( 
       
    57         int bubbleId,
       
    58         const PhoneAction& action ) {};
       
    59     
       
    60     /*!
       
    61         \fn void PhoneUIQtViewIF::clearBubbleCommands ()
       
    62         
       
    63         Clears commands from bubble.
       
    64     */
       
    65     void clearBubbleCommands (int bubbleId){};
       
    66 
       
    67     /*!
       
    68         \fn void PhoneUIQtView::addParticipantListAction ()
       
    69         
       
    70         Adds new patricipant list command to conference bubble. 
       
    71     */
       
    72     void addParticipantListAction(
       
    73             int commandId,  
       
    74             const QString &text, 
       
    75             const HbIcon &icon) {};
       
    76 
       
    77     /*!
       
    78         \fn void PhoneUIQtView::clearBubbleCommands ()
       
    79         
       
    80         Clears participant list commands from conference bubble.
       
    81     */
       
    82     void clearParticipantListActions() {};
       
    83     
       
    84     /*!
       
    85         \fn void PhoneUIQtViewIF::setToolbarActions()
       
    86         
       
    87         Sets toolbar actions.
       
    88     */
       
    89     void setToolbarActions(const QList<PhoneAction*>& actions) {};    
       
    90     
       
    91     /*!
       
    92         \fn void PhoneUIQtViewIF::hideToolbar ()
       
    93         
       
    94         Hides toolbar.
       
    95     */
       
    96     void hideToolbar () {};
       
    97     
       
    98     /*!
       
    99         \fn void PhoneUIQtViewIF::showToolbar ()
       
   100         
       
   101         Shows toolbar.
       
   102     */
       
   103     void showToolbar (){};
       
   104     
       
   105     /*!
       
   106         \fn int PhoneUIQtViewIF::volumeSliderValue ()
       
   107         
       
   108         Returns HbVolumeSliderPopup's volume value.
       
   109         If this volume slider isn't active -1 is returned.
       
   110     */
       
   111     int volumeSliderValue () {};
       
   112     
       
   113     /*!
       
   114         \fn void PhoneUIQtViewIF::removeVolumeSlider ()
       
   115         
       
   116         Removes HbVolumeSliderPopup.
       
   117     */
       
   118     void removeVolumeSlider () {};
       
   119 
       
   120     /*!
       
   121         \fn void PhoneUIQtViewIF::setVolumeSliderValue (int value)
       
   122         
       
   123         Sets slider value to HbVolumeSliderPopup.
       
   124     */
       
   125     void setVolumeSliderValue (
       
   126             int value, 
       
   127             int commandId, 
       
   128             int maxVolumeValue, 
       
   129             int minVolumeValue){};
       
   130 
       
   131     /*!
       
   132         \fn void PhoneUIQtViewIF::setExpandAction ()
       
   133         
       
   134         Sets expand action.
       
   135     */
       
   136     void setExpandAction(int bubbleId, int commandId) {};
       
   137     
       
   138     /*!
       
   139         \fn void PhoneUIQtViewIF::removeExpandAction ()
       
   140         
       
   141         Removes expand action.
       
   142     */      
       
   143     void removeExpandAction(int bubbleId){};
       
   144 
       
   145     /*!
       
   146         \fn void PhoneUIQtView::showDialpad()
       
   147         
       
   148         Shows dialpad widget.
       
   149     */    
       
   150     void showDialpad() {};
       
   151     
       
   152     /*!
       
   153         \fn void PhoneUIQtView::hideDialpad()
       
   154         
       
   155         Hides dialpad widget.
       
   156     */    
       
   157     void hideDialpad(){};
       
   158     
       
   159     /*!
       
   160         \fn void PhoneUIQtView::isDialpadVisible()
       
   161         
       
   162         Check is dialpad visible.
       
   163     */    
       
   164     bool isDialpadVisible() {};
       
   165 
       
   166     /*!
       
   167         \fn void PhoneUIQtView::dialpadString()
       
   168         
       
   169         Returns content of the dialpad.
       
   170     */  
       
   171     QString dialpadText(){};
       
   172     
       
   173     /*!
       
   174         \fn void PhoneUIQtView::dialpadString()
       
   175         
       
   176         Clears and hides dialpad.
       
   177     */
       
   178     void clearAndHideDialpad() {};
       
   179     
       
   180     /*!
       
   181         \fn void PhoneUIQtView::clearDialpad()
       
   182         
       
   183         Clears text from dialpad.
       
   184     */
       
   185     void clearDialpad(){};
       
   186     
       
   187     /*!
       
   188         \fn void PhoneUIQtView::bringToForeground()
       
   189         
       
   190         Brings to foreground.
       
   191     */
       
   192     void bringToForeground(){}; 
       
   193     
       
   194     /*!
       
   195         \fn void PhoneUIQtViewIF::setToolbarActions()
       
   196         
       
   197        Sets menu actions.
       
   198     */
       
   199     void setMenuActions(const QList<PhoneAction*>& actions) {};
       
   200       
       
   201     /*!
       
   202         \fn void PhoneUIQtView::shutdownPhoneApp()
       
   203         
       
   204         Shutdown phone application.
       
   205     */
       
   206     void shutdownPhoneApp(){};
       
   207     
       
   208     /*
       
   209        \fn void PhoneUIQtView::setBackButtonVisible()
       
   210        
       
   211        Set the Back command visibility in TitleBar
       
   212     */
       
   213     void setBackButtonVisible(bool visible){};
       
   214 	    
       
   215     /*!
       
   216         \fn void PhoneUIQtViewIF::setToolbarActions()
       
   217         
       
   218        Returns HbMenu reference.
       
   219     */
       
   220     HbMenu &menuReference() {};
       
   221     
       
   222     /*!
       
   223         \fn void PhoneUIQtViewIF::captureKey()
       
   224         
       
   225         Captures key.
       
   226     */
       
   227     void captureKey(Qt::Key key, bool capture){};
       
   228     
       
   229     /*
       
   230         \fn void setRestrictedMode()
       
   231         
       
   232         Sets Ui to restricted mode. Decides which keyevent are allowed.
       
   233      */
       
   234     void setRestrictedMode(bool restrictedMode){};
       
   235    
       
   236 };
       
   237 
       
   238 #endif // PHONEUIQTVIEWIF_H