File indexing completed on 2024-03-24 04:03:37
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 #ifndef LOGIND_INHIBITION_ARGUMENT_H 0008 #define LOGIND_INHIBITION_ARGUMENT_H 0009 0010 #include "solid/power/power.h" 0011 /** 0012 * The single responsibility of this class is to create arguments valid for 0013 * logind Inhibit call. 0014 */ 0015 namespace Solid 0016 { 0017 class LogindInhibitionArgument 0018 { 0019 public: 0020 static QString fromPowerState(Power::InhibitionTypes states); 0021 }; 0022 } 0023 #endif // LOGIND_INHIBITION_ARGUMENT_H