File indexing completed on 2025-03-16 04:30:27
0001 /* 0002 SPDX-FileCopyrightText: 2017 Pino Toscano <pino@kde.org> 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 0006 #include "k3bcore.h" 0007 #include "k3bexternalbinmanager.h" 0008 #include "k3bthememanager.h" 0009 0010 namespace K3b { 0011 0012 class Application 0013 { 0014 public: 0015 class Core; 0016 }; 0017 0018 class Application::Core : public K3b::Core 0019 { 0020 public: 0021 Core( QObject* parent ); 0022 0023 ThemeManager* themeManager() const { return m_themeManager; } 0024 0025 static Core* k3bAppCore() { return s_k3bAppCore; } 0026 0027 private: 0028 ThemeManager* m_themeManager; 0029 0030 static Core* s_k3bAppCore; 0031 }; 0032 } 0033 0034 K3b::Application::Core* K3b::Application::Core::s_k3bAppCore = 0; 0035 0036 K3b::Application::Core::Core( QObject* parent ) 0037 : K3b::Core( parent ) 0038 { 0039 s_k3bAppCore = this; 0040 m_themeManager = new ThemeManager( this ); 0041 0042 externalBinManager()->search(); 0043 }