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:
parent
efe1f7d01d
commit
2ebf0f217e
@ -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;
|
||||
|
@ -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();
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user