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
***************************************************************************/
29
#include <QPushButton>
30
#include <QTreeWidget>
32
#include "ui_autostartconfig.h"
33
#include "autostartitem.h"
35
class Autostart: public KCModule
40
Autostart( QWidget* parent, const QVariantList& );
42
enum COL_TYPE { COL_NAME = 0, COL_COMMAND=1, COL_STATUS=2,COL_RUN=3 };
47
QStringList listPathName() const { return m_pathName;}
50
void slotChangeStartup( int index );
53
void addItem(DesktopStartItem *item, const QString& name, const QString& run, const QString& command, bool disable );
54
void addItem(ScriptStartItem *item, const QString& name, const QString& command, ScriptStartItem::ENV type );
57
void slotAddProgram();
60
void slotEditCMD(QTreeWidgetItem*);
61
bool slotEditCMD(const KFileItem&);
63
void slotSelectionChanged();
64
void slotItemClicked( QTreeWidgetItem *, int);
68
QTreeWidgetItem *m_programItem, *m_scriptItem;
70
QStringList m_pathName;
72
Ui_AutostartConfig *widget;