KInit
Go to the documentation of this file.
20 #define QT_NO_CAST_FROM_ASCII
37 : m_phase(-1), m_phasedone(false)
40 KGlobal::dirs()->addResourceType(
"xdgconf-autostart", NULL,
"autostart/");
41 KGlobal::dirs()->addResourceType(
"autostart",
"xdgconf-autostart",
"/");
42 KGlobal::dirs()->addResourceType(
"autostart", 0,
"share/autostart");
47 qDeleteAll(*m_startList);
69 int i = path.lastIndexOf(QLatin1Char(
'/'));
72 i = path.lastIndexOf(QLatin1Char(
'.'));
81 const QStringList files = KGlobal::dirs()->findAllResources(
"autostart",
82 QString::fromLatin1(
"*.desktop"),
85 for(QStringList::ConstIterator it = files.begin();
93 AutoStartItem *item =
new AutoStartItem;
100 m_startList->append(item);
107 if (m_startList->isEmpty())
110 while(!m_started.isEmpty())
114 QString lastItem = m_started[0];
115 QMutableListIterator<AutoStartItem *> it(*m_startList);
118 AutoStartItem *item = it.next();
119 if (item->phase == m_phase
120 && item->startAfter == lastItem)
122 m_started.prepend(item->name);
123 QString service = item->service;
129 m_started.removeFirst();
134 QMutableListIterator<AutoStartItem *> it(*m_startList);
138 if (item->phase == m_phase
139 && item->startAfter.isEmpty())
141 m_started.prepend(item->name);
142 QString service = item->service;
154 if (item->phase == m_phase)
156 m_started.prepend(item->name);
157 QString service = item->service;
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Apr 16 2013 21:01:00 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.