1/*
2 This file is part of the KDE libraries
3 Copyright (c) 2001 Waldo Bastian <bastian@kde.org>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License version 2 as published by the Free Software Foundation.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
18*/
19
20#ifndef _AUTOSTART_H_
21#define _AUTOSTART_H_
22
23#include <QtCore/QStringList>
24
25class AutoStartItem;
26typedef QList<AutoStartItem *> AutoStartList;
27
28class AutoStart
29{
30public:
31 AutoStart();
32 ~AutoStart();
33
34 void loadAutoStartList();
35 QString startService();
36 void setPhase(int phase);
37 void setPhaseDone();
38 int phase() const { return m_phase; }
39 bool phaseDone() const { return m_phasedone; }
40
41private:
42 AutoStartList *m_startList;
43 QStringList m_started;
44 int m_phase;
45 bool m_phasedone;
46};
47
48#endif
49