mmsharing/livecommsui/lcuiengine/inc/lcuiengine_p.h
changeset 34 01f0bb65bcf1
parent 29 36d7ded3ca23
child 39 4bcc59142325
equal deleted inserted replaced
29:36d7ded3ca23 34:01f0bb65bcf1
    23 
    23 
    24 //SYSTEM
    24 //SYSTEM
    25 #include <QObject>
    25 #include <QObject>
    26 #include <QString>
    26 #include <QString>
    27 #include <QTime>
    27 #include <QTime>
       
    28 #include <XQSettingsKey>
       
    29 #include <XQSettingsManager>
       
    30 #include <QVariant>
    28 #include <lcuiengine.h>
    31 #include <lcuiengine.h>
    29 #include <lcengine.h>
    32 #include <lcengine.h>
       
    33 
    30 
    34 
    31 class MLcSession;
    35 class MLcSession;
    32 class MLcAudioControl;
    36 class MLcAudioControl;
    33 class MLcZoomControl;
    37 class MLcZoomControl;
    34 class HbDialog;
    38 class HbDialog;
   107 private slots:
   111 private slots:
   108     
   112     
   109     void startReceiving();
   113     void startReceiving();
   110     void stopForcefully();
   114     void stopForcefully();
   111     void handleEngineForegroundStatus();
   115     void handleEngineForegroundStatus();
       
   116     void volumeLevelChanged(const XQSettingsKey& aKey, const QVariant& aValue);
   112     
   117     
   113 private: // From MLcSessionObserver
   118 private: // From MLcSessionObserver
   114     
   119     
   115     void StateChanged( MLcSession& aSession );
   120     void StateChanged( MLcSession& aSession );
   116     void StateChanged( MLcVideoPlayer& aPlayer );
   121     void StateChanged( MLcVideoPlayer& aPlayer );
   149     bool featureSupported( CLcEngine::TLcFeature feature );
   154     bool featureSupported( CLcEngine::TLcFeature feature );
   150     void startSessionDurationTimer();
   155     void startSessionDurationTimer();
   151     void stopSessionDurationTimer();
   156     void stopSessionDurationTimer();
   152     void fillRemoteInfo(bool informChanges);
   157     void fillRemoteInfo(bool informChanges);
   153     void startStopGuardTimer();
   158     void startStopGuardTimer();
   154     bool isAllowedToShareVideo();
   159     void showSendVideoQueryWhenNecessary();
   155     int vtVideoSendingSetting();
   160 
       
   161     void subscribeVolumeEvents();
       
   162     void unSubscribeVolumeEvents();
       
   163     void doUpdate( MLcVideoPlayer& aPlayer );
       
   164     void doUpdate( MLcSession& aSession );
   156     
   165     
   157 private: // New functions wrapping the leaving functions in LC plug-in API
   166 private: // New functions wrapping the leaving functions in LC plug-in API
   158     
   167     
   159     int establishSession();
   168     int establishSession();
   160     int terminateSession();
   169     int terminateSession();
   191     HbView* mCurrentView; // Not owned
   200     HbView* mCurrentView; // Not owned
   192     TRect mLocalRect;
   201     TRect mLocalRect;
   193     TRect mRemoteRect;
   202     TRect mRemoteRect;
   194     LcActivityManager* mActivityManager;
   203     LcActivityManager* mActivityManager;
   195     
   204     
   196 private: // Constants
   205     XQSettingsManager* mSettingsMgr;
   197     
   206     XQSettingsKey* mEarVolumeKey; 
   198     static const int VTSETTING_ALWAYS_ASK_FIRST = 0;
   207     XQSettingsKey* mLoudSpeakerKey; 
   199     static const int VTSETTING_DO_NOT_SHOW = 1;
       
   200     static const int VTSETTING_SHOW_AUTOMATICALLY = 2;
       
   201     
   208     
   202 friend class LcUiEngine;    
   209 friend class LcUiEngine;    
   203 };
   210 };
   204 
   211 
   205 #endif // LCUIENGINEPRIVATE_H
   212 #endif // LCUIENGINEPRIVATE_H