1
0
mirror of https://github.com/altlinux/admc.git synced 2025-03-17 18:50:13 +03:00

Add GPLinkManager object to globals

Manager updates with policy root fetching. Manager's update
loads all OU policy links (domain links too).
This commit is contained in:
Semyon Knyazev 2025-01-16 19:53:42 +04:00
parent efe1f7d01d
commit 2ebf0f217e
3 changed files with 8 additions and 0 deletions

View File

@ -30,6 +30,7 @@
#include "status.h"
#include "utils.h"
#include "managers/icon_manager.h"
#include "managers/gplink_manager.h"
#include <QList>
#include <QStandardItem>
@ -40,6 +41,8 @@ PolicyRootImpl::PolicyRootImpl(ConsoleWidget *console_arg)
}
void PolicyRootImpl::fetch(const QModelIndex &index) {
g_gplink_manager->update();
AdInterface ad;
if (ad_failed(ad, console)) {
return;

View File

@ -24,6 +24,7 @@
#include "settings.h"
#include "status.h"
#include "managers/icon_manager.h"
#include "managers/gplink_manager.h"
#include <QLocale>
@ -31,6 +32,7 @@
AdConfig *g_adconfig = new AdConfig();
Status *g_status = new Status();
IconManager *g_icon_manager = new IconManager();
GPLinkManager *g_gplink_manager = new GPLinkManager();
void load_g_adconfig(AdInterface &ad) {
const QLocale locale = settings_get_variant(SETTING_locale).toLocale();

View File

@ -25,12 +25,15 @@ class AdConfig;
class AdInterface;
class Status;
class IconManager;
class GPLinkManager;
extern AdConfig *g_adconfig;
extern Status *g_status;
extern IconManager *g_icon_manager;
extern GPLinkManager *g_gplink_manager;
void load_g_adconfig(AdInterface &ad);
#endif /* GLOBALS_H */