added the conf file changes
[qtmeetings] / src / UserInterface / Components / TimeDisplayWidget.h
1 #ifndef TIMEDISPLAYWIDGET_H_\r
2 #define TIMEDISPLAYWIDGET_H_\r
3 \r
4 #include "ObservedWidget.h"\r
5 #include <QWidget>\r
6 #include <QColor>\r
7 #include <QTime>\r
8 \r
9 //! Abstact. UserInterface class. Displays time.\r
10 /*!\r
11  * Abstact. UserInterface class. Offers  basic functionality to display time. Inherited by\r
12  * DigitalTimeDisplayWidget.\r
13  */\r
14 class TimeDisplayWidget : public ObservedWidget\r
15 {\r
16         Q_OBJECT\r
17 \r
18 public:\r
19         //! Constructor.\r
20         /*!\r
21          * Basic constructor of TimeDisplayWidget.\r
22          * \param aNow Current time\r
23          * \param aParent Parent widget\r
24          */\r
25         TimeDisplayWidget( QTime aNow, QWidget *aParent = 0 );\r
26         //! Destructor\r
27         virtual ~TimeDisplayWidget();\r
28 \r
29         //! Returns the current time\r
30         /*!\r
31          * \return Current time stored be the widget\r
32          */\r
33         QTime time();\r
34 \r
35         //! Set background color\r
36         /*!\r
37          * \param aColor Color of widget backgroud\r
38          */\r
39         void setBackgroundColor( QColor aColor );\r
40         //! Set foreground color\r
41         /*!\r
42          * \param aColor Color of widget foregroud (text)\r
43          */\r
44         void setForegroundColor( QColor aColor );\r
45         //! Set frame visibility\r
46         /*!\r
47          * Pure virtual function to set the visibility of the frame\r
48          * \param aVisible True, if frame is drawn, otherwise false.\r
49          */\r
50         virtual void setFrameVisible( bool aVisible ) = 0;\r
51         //! Set size\r
52         /*!\r
53          * Pure virtual function to set the size of widget.\r
54          * \param aWidth\r
55          * \param aHeight\r
56          */\r
57         virtual void setSize( int aWidth, int aHeight ) = 0;\r
58         //! Set Font\r
59         /*!\r
60          * Pure virtual function to set the font.\r
61          * \param aFont\r
62          */\r
63         virtual void setFont( const QFont &aFont ) = 0;\r
64 \r
65 public slots:\r
66         //! Set time.\r
67         /*!\r
68          * Updates the time displayd.\r
69          * \param aNow Current time.\r
70          */\r
71         void setTime( QTime aNow );\r
72 \r
73 protected:\r
74         //! Displays the time.\r
75         /*!\r
76          * Pure virtual function to display time.\r
77          */\r
78         virtual void showTime() = 0;\r
79 \r
80 private:\r
81         //! Stores the time.\r
82         QTime iCurrentTime;\r
83 \r
84 };\r
85 \r
86 #endif /*TIMEDISPLAYWIDGET_H_*/\r