File indexing completed on 2024-05-19 05:39:08
0001 /* 0002 SPDX-FileCopyrightText: 2001 Waldo Bastian <bastian@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-only 0005 */ 0006 0007 #pragma once 0008 0009 #include <QList> 0010 #include <QStringList> 0011 0012 class AutoStartItem 0013 { 0014 public: 0015 QString name; 0016 QString service; 0017 QString startAfter; 0018 int phase; 0019 }; 0020 0021 class AutoStart 0022 { 0023 public: 0024 AutoStart(); 0025 ~AutoStart(); 0026 0027 QString startService(); 0028 void setPhase(int phase); 0029 void setPhaseDone(); 0030 int phase() const 0031 { 0032 return m_phase; 0033 } 0034 bool phaseDone() const 0035 { 0036 return m_phasedone; 0037 } 0038 QList<AutoStartItem> startList() const; 0039 0040 private: 0041 void loadAutoStartList(); 0042 QList<AutoStartItem> m_startList; 0043 QStringList m_started; 0044 int m_phase; 0045 bool m_phasedone; 0046 };