GadgetStatus.h

00001 /**
00002  * @class   wosh::gui::GadgetStatus
00003  * @brief   
00004  *
00005  *
00006  ****************************************************************************
00007  * @version $Id: GadgetStatus.h 3775 2011-01-01 16:38:17Z alex $
00008  * @author  Alessandro Polo
00009  ****************************************************************************/
00010 /* Copyright (c) 2007-2011, WOSH - Wide Open Smart Home 
00011  * by Alessandro Polo - OpenSmartHome.com
00012  * All rights reserved.
00013  *
00014  * Redistribution and use in source and binary forms, with or without
00015  * modification, are permitted provided that the following conditions are met:
00016  *     * Redistributions of source code must retain the above copyright
00017  *       notice, this list of conditions and the following disclaimer.
00018  *     * Redistributions in binary form must reproduce the above copyright
00019  *       notice, this list of conditions and the following disclaimer in the
00020  *       documentation and/or other materials provided with the distribution.
00021  *     * Neither the name of the OpenSmartHome.com WOSH nor the
00022  *       names of its contributors may be used to endorse or promote products
00023  *       derived from this software without specific prior written permission.
00024  *
00025  * THIS SOFTWARE IS PROVIDED BY Alessandro Polo ''AS IS'' AND ANY
00026  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00027  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00028  * DISCLAIMED. IN NO EVENT SHALL Alessandro Polo BE LIABLE FOR ANY
00029  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
00030  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
00031  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
00032  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00033  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00034  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00035  ****************************************************************************/
00036 
00037 #ifndef __WOSH_Gui_GadgetStatus_H__
00038  #define __WOSH_Gui_GadgetStatus_H__
00039 
00040  #include <framework/gui/kiosk/KioskGadget.h>
00041 
00042 
00043 using namespace wosh;
00044 namespace Ui {
00045  class GadgetStatus;
00046 };
00047 namespace wosh {
00048  namespace gui {
00049 
00050 class GadgetStatus : public KioskGadgetGeneric  {
00051 
00052     Q_OBJECT
00053 
00054     public:
00055         /**
00056          * @brief  Empty constructor.
00057          */
00058         GadgetStatus();
00059         /**
00060          * @brief  Empty destructor.
00061          */
00062         virtual ~GadgetStatus();
00063 
00064 
00065     public:
00066         virtual bool isStatic() const               { return true; }
00067 
00068     public slots:
00069         virtual void refreshAll();
00070 
00071     public:
00072         void busMessage( const Message& message, const Bus* source );
00073 
00074     protected slots:
00075 
00076         void btnSheetDebug_clicked();
00077 
00078 
00079     private:
00080         Ui::GadgetStatus *m_ui;
00081 
00082 
00083 }; // class def
00084 
00085   }; // namespace gui
00086 }; // namespace wosh
00087 
00088 #endif //__WOSH_Gui_GadgetStatus_H__
00089 

Generated on Tue Feb 8 2011 09:32:54 for WOSH system 0.8.888 [wolf] by Alessandro Polo, using DoxyGen 1.7.2 hosted by WOSH Framework