diff options
Diffstat (limited to 'plugins/Listener/catchcopy-v0002/catchcopy-api-0002/ExtraSocketCatchcopy.h')
-rw-r--r-- | plugins/Listener/catchcopy-v0002/catchcopy-api-0002/ExtraSocketCatchcopy.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/plugins/Listener/catchcopy-v0002/catchcopy-api-0002/ExtraSocketCatchcopy.h b/plugins/Listener/catchcopy-v0002/catchcopy-api-0002/ExtraSocketCatchcopy.h new file mode 100644 index 0000000..fb4201c --- /dev/null +++ b/plugins/Listener/catchcopy-v0002/catchcopy-api-0002/ExtraSocketCatchcopy.h @@ -0,0 +1,31 @@ +/** \file ExtraSocketCatchcopy.h +\brief Define the socket of catchcopy +\author alpha_one_x86 +\licence GPL3, see the file COPYING */ + +#ifndef EXTRASOCKETCATCHCOPY_H +#define EXTRASOCKETCATCHCOPY_H + +#include <string> +#include <QString> + +#ifdef Q_OS_UNIX + #include <unistd.h> + #include <sys/types.h> +#else + #ifndef NOMINMAX + #define NOMINMAX + #endif + #include <windows.h> +#endif + +/// \brief to have extra socket function +class ExtraSocketCatchcopy +{ +public: + /// \brief to get the socket path + static const std::string pathSocket(); + static char * toHex(const char *str); +}; + +#endif // EXTRASOCKETCATCHCOPY_H |