• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDECore

kautostart.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002     Copyright (C) 2006 Aaron Seigo <aseigo@kde.org>
00003 
00004     This library is free software; you can redistribute it and/or
00005     modify it under the terms of the GNU Library General Public
00006     License as published by the Free Software Foundation; either
00007     version 2 of the License, or (at your option) any later version.
00008 
00009     This library is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012     Library General Public License for more details.
00013 
00014     You should have received a copy of the GNU Library General Public License
00015     along with this library; see the file COPYING.LIB.  If not, write to
00016     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017     Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef KDELIBS_KAUTOSTART_H
00021 #define KDELIBS_KAUTOSTART_H
00022 
00023 #include <kdecore_export.h>
00024 
00025 #include <QtCore/QObject>
00026 
00027 class QStringList;
00028 
00049 class KDECORE_EXPORT KAutostart : public QObject
00050 {
00051     Q_OBJECT
00052 
00053     public:
00072         explicit KAutostart(const QString& entryName = QString(),
00073                             QObject* parent = 0);
00074         ~KAutostart();
00075 
00080         enum Condition
00081         {
00082             NoConditions = 0,
00086             CheckCommand = 1
00087         };
00088         Q_DECLARE_FLAGS(Conditions, Condition)
00089 
00090         
00093         enum StartPhase
00094         {
00098             BaseDesktop = 0,
00105             DesktopServices = 1,
00111             Applications = 2
00112         };
00113 
00120         void setAutostarts(bool autostart);
00121 
00130         bool autostarts(const QString& environment = QString(),
00131                         Conditions check = NoConditions) const;
00132 
00137         QString command() const;
00142         void setCommand(const QString& command);
00143 
00148         QString visibleName() const;
00153         void setVisibleName(const QString& entryName);
00154 
00161         static bool isServiceRegistered(const QString& entryName);
00162 
00169         QString commandToCheck() const;
00175         void setCommandToCheck(const QString& exec);
00176 
00185         StartPhase startPhase() const;
00194         void setStartPhase(StartPhase phase);
00195 
00207         QStringList allowedEnvironments() const;
00212         void setAllowedEnvironments(const QStringList& environments);
00218         void addToAllowedEnvironments(const QString& environment);
00224         void removeFromAllowedEnvironments(const QString& environment);
00225 
00235         QStringList excludedEnvironments() const;
00240         void setExcludedEnvironments(const QStringList& environments);
00246         void addToExcludedEnvironments(const QString& environment);
00252         void removeFromExcludedEnvironments(const QString& environment);
00253 
00254     private:
00255         class Private;
00256         Private* const d;
00257 };
00258 
00259 Q_DECLARE_OPERATORS_FOR_FLAGS(KAutostart::Conditions)
00260 #endif

KDECore

Skip menu "KDECore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal