File indexing completed on 2024-04-28 16:55:44
0001 /* 0002 * SPDX-FileCopyrightText: 2016 Red Hat Inc 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 * 0006 * SPDX-FileCopyrightText: 2016 Jan Grulich <jgrulich@redhat.com> 0007 */ 0008 0009 #include "desktopportal.h" 0010 #include "desktopportal_debug.h" 0011 0012 #include "dynamiclauncher.h" 0013 #include "globalshortcuts.h" 0014 0015 DesktopPortal::DesktopPortal(QObject *parent) 0016 : QObject(parent) 0017 , m_access(new AccessPortal(this)) 0018 , m_account(new AccountPortal(this)) 0019 , m_appChooser(new AppChooserPortal(this)) 0020 , m_email(new EmailPortal(this)) 0021 , m_fileChooser(new FileChooserPortal(this)) 0022 , m_inhibit(new InhibitPortal(this)) 0023 , m_notification(new NotificationPortal(this)) 0024 , m_print(new PrintPortal(this)) 0025 , m_settings(new SettingsPortal(this)) 0026 , m_dynamicLauncher(new DynamicLauncherPortal(this)) 0027 { 0028 const QByteArray xdgCurrentDesktop = qgetenv("XDG_CURRENT_DESKTOP"); 0029 if (xdgCurrentDesktop.compare("KDE", Qt::CaseInsensitive) == 0) { 0030 new GlobalShortcutsPortal(this); 0031 0032 m_background = new BackgroundPortal(this, this); 0033 m_screenCast = new ScreenCastPortal(this); 0034 m_remoteDesktop = new RemoteDesktopPortal(this); 0035 m_screenshot = new ScreenshotPortal(this); 0036 WaylandIntegration::init(); 0037 } 0038 } 0039 0040 DesktopPortal::~DesktopPortal() 0041 { 0042 }