phoneapp/phoneuiview2/inc/phoneuiqtview_p.h
changeset 78 baacf668fe89
equal deleted inserted replaced
76:cfea66083b62 78:baacf668fe89
       
     1 /*!
       
     2 * Copyright (c) 2010 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's Qt view private.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef PHONEUIQTVIEW_P_H
       
    19 #define PHONEUIQTVIEW_P_H
       
    20 
       
    21 #include <QObject>
       
    22 #include <qsysteminfo.h>
       
    23 #include <qmobilityglobal.h>
       
    24 #include <QMap>
       
    25 
       
    26 class BubbleManager;
       
    27 class HbAction;
       
    28 class HbToolBar;
       
    29 class HbVolumeSliderPopup;
       
    30 class Dialpad;
       
    31 class XQKeyCapture;
       
    32 class DialpadKeyHandler;
       
    33 class PhoneUIQtView;
       
    34 class HbMainWindow;
       
    35 class HbIcon;
       
    36 class HbWidget;
       
    37 class HbMenu;
       
    38 
       
    39 QTM_USE_NAMESPACE
       
    40 
       
    41 class PhoneUIQtViewPrivate : public QObject
       
    42 {
       
    43     Q_OBJECT
       
    44 
       
    45 public:
       
    46 
       
    47     /*!
       
    48        Constructor
       
    49     */
       
    50     PhoneUIQtViewPrivate(HbMainWindow &window, PhoneUIQtView &parent);
       
    51     
       
    52     /*!
       
    53        Destructor
       
    54     */
       
    55     virtual ~PhoneUIQtViewPrivate();
       
    56 
       
    57     /*!
       
    58         \fn QString networkName()
       
    59     */
       
    60     QString networkName();
       
    61     
       
    62     /*!
       
    63         \fn void addBubbleCommand()
       
    64     */
       
    65     void addBubbleCommand(int bubbleId, HbAction* action);
       
    66 
       
    67     /*!
       
    68         \fn void clearBubbleCommands ()
       
    69     */
       
    70     void clearBubbleCommands(int bubbleId);
       
    71     
       
    72     /*!
       
    73         \fn void addParticipantListAction ()
       
    74     */
       
    75     void addParticipantListAction(int commandId, const QString &text, const HbIcon &icon);
       
    76 
       
    77     /*!
       
    78         \fn void clearBubbleCommands ()
       
    79     */
       
    80     void clearParticipantListActions();
       
    81 
       
    82     /*!
       
    83         \fn void volumeSliderValue ()
       
    84     */
       
    85     int volumeSliderValue();
       
    86 
       
    87     /*!
       
    88         \fn void setVolumeSliderValue (int value)
       
    89     */
       
    90     void setVolumeSliderValue(
       
    91             int value,
       
    92             int commandId, 
       
    93             int maxVolumeValue, 
       
    94             int minVolumeValue);
       
    95 
       
    96     /*!
       
    97         \fn void setExpandAction ()
       
    98     */
       
    99     void setExpandAction(int bubbleId, int commandId);
       
   100     
       
   101         /*!
       
   102         \fn void removeExpandAction ()
       
   103     */    
       
   104     void removeExpandAction(int bubbleId);
       
   105     
       
   106     /*!
       
   107         \fn void showDialpad()
       
   108     */    
       
   109     void showDialpad();
       
   110     
       
   111     /*!
       
   112         \fn void hideDialpad()
       
   113     */    
       
   114     void hideDialpad();
       
   115     
       
   116     /*!
       
   117         \fn void setBackButtonVisible()
       
   118     */
       
   119     void setBackButtonVisible(bool visible);
       
   120 
       
   121     /*!
       
   122         \fn void captureKey()
       
   123     */
       
   124     void captureKey(Qt::Key key, bool capture);
       
   125     
       
   126     /*
       
   127         \fn void setRestrictedMode()
       
   128      */
       
   129     void setRestrictedMode(bool restrictedMode);
       
   130     
       
   131     /*
       
   132         \fn void replaceActions(HbWidget &widget, 
       
   133             const QList<HbAction *> actions) const;
       
   134      */
       
   135     void replaceActions(HbWidget &widget, 
       
   136             const QList<HbAction *> &actions) const;
       
   137 
       
   138 public slots:
       
   139 
       
   140     /*!
       
   141         \fn void removeVolumeSlider()
       
   142     */
       
   143     void removeVolumeSlider();
       
   144     
       
   145     /*!
       
   146         \fn void volumeSliderChanged(int value)
       
   147     */
       
   148     void volumeSliderChanged(int value);
       
   149 
       
   150     /*!
       
   151         \fn bool eventFilter(QObject *watched, QEvent * event)
       
   152     */
       
   153     bool eventFilter(QObject *watched, QEvent * event);
       
   154         
       
   155     /*!
       
   156         \fn void backButtonClicked(Qt::Orientation orientation)
       
   157     */    
       
   158     void backButtonClicked();
       
   159     
       
   160     /*!
       
   161         \fn void onEditorContentChanged()
       
   162     */
       
   163     void onEditorContentChanged();
       
   164     
       
   165     /*!
       
   166         \fn void dialpadClosed()
       
   167     */
       
   168     void dialpadClosed();
       
   169     
       
   170     /*!
       
   171         \fn void networkNameChanged(
       
   172                 QSystemNetworkInfo::NetworkMode mode, const QString &netName)
       
   173     */
       
   174     void networkNameChanged(
       
   175             QSystemNetworkInfo::NetworkMode mode, const QString &netName);
       
   176     
       
   177     /*!
       
   178         \fn void PhoneUIQtView::actionTriggerred()
       
   179     */
       
   180     void actionTriggerred();
       
   181 
       
   182 
       
   183     /*!
       
   184         \fn void setDialpadPosition(Qt::Orientation orientation)
       
   185         
       
   186         Sets dialpad position.
       
   187     */
       
   188     void setDialpadPosition(Qt::Orientation orientation);
       
   189     
       
   190 
       
   191     
       
   192 public:
       
   193     PhoneUIQtView       &m_parent;
       
   194     HbMainWindow        &m_window;
       
   195     BubbleManager       *m_bubbleManager;
       
   196     QMap<int , QList<HbAction *> > m_bubbleActionMap;
       
   197     HbVolumeSliderPopup *m_volumeSlider;
       
   198     QMap<int , HbAction*> m_expandActionMap;
       
   199     QList<HbAction *>   m_participantListActions;
       
   200     int                 m_volumeCommandId;
       
   201     HbAction            *m_backAction;
       
   202     Dialpad             *m_dialpad;
       
   203     XQKeyCapture        *m_keyCapture;
       
   204     QSystemNetworkInfo  *m_networkInfo;
       
   205     QList<Qt::Key>      m_keyCaptures;
       
   206     DialpadKeyHandler   *m_dialpadKeyHandler;
       
   207     bool                m_restrictedMode;
       
   208     HbMenu              *m_optionsMenu;
       
   209 };
       
   210 
       
   211 #endif // PHONEUIQTVIEW_P_H