Commit 234084f5 authored by Karel Slaný's avatar Karel Slaný

Replaced class GlobInstcs with a namespace with the same name.

parent a4fda9e2
......@@ -23,42 +23,56 @@
#pragma once
/*
* Forward class declaration.
* These classes must be declared before the following namespace.
*/
class MessageProcessingEmitter;
class WorkerPool;
class Settings;
class RecordsManagementSettings;
class AccountDb;
class MsgDbContainer;
class FileDbContainer;
class ZfoDb;
class RecordsManagementDb;
class AccountsMap;
class ImageProvider;
/*!
* @brief The class holds pointers to all globally accessible structures.
* @brief The namespace holds pointers to all globally accessible structures.
*/
class GlobInstcs {
namespace GlobInstcs {
public:
static
extern
class MessageProcessingEmitter *msgProcEmitterPtr; /*!< Status message emitter. */
static
extern
class WorkerPool *workPoolPtr; /*!< Worker pool. */
static
extern
class Settings *setPtr; /*!< Settings. */
static
extern
class RecordsManagementSettings *recMgmtSetPtr; /*!< Records management settings. */
static
extern
class AccountDb *accountDbPtr; /*!< Account database. */
static
extern
class MsgDbContainer *messageDbsPtr; /*!< Message database container. */
static
extern
class FileDbContainer *fileDbsPtr; /*!< File database container. */
static
extern
class ZfoDb *zfoDbPtr; /*!< ZFO files database. */
static
extern
class RecordsManagementDb *recMgmtDbPtr; /*!< Records management database. */
static
extern
class AccountsMap *acntMapPtr; /*!< Account container. */
static
extern
class ImageProvider *imgProvPtr; /*!< Image provider. */
private:
/*!
* @brief Private constructor.
*/
GlobInstcs(void);
};
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment