qtmeetings sources to Maemo garage
[qtmeetings] / src / Domain / Configuration / StartupSettings.h
1 #ifndef STARTUPSETTINGS_H_
2 #define STARTUPSETTINGS_H_
3
4 #include <QDateTime>
5
6 //! Domain class. Stores starup settings.
7 /*!
8  * Domain class. Stores starup settings.
9  */
10 class StartupSettings
11 {
12 public:
13         //! Constructor.
14         /*!
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.
19          */
20         StartupSettings( bool aIsPowersavingEnabled, QTime aTurnOnAt, QTime aTurnOffAt );
21         //! Destructor
22         virtual ~StartupSettings();
23
24         //! Gets powersaving flag.
25         /*!
26          * Gets powersaving flag.
27          * \return True if power saving option is used, otherwise false.
28          */
29         bool isPowersavingEnabled();
30         //! Gets time to turn on device.
31         /*!
32          * Gets time to turn on device.
33          * \return Time to automatically turn on device.
34          */
35         QTime turnOnAt();
36         //! Gets time to turn off device.
37         /*!
38          * Gets time to turn off device.
39          * \return Time to automatically turn off device.
40          */
41         QTime turnOffAt();
42
43         //! Sets powersaving flag.
44         /*!
45          * Sets powersaving flag.
46          * \param aEnabled If true, power saving option is used.
47          */
48         void setPowersavingEnabled( bool aEnabled );
49         //! Sets time to turn on device.
50         /*!
51          * Sets time to turn on device.
52          * \param aTurnOn Time to automatically turn on device.
53          */
54         void setTurnOnAt( QTime aTurnOn );
55         //! Sets time to turn off device.
56         /*!
57          * Sets time to turn off device.
58          * \param aTurnOff Time to automatically turn off device.
59          */
60         void setTurnOffAt( QTime aTurnOff );
61
62
63 private:
64         bool iIsPowersavingEnabled;
65         QTime iTurnOnAt;
66         QTime iTurnOffAt;
67
68 };
69
70 #endif /*STARTUPSETTINGS_H_*/