1 /***************************************************************************
2 * Copyright (C) 2006-2007 by Stephen Leaf *
4 * Copyright (C) 2008 by Montel Laurent <montel@kde.org> *
6 * This program is free software; you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation; either version 2 of the License, or *
9 * (at your option) any later version. *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program; if not, write to the *
18 * Free Software Foundation, Inc., *
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA *
20 ***************************************************************************/
31 #include <QPushButton>
32 #include <QTreeWidget>
34 #include "ui_autostartconfig.h"
35 #include "autostartitem.h"
37 class Autostart
: public KCModule
42 Autostart( QWidget
* parent
, const QVariantList
& );
44 enum COL_TYPE
{ COL_NAME
= 0, COL_COMMAND
=1, COL_STATUS
=2,COL_RUN
=3 };
49 QStringList
listPathName() const { return m_pathName
;}
52 void slotChangeStartup( int index
);
55 void addItem(DesktopStartItem
*item
, const QString
& name
, const QString
& run
, const QString
& command
, bool disable
);
56 void addItem(ScriptStartItem
*item
, const QString
& name
, const QString
& command
, ScriptStartItem::ENV type
);
59 void slotAddProgram();
62 void slotEditCMD(QTreeWidgetItem
*);
63 bool slotEditCMD(const KFileItem
&);
65 void slotSelectionChanged();
66 void slotItemClicked( QTreeWidgetItem
*, int);
70 QTreeWidgetItem
*m_programItem
, *m_scriptItem
;
72 QStringList m_pathName
;
74 Ui_AutostartConfig
*widget
;