/**
 * @file
 * $Id$
 * $Revision$
 * $Author$
 * $Date$
 *
 * This file is part of The iWear Framework.
 * In particular this file is part of the Framework Core Library
 *
 * The iWear Framework is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by the
 * Free Software Foundation as in version 2 of the License.

 * 
 * The iWear Framework is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * The iWear Framework; if not, write to the Free Software Foundation, Inc., 59
 * Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

#ifndef __BATTERYDAEMON_H
#define __BATTERYDAEMON_H

#ifndef __DAEMON_H
#include <iwear_uiservices/daemon.h>
#endif

using namespace std;
using namespace iwear;
using namespace iwear::output;


namespace iwear{
    namespace uiservices{

// Forward declarations
class ApplicationService;


class BatteryDaemon : public Daemon
{

public:

    /**
     * Constructor for test daemon
     * @param application_service pointer to the application service
     */
    BatteryDaemon(ApplicationService* application_service, const std::string& dn = "battery",
	     const std::string& dd = "Display current ACPI Battery status");

    /**
     * A special constructor which is required to load the test
     * application as a plugin (Development version)
     */
    BatteryDaemon( void ) : Daemon() { 
	// Nothing yet to do! 
    }

    /**
     * The destructor
     */
    virtual ~BatteryDaemon(void);

    /**
     * This method is called when the daemon thread is started
     */
    virtual void Run(void);

protected:

    virtual void set_default_configuration(void);

    virtual void Init_Daemon( void );

    virtual void Final_Daemon( void );

};

    } // namespace uiservices
} // namespace iwear

#endif // __BATTERYDAEMON_H

