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

libkworkspace

kworkspace.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002     Copyright (C) 1997 Matthias Kalle Dalheimer (kalle@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 KWORKSPACE_H
00021 #define KWORKSPACE_H
00022 
00023 #include <kdemacros.h>
00024 
00025 namespace KWorkSpace
00026 {
00027  
00031   enum ShutdownConfirm {
00035     ShutdownConfirmDefault = -1,
00039     ShutdownConfirmNo = 0,
00043     ShutdownConfirmYes = 1
00044   };
00045 
00049   enum ShutdownType {
00053     ShutdownTypeDefault = -1,
00057     ShutdownTypeNone = 0,
00061     ShutdownTypeReboot = 1,
00065     ShutdownTypeHalt = 2,
00069     // KDE5: kill this
00070     ShutdownTypeLogout = 3
00071   };
00072 
00076   // KDE5: this seems fairly useless
00077   enum ShutdownMode {
00081     ShutdownModeDefault = -1,
00086     ShutdownModeSchedule = 0,
00090     ShutdownModeTryNow = 1,
00094     ShutdownModeForceNow = 2,
00098     ShutdownModeInteractive = 3
00099   };
00100 
00116   KDE_EXPORT bool requestShutDown( ShutdownConfirm confirm = ShutdownConfirmDefault,
00117                                    ShutdownType    sdtype  = ShutdownTypeDefault,
00118                                    ShutdownMode    sdmode  = ShutdownModeDefault );
00119 
00131   KDE_EXPORT bool canShutDown( ShutdownConfirm confirm = ShutdownConfirmDefault,
00132                                ShutdownType    sdtype  = ShutdownTypeDefault,
00133                                ShutdownMode    sdmode  = ShutdownModeDefault );
00134 
00148    KDE_EXPORT void propagateSessionManager();
00149 
00150 }
00151 
00152 #endif

libkworkspace

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

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •     Animators
  •     Applets
  •     Engines
  • Solid Modules
  • System Settings
  •   SystemSettingsView
Generated for API Reference by doxygen 1.5.9-20090814
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