global.h 2.29 KB
Newer Older
Karel Slaný's avatar
Karel Slaný committed
1
/*
2
 * Copyright (C) 2014-2019 CZ.NIC
Karel Slaný's avatar
Karel Slaný committed
3 4 5 6 7 8 9 10
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Karel Slaný's avatar
Karel Slaný committed
12 13 14
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
15
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
Karel Slaný's avatar
Karel Slaný committed
16 17 18 19 20 21 22 23 24 25
 *
 * In addition, as a special exception, the copyright holders give
 * permission to link the code of portions of this program with the
 * OpenSSL library under certain conditions as described in each
 * individual source file, and distribute linked combinations including
 * the two.
 */

#pragma once

26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
/*
 * 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;

46 47
class ICloudHelper;

Karel Slaný's avatar
Karel Slaný committed
48
/*!
49
 * @brief The namespace holds pointers to all globally accessible structures.
Karel Slaný's avatar
Karel Slaný committed
50
 */
51
namespace GlobInstcs {
Karel Slaný's avatar
Karel Slaný committed
52

53
	extern
Karel Slaný's avatar
Karel Slaný committed
54
	class MessageProcessingEmitter *msgProcEmitterPtr; /*!< Status message emitter. */
55
	extern
Karel Slaný's avatar
Karel Slaný committed
56 57
	class WorkerPool *workPoolPtr; /*!< Worker pool. */

58
	extern
Karel Slaný's avatar
Karel Slaný committed
59
	class Settings *setPtr; /*!< Settings. */
60
	extern
61
	class RecordsManagementSettings *recMgmtSetPtr; /*!< Records management settings. */
Karel Slaný's avatar
Karel Slaný committed
62

63
	extern
64
	class AccountDb *accountDbPtr; /*!< Account database. */
65
	extern
66
	class MsgDbContainer *messageDbsPtr; /*!< Message database container. */
67
	extern
68
	class FileDbContainer *fileDbsPtr; /*!< File database container. */
69
	extern
70
	class ZfoDb *zfoDbPtr; /*!< ZFO files database. */
71
	extern
72 73
	class RecordsManagementDb *recMgmtDbPtr; /*!< Records management database. */

74
	extern
75 76
	class AccountsMap *acntMapPtr; /*!< Account container. */

77
	extern
78 79
	class ImageProvider *imgProvPtr; /*!< Image provider. */

80 81
	extern
	class ICloudHelper *iCloudHelperPtr; /*!< iCloud helper. */
82
}