// {{{ the iWear header
/**
 * @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 __DAEMON_H
#define __DAEMON_H

#ifndef __DAEMONBASE_H
#include <iwear_uiservices/daemonbase.h>
#endif

#ifndef __APPLICATIONSERVICE_H
#include <iwear_uiservices/applicationservice.h>
#endif

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

namespace iwear{
    namespace uiservices{

class Daemon : public DaemonBase 
{

 public:

    Daemon(ApplicationService* application_service,
	   const string& daemon_name,
	   const string& daemon_description);

    /**
     * The special constructor for dynamically loadable daemons
     * in the iWear Frameowrk
     * This constructor is special since it doesn't take any 
     * parameters. This leads to a two-stage construction of the 
     * daemon in question before it can be used just like the
     * normal/static daemons created with the above standard 
     * constructor.
     * All intialization which is required in the second part of 
     * construction is handled by a dedicated method written below
     */
    Daemon( void );


    /**
     * This function completes the constuction of a dynamic
     * daemon. Basically it copntains outsourced constructor 
     * funcionality
     * @deprecated
     */
/*    virtual void 
    complete_construction(ApplicationService* application_service,
			  const string& daemon_name,
			  const string& daemon_description);
*/

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

protected:

    /**
     * Pointer to the system's application service
     */
    ApplicationService* application_service;    

};

    } // namespace uiservices
} // namespace iwear

#endif // __DAEMON_H


