File indexing completed on 2024-04-14 15:37:36
0001 /* 0002 * SPDX-FileCopyrightText: 2014 Daniel Vratil <dvratil@redhat.com> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.1-or-later 0005 * 0006 */ 0007 0008 #ifndef CONFIGOPERATIONPRIVATE_H 0009 #define CONFIGOPERATIONPRIVATE_H 0010 0011 #include <QObject> 0012 0013 #include "abstractbackend.h" 0014 #include "backendinterface.h" 0015 #include "configoperation.h" 0016 0017 namespace KScreen 0018 { 0019 class ConfigOperationPrivate : public QObject 0020 { 0021 Q_OBJECT 0022 0023 public: 0024 explicit ConfigOperationPrivate(ConfigOperation *qq); 0025 ~ConfigOperationPrivate() override; 0026 0027 // For out-of-process 0028 void requestBackend(); 0029 virtual void backendReady(org::kde::kscreen::Backend *backend); 0030 0031 // For in-process 0032 KScreen::AbstractBackend *loadBackend(); 0033 0034 public Q_SLOTS: 0035 void doEmitResult(); 0036 0037 private: 0038 QString error; 0039 bool isExec; 0040 0041 protected: 0042 ConfigOperation *const q_ptr; 0043 Q_DECLARE_PUBLIC(ConfigOperation) 0044 }; 0045 0046 } 0047 #endif