screensaver/screensavermodel/src/screensaver.cpp
changeset 69 87476091b3f5
parent 62 341166945d65
child 86 e4f038c420f7
equal deleted inserted replaced
67:474929a40a0f 69:87476091b3f5
   106     after a state change.
   106     after a state change.
   107     \param widget The graphics widget container holding the current visualization.
   107     \param widget The graphics widget container holding the current visualization.
   108  */
   108  */
   109 
   109 
   110 /*!
   110 /*!
       
   111     \fn void Screensaver::unlockRequested()
       
   112 
       
   113     This signal is emitted if screensaver wants the device to be unlocked.
       
   114  */
       
   115 
       
   116 /*!
       
   117     \fn void Screensaver::screenPowerModeRequested(ScreenPowerMode mode)
       
   118 
       
   119     This signal is emitted when screensaver wants to switch the power
       
   120     mode of the screen, or update the visible area in power save mode.
       
   121  */
       
   122 
       
   123 /*!
   111     Returns the state that the Screensaver is currently in.
   124     Returns the state that the Screensaver is currently in.
   112     \return The current state.
   125     \return The current state.
   113  */
   126  */
   114 ScreensaverState Screensaver::currentState()
   127 ScreensaverState Screensaver::currentState()
   115 {
   128 {
   116     return m_d->currentState();
   129     return m_d->currentState();
   117 }
   130 }
       
   131 
       
   132 /*!
       
   133     \fn virtual void getActiveScreenRows(int *firstActiveRow, int *lastActiveRow) = 0
       
   134 
       
   135     Inherited screensavers must implement this function to return the rows where 
       
   136     the screensaver wants to draw graphics. This is called when screen is set to the
       
   137     power save mode. The values returned do not matter in case the screensaver doesn't
       
   138     ask for power save mode.
       
   139     Note that the returned rows should reflect the rows in the natural orientation
       
   140     of the screen device. That is, if default orientation of the screen is portrait,
       
   141     then the return value in landscape mode must reflect the columns between which
       
   142     the graphics are drawn.
       
   143  */
       
   144 
       
   145 /*!
       
   146     \fn virtual void updateLayout() = 0
       
   147 
       
   148     Inherited screensavers must implement this function to reload the screen layout
       
   149     for the current screen orientation.
       
   150  */
   118 
   151 
   119 /*!
   152 /*!
   120     Initializes the Screensaver
   153     Initializes the Screensaver
   121  */
   154  */
   122 void Screensaver::initialize()
   155 void Screensaver::initialize()