2002-06-04 16:26:23 +04:00
|
|
|
#ifndef CUNIXPLATFORM_H
|
|
|
|
#define CUNIXPLATFORM_H
|
|
|
|
|
|
|
|
#include "IPlatform.h"
|
|
|
|
|
2002-07-29 21:03:55 +04:00
|
|
|
//! Unix platform dependent functions
|
2002-06-04 16:26:23 +04:00
|
|
|
class CUnixPlatform : public IPlatform {
|
|
|
|
public:
|
|
|
|
CUnixPlatform();
|
|
|
|
virtual ~CUnixPlatform();
|
|
|
|
|
|
|
|
// IPlatform overrides
|
2002-06-09 01:48:00 +04:00
|
|
|
virtual bool installDaemon(const char* name,
|
2002-06-11 02:06:45 +04:00
|
|
|
const char* description,
|
|
|
|
const char* pathname,
|
|
|
|
const char* commandLine);
|
2002-06-14 22:08:20 +04:00
|
|
|
virtual EResult uninstallDaemon(const char* name);
|
2002-06-09 01:48:00 +04:00
|
|
|
virtual int daemonize(const char* name, DaemonFunc);
|
2002-06-14 22:08:20 +04:00
|
|
|
virtual void installDaemonLogger(const char* name);
|
2002-06-04 16:26:23 +04:00
|
|
|
virtual const char* getBasename(const char* pathname) const;
|
|
|
|
virtual CString getUserDirectory() const;
|
|
|
|
virtual CString getSystemDirectory() const;
|
|
|
|
virtual CString addPathComponent(
|
2002-06-11 02:06:45 +04:00
|
|
|
const CString& prefix,
|
|
|
|
const CString& suffix) const;
|
2002-06-04 16:26:23 +04:00
|
|
|
|
|
|
|
private:
|
2002-06-09 01:48:00 +04:00
|
|
|
static bool deamonLogger(int, const char*);
|
2002-06-04 16:26:23 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|