You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
750 B
46 lines
750 B
/* |
|
SPDX-FileCopyrightText: 2001 Waldo Bastian <bastian@kde.org> |
|
|
|
SPDX-License-Identifier: LGPL-2.0-only |
|
*/ |
|
|
|
#pragma once |
|
|
|
#include <QStringList> |
|
#include <QVector> |
|
|
|
class AutoStartItem |
|
{ |
|
public: |
|
QString name; |
|
QString service; |
|
QString startAfter; |
|
int phase; |
|
}; |
|
|
|
class AutoStart |
|
{ |
|
public: |
|
AutoStart(); |
|
~AutoStart(); |
|
|
|
QString startService(); |
|
void setPhase(int phase); |
|
void setPhaseDone(); |
|
int phase() const |
|
{ |
|
return m_phase; |
|
} |
|
bool phaseDone() const |
|
{ |
|
return m_phasedone; |
|
} |
|
QVector<AutoStartItem> startList() const; |
|
|
|
private: |
|
void loadAutoStartList(); |
|
QVector<AutoStartItem> m_startList; |
|
QStringList m_started; |
|
int m_phase; |
|
bool m_phasedone; |
|
};
|
|
|