mmsharing/livecommsui/lcui/inc/lcview.h
changeset 25 53c1c4459a94
parent 22 496ad160a278
child 26 5554410e16f5
equal deleted inserted replaced
22:496ad160a278 25:53c1c4459a94
    52 public:
    52 public:
    53     
    53     
    54     void init();
    54     void init();
    55     void activated();
    55     void activated();
    56     void deactivated();
    56     void deactivated();
    57     void showControl();
       
    58     void hideControl();
       
    59     QString currentLayout();
    57     QString currentLayout();
    60     void deActivateFullScreen();
    58     
    61     void activatePortrait();
       
    62     void updateUiElements();
       
    63 
       
    64 public slots:
    59 public slots:
    65 
    60 
    66     void endVideoSession();    
    61     void endVideoSession();    
    67     void disableCamera();
    62     void disableCamera();
    68     void mute();
    63     void mute();
    69     void changeCamera();    
    64     void changeCamera();    
    70     void switchToVoiceCall();    
    65     void switchToVoiceCall();    
    71     void speaker();
    66     void speaker();
    72     void showZoom();
    67     void showZoom();    
    73     void activateFullScreen();
       
    74     void updateVideoRects();
    68     void updateVideoRects();
    75     void swap();
    69     void swap();
    76     void shareImage();
    70     void shareImage();
    77     void updateSwapLayout();
    71     void updateSwapLayout();
    78     void menuAboutToShow();
    72     void menuAboutToShow();    
    79     void menuAboutToHide();
       
    80     void back();
    73     void back();
    81 //temp
    74 //temp
    82     void notSupported();
    75     void notSupported();
    83     void changeOrientation_Temporary();
       
    84 
       
    85 
    76 
    86 private slots:
    77 private slots:
    87 
    78 
    88     void setMuteActionToUnmute();
    79     void setMuteActionToUnmute();
    89     void setMuteActionToMute();
    80     void setMuteActionToMute();
    92     void setSpeakerActionToHandset();
    83     void setSpeakerActionToHandset();
    93     void setSpeakerActionToSpeaker();
    84     void setSpeakerActionToSpeaker();
    94     void setCameraActionToDisable();
    85     void setCameraActionToDisable();
    95     void setCameraActionToEnable();
    86     void setCameraActionToEnable();
    96     void disableControls();
    87     void disableControls();
    97     void enableControls();
    88     void enableControls();    
    98     void landscapeTimerTimeout();
    89     void watchInactivity();
    99 
    90 
   100 protected: // From HbView
    91 protected: // From HbView
   101     
    92     
   102     void gestureEvent(QGestureEvent *event);
    93     void gestureEvent(QGestureEvent *event);
   103  
    94  
   107     virtual void dialpadClosed();
    98     virtual void dialpadClosed();
   108     virtual void dialpadEditorTextChanged();
    99     virtual void dialpadEditorTextChanged();
   109     
   100     
   110 protected:
   101 protected:
   111     void setDialpadPosition();
   102     void setDialpadPosition();
   112     void enableDialpadCallButton( bool enable );
   103     
       
   104 private: // fullscreen
       
   105     void timerEvent( QTimerEvent * event );
       
   106     void toFullScreen( bool fullscreen );
   113     
   107     
   114 private:
   108 private:
   115     void createNotSupportedNote();
   109     void createNotSupportedNote();
   116     void createContextMenu();
   110     void createContextMenu();
   117     bool isLandscapeOrientation();
   111     bool isLandscapeOrientation();
   118     QRectF translateRectForOrientation(const QRectF& origRect);
   112     QRectF translateRectForOrientation(const QRectF& origRect);
   119     QPointF translatePointForOrientation(const QPointF& origPoint);
   113     QPointF translatePointForOrientation(const QPointF& origPoint);
   120     void setVisibility( QGraphicsItem* item, bool visible );
   114     void setVisibility( QGraphicsItem* item, bool visible );    
   121     void resetLandscapeTimer();
       
   122     void addOptionsMenuActions();
   115     void addOptionsMenuActions();
   123     void gestureLongPress( QPointF coords );
   116     void gestureLongPress( QPointF coords );
   124     void gestureShortPress();
   117     void gestureShortPress();
   125 
   118 
   126 private://not owned
   119 private://not owned
   146     LcVideoWidget* mSharedVideoEffectOverlay;
   139     LcVideoWidget* mSharedVideoEffectOverlay;
   147     LcEffectHandler* mEffectHandler;
   140     LcEffectHandler* mEffectHandler;
   148 
   141 
   149 private:
   142 private:
   150 
   143 
   151     HbMenu* mItemContextMenu;
   144     HbMenu* mItemContextMenu;    
   152     QTimer* mLandscapeTimer;
       
   153     bool mIsOptionMenuOpen;
   145     bool mIsOptionMenuOpen;
   154     HbAction* mSoftKeyBackAction;
   146     HbAction* mSoftKeyBackAction;
   155     Dialpad* mDialpad; // Not owned
   147     Dialpad* mDialpad; // Not owned
       
   148     int timerId;
   156 };
   149 };
   157 
   150 
   158 
   151 
   159 #endif // LCVIEW_H
   152 #endif // LCVIEW_H