queued/sources/queued/QueuedConfig.h.in
Evgeniy Alekseev 881abd4c51 some improvements
* add plugin tree
* add emailnotify plugin template
2017-11-17 00:28:15 +03:00

127 lines
3.2 KiB
C

/*
* Copyright (c) 2017 Queued team
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
*
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*/
/**
* @file QueuedConfig.h
* Source code of queued library
* @author Queued team
* @copyright MIT
* @bug https://github.com/arcan1s/queued/issues
*/
#ifndef QUEUEDCONFIG_H
#define QUEUEDCONFIG_H
/**
* @addtogroup QueuedConfig
* @brief Queued configuration constants
*/
namespace QueuedConfig
{
// dbus configuration
/**
* @brief DBus service name for library and application
* @remark required by Qt macro
*/
#define DBUS_SERVICE_NAME "org.queued.core"
/**
* @brief DBus service name for library and application
*/
static const char DBUS_SERVICE[] = DBUS_SERVICE_NAME;
/**
* @brief DBus object path for application
*/
static const char DBUS_APPLICATION_PATH[] = "/application";
/**
* @brief DBus object path for library
*/
static const char DBUS_OBJECT_PATH[] = "/queued";
/**
* @brief DBus properties path for properties library
*/
static const char DBUS_PROPERTY_PATH[] = "/property";
/**
* @brief DBus properties path for reports library
*/
static const char DBUS_REPORTS_PATH[] = "/report";
// path configuration
// common paths
/**
* @brief installation directory for executables
*/
static const char BIN_INSTALL_DIR[] = "@BIN_INSTALL_DIR@";
/**
* @brief installation directory for data
*/
static const char DATA_INSTALL_DIR[] = "@DATA_INSTALL_DIR@";
/**
* @brief installation directory for headers
*/
static const char INCLUDE_INSTALL_DIR[] = "@INCLUDE_INSTALL_DIR@";
/**
* @brief installation directory for libraries
*/
static const char LIB_INSTALL_DIR[] = "@LIB_INSTALL_DIR@";
/**
* @brief the same as CMAKE_INSTALL_PREFIX
*/
static const char ROOT_INSTALL_DIR[] = "@CMAKE_INSTALL_PREFIX@";
// application specific
/**
* @brief path to queued home directory
*/
static const char HOME_PATH[] = "queued";
/**
* @brief path to plugins inside @ref HOME_PATH
*/
static const char PLUGIN_PATH[] = "plugins";
// internal configuration
/**
* @brief version of internal storage
*/
static const int DATABASE_VERSION = 1;
/**
* @brief header name for token
*/
static const char WEBAPI_TOKEN_HEADER[] = "x-queued-token";
/**
* @brief supported web server API versions
*/
static const int WEBAPI_VERSIONS[] = {1};
// cgroups configuration
/**
* @brief path to root directory of cgroups
*/
static const char CG_FS_PATH[] = "/sys/fs/cgroup";
// plugin interfaces
/**
* @brief plugin interface name
* @remark required by Qt macro
*/
#define PLUGIN_INTERFACE_NAME \
"org.queued.plugin/@PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@"
/**
* @brief plugin interface name
*/
static const char PLUGIN_INTERFACE[] = PLUGIN_INTERFACE_NAME;
}
#endif /* QUEUEDCONFIG_H */