OmniEvents
daemon.h
Go to the documentation of this file.
1// Package : omniEvents
2// service.h Created : 2004/07/25
3// Author : Alex Tingle
4//
5// Copyright (C) 2004 Alex Tingle.
6//
7// This file is part of the omniEvents application.
8//
9// omniEvents is free software; you can redistribute it and/or
10// modify it under the terms of the GNU Lesser General Public
11// License as published by the Free Software Foundation; either
12// version 2.1 of the License, or (at your option) any later version.
13//
14// omniEvents is distributed in the hope that it will be useful,
15// but WITHOUT ANY WARRANTY; without even the implied warranty of
16// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17// Lesser General Public License for more details.
18//
19// You should have received a copy of the GNU Lesser General Public
20// License along with this library; if not, write to the Free Software
21// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22//
23
24#ifndef OMNIEVENTS__SERVICE_H
25#define OMNIEVENTS__SERVICE_H
26
27namespace OmniEvents {
28
32class Daemon
33{
35
36public:
37 Daemon(int& argc,char**& argv);
38 virtual ~Daemon();
39
40 void tracefile(const char* val);
41 void pidfile(const char* val);
42 void foreground(bool val);
43
45 void daemonize();
46
48 void runningOk();
49
50}; // class Daemon
51
52} // end namespace OmniEvents
53
54#endif // OMNIEVENTS__DAEMON_H
55
Interface class that contains various methods for running omniEvents as a background task.
Definition daemon.h:33
void pidfile(const char *val)
Set _pidfile.
Daemon()
No implementation.
void foreground(bool val)
Set _foreground.
void runningOk()
Called to signal that all startup operations have completed OK.
void tracefile(const char *val)
Set _tracefile.
void daemonize()
Redirects output streams to tracefile.