[4.0] Add an environment variable to set the default indicator visible mode
[platform/core/uifw/dali-adaptor.git] / adaptors / base / environment-options.h
index 6dffb2c..42022fd 100644 (file)
@@ -2,7 +2,7 @@
 #define __DALI_INTERNAL_ADAPTOR_ENVIRONMENT_OPTIONS_H__
 
 /*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -21,6 +21,9 @@
 // EXTERNAL INCLUDES
 #include <dali/integration-api/debug.h>
 
+// INTERNAL INCLUDES
+#include <base/threading-mode.h>
+
 namespace Dali
 {
 namespace Internal
@@ -79,6 +82,11 @@ public:
   unsigned int GetUpdateStatusLoggingFrequency() const;
 
   /**
+   * @return object profiler status interval ( 0 == off )
+   */
+  unsigned int GetObjectProfilerInterval() const;
+
+  /**
    * @return performance statistics log level ( 0 == off )
    */
   unsigned int GetPerformanceStatsLoggingOptions() const;
@@ -119,6 +127,13 @@ public:
   int GetPanGestureMinimumPredictionAmount() const;
 
   /**
+   * @brief Gets the prediction amount to adjust when the pan velocity is changed.
+   *
+   * If the pan velocity is accelerating, the prediction amount will be increased
+   * by the specified amount until it reaches the upper bound. If the pan velocity
+   * is decelerating, the prediction amount will be decreased by the specified
+   * amount until it reaches the lower bound.
+   *
    * @return pan-gesture prediction amount adjustment
    */
   int GetPanGesturePredictionAmountAdjustment() const;
@@ -154,108 +169,54 @@ public:
   unsigned int GetWindowHeight() const;
 
   /**
-   * @brief Sets the mode used to predict pan gesture movement
-   *
-   * @param[in] mode The prediction mode to use
-   */
-  void SetPanGesturePredictionMode( unsigned int mode );
-
-  /**
-   * @brief Sets the prediction amount of the pan gesture
-   *
-   * @param[in] amount The prediction amount in milliseconds
-   */
-  void SetPanGesturePredictionAmount( unsigned int amount );
-
-  /**
-   * @brief Sets the upper bound of the prediction amount for clamping
-   *
-   * @param[in] amount The prediction amount in milliseconds
-   */
-  void SetPanGestureMaximumPredictionAmount( unsigned int amount );
-
-  /**
-   * @brief Sets the lower bound of the prediction amount for clamping
-   *
-   * @param[in] amount The prediction amount in milliseconds
-   */
-  void SetPanGestureMinimumPredictionAmount( unsigned int amount );
-
-  /**
-   * @brief Sets the prediction amount to adjust when the pan velocity is changed.
-   * If the pan velocity is accelerating, the prediction amount will be increased
-   * by the specified amount until it reaches the upper bound. If the pan velocity
-   * is decelerating, the prediction amount will be decreased by the specified
-   * amount until it reaches the lower bound.
-   *
-   * @param[in] amount The prediction amount in milliseconds
-   */
-  void SetPanGesturePredictionAmountAdjustment( unsigned int amount );
-
-  /**
-   * @brief Called to set how pan gestures smooth input
-   *
-   * @param[in] mode The smoothing mode to use
-   */
-  void SetPanGestureSmoothingMode( unsigned int mode );
-
-  /**
-   * @brief Sets the mode used to smooth pan gesture movement properties calculated on the Update thread
-   *
-   * @param[in] amount The smoothing amount [0.0f,1.0f] - 0.0f would be no smoothing, 1.0f maximum smoothing
+   * @brief Get the graphics status time
    */
-  void SetPanGestureSmoothingAmount( float amount );
+  int GetGlesCallTime() const;
 
   /**
-   * @brief Sets the minimum distance required before a pan starts
-   *
-   * @param[in] distance The minimum distance before a pan starts
+   * @brief Get whether or not to accumulate gles call statistics
    */
-  void SetMinimumPanDistance( int distance );
+  bool GetGlesCallAccumulate() const;
 
   /**
-   * @brief Sets the minimum number of events required before a pan starts
-   *
-   * @param[in] events The minimum events before a pan starts
+   * @return true if performance server is required
    */
-  void SetMinimumPanEvents( int events );
+  bool PerformanceServerRequired() const;
 
   /**
-   * @brief Sets how often the gles call logging occurs
-   *
-   * @param[in] time the number of seconds between logging output
+   * @return Gets the window name.
    */
-  void SetGlesCallTime( int time );
+  const std::string& GetWindowName() const;
 
   /**
-   * @brief Get the graphics status time
+   * @return Gets the window class.
    */
-  int GetGlesCallTime() const;
+  const std::string& GetWindowClassName() const;
 
   /**
-   * @brief Sets the width of the window
+   * @return The thread mode that DALi should use.
    */
-  void SetWindowWidth( int width );
+  ThreadingMode::Type GetThreadingMode() const;
 
   /**
-   * @brief Sets the width of the window
+   * @return The render refresh rate.
    */
-  void SetWindowHeight( int height );
+  unsigned int GetRenderRefreshRate() const;
 
   /**
-   * @return true if performance server is required
+   * @return The number of samples required in multisample buffers
    */
-  bool PerformanceServerRequired() const;
+  unsigned int GetMultiSamplingLevel() const;
 
   /**
-   * @brief Sets the window name.
+   * @return The maximum texture size
    */
-  void SetWindowName( const char * name );
+  unsigned int GetMaxTextureSize() const;
 
   /**
-   * @return Gets the window name. NULL if not set
+   * @return The maximum texture size
    */
-  const std::string& GetWindowName() const;
+  int GetIndicatorVisibleMode() const;
 
 private: // Internal
 
@@ -268,9 +229,11 @@ private: // Internal
 private: // Data
 
   std::string mWindowName;                        ///< name of the window
+  std::string mWindowClassName;                   ///< name of the class the window belongs to
   unsigned int mNetworkControl;                   ///< whether network control is enabled
   unsigned int mFpsFrequency;                     ///< how often fps is logged out in seconds
   unsigned int mUpdateStatusFrequency;            ///< how often update status is logged out in frames
+  unsigned int mObjectProfilerInterval;           ///< how often object counts are logged out in seconds
   unsigned int mPerformanceStatsLevel;            ///< performance statistics logging bitmask
   unsigned int mPerformanceStatsFrequency;        ///< performance statistics logging frequency (seconds)
   unsigned int mPerformanceTimeStampOutput;       ///< performance time stamp output ( bitmask)
@@ -287,6 +250,12 @@ private: // Data
   int mGlesCallTime;                              ///< time in seconds between status updates
   unsigned int mWindowWidth;                      ///< width of the window
   unsigned int mWindowHeight;                     ///< height of the window
+  ThreadingMode::Type mThreadingMode;             ///< threading mode
+  unsigned int mRenderRefreshRate;                ///< render refresh rate
+  bool mGlesCallAccumulate;                       ///< Whether or not to accumulate gles call statistics
+  unsigned int mMultiSamplingLevel;               ///< The number of samples required in multisample buffers
+  unsigned int mMaxTextureSize;                   ///< The maximum texture size that GL can handle
+  int mIndicatorVisibleMode;                      ///< Indicator visible mode
 
   Dali::Integration::Log::LogFunction mLogFunction;