File indexing completed on 2024-05-12 04:01:53

0001 /*
0002     SPDX-FileCopyrightText: 2014 Alejandro Fiestas Olivares <afiestas@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #include "dummyrequeststatejob.h"
0008 
0009 #include <Solid/RequestStateJob>
0010 
0011 using namespace Solid;
0012 
0013 void DummyRequestStateJob::doStart()
0014 {
0015     if (state == Power::Shutdown) {
0016         setError(RequestStateJob::Unsupported);
0017         setErrorText(QLatin1String("State Brightness is unsupported"));
0018     }
0019     emitResult();
0020 }
0021 
0022 #include "moc_dummyrequeststatejob.cpp"