mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-22 10:31:45 +03:00
5709d8ddef
library: platform. also removed test.cpp.
30 lines
711 B
C++
30 lines
711 B
C++
#ifndef CUNIXPLATFORM_H
|
|
#define CUNIXPLATFORM_H
|
|
|
|
#include "IPlatform.h"
|
|
|
|
class CUnixPlatform : public IPlatform {
|
|
public:
|
|
CUnixPlatform();
|
|
virtual ~CUnixPlatform();
|
|
|
|
// IPlatform overrides
|
|
virtual bool installDaemon(/* FIXME */);
|
|
virtual bool uninstallDaemon(/* FIXME */);
|
|
virtual bool daemonize(const char* name);
|
|
virtual const char* getBasename(const char* pathname) const;
|
|
virtual CString getUserDirectory() const;
|
|
virtual CString getSystemDirectory() const;
|
|
virtual CString addPathComponent(
|
|
const CString& prefix,
|
|
const CString& suffix) const;
|
|
|
|
protected:
|
|
virtual void setDaemonLogger(const char* name);
|
|
|
|
private:
|
|
static void deamonLogger(int, const char*);
|
|
};
|
|
|
|
#endif
|