queued/sources/queued/QueuedConfig.h.in
2017-09-13 02:02:51 +03:00

121 lines
3.0 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 GPLv3
* @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
*/
const char DBUS_SERVICE[] = DBUS_SERVICE_NAME;
/**
* @brief DBus object path for applicaiton
*/
const char DBUS_APPLICATION_PATH[] = "/application";
/**
* @brief DBus object path for library
*/
const char DBUS_OBJECT_PATH[] = "/queued";
/**
* @brief DBus properties path for properties library
*/
const char DBUS_PROPERTY_PATH[] = "/property";
/**
* @brief DBus properties path for reports library
*/
const char DBUS_REPORTS_PATH[] = "/report";
// path configuration
// common paths
/**
* @brief installation directory for executables
*/
const char BIN_INSTALL_DIR[] = "@BIN_INSTALL_DIR@";
/**
* @brief installation directory for data
*/
const char DATA_INSTALL_DIR[] = "@DATA_INSTALL_DIR@";
/**
* @brief installation directory for headers
*/
const char INCLUDE_INSTALL_DIR[] = "@INCLUDE_INSTALL_DIR@";
/**
* @brief installation directory for libraries
*/
const char LIB_INSTALL_DIR[] = "@LIB_INSTALL_DIR@";
/**
* @brief the same as CMAKE_INSTALL_PREFIX
*/
const char ROOT_INSTALL_DIR[] = "@CMAKE_INSTALL_PREFIX@";
// application specific
/**
* @brief path to queued home directory
*/
const char HOME_PATH[] = "queued";
/**
* @brief path to plugins inside @ref HOME_PATH
*/
const char PLUGIN_PATH[] = "plugins";
// internal configuration
/**
* @brief version of internal storage
*/
const int DATABASE_VERSION = 1;
/**
* @brief header name for token
*/
const char WEBAPI_TOKEN_HEADER[] = "x-queued-token";
/**
* @brief supported web server API versions
*/
const int WEBAPI_VERSIONS[] = {1};
// plugin interfaces
/**
* @brief plugin interface name
* @remark required by Qt macro
*/
#define PLUGIN_INTERFACE_NAME \
"queued.plugin/@PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@"
/**
* @brief plugin interface name
*/
const char PLUGIN_INTERFACE[] = PLUGIN_INTERFACE_NAME;
}
#endif /* QUEUEDCONFIG_H */