1 #ifndef STARTUPSETTINGS_H_
2 #define STARTUPSETTINGS_H_
6 //! Domain class. Stores starup settings.
8 * Domain class. Stores starup settings.
15 * Constructor to initiazile StartupSettings instance.
16 * \param aIsPowersavingEnabled Flag which is true is powersaving enabled; otherwise, false.
17 * \param aTurnOnAt Time when the device must be turned on if flag is true.
18 * \param aTurnOffAt Time when the device must be turned off if flag is true.
20 StartupSettings( bool aIsPowersavingEnabled, QTime aTurnOnAt, QTime aTurnOffAt );
22 virtual ~StartupSettings();
24 //! Gets powersaving flag.
26 * Gets powersaving flag.
27 * \return True if power saving option is used, otherwise false.
29 bool isPowersavingEnabled();
30 //! Gets time to turn on device.
32 * Gets time to turn on device.
33 * \return Time to automatically turn on device.
36 //! Gets time to turn off device.
38 * Gets time to turn off device.
39 * \return Time to automatically turn off device.
43 //! Sets powersaving flag.
45 * Sets powersaving flag.
46 * \param aEnabled If true, power saving option is used.
48 void setPowersavingEnabled( bool aEnabled );
49 //! Sets time to turn on device.
51 * Sets time to turn on device.
52 * \param aTurnOn Time to automatically turn on device.
54 void setTurnOnAt( QTime aTurnOn );
55 //! Sets time to turn off device.
57 * Sets time to turn off device.
58 * \param aTurnOff Time to automatically turn off device.
60 void setTurnOffAt( QTime aTurnOff );
64 bool iIsPowersavingEnabled;
70 #endif /*STARTUPSETTINGS_H_*/