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