KWin
plugins.cpp
Go to the documentation of this file.00001 /******************************************************************** 00002 KWin - the KDE window manager 00003 This file is part of the KDE project. 00004 00005 Copyright (C) 1999, 2000 Daniel M. Duley <mosfet@kde.org> 00006 Copyright (C) 2003 Lubos Lunak <l.lunak@kde.org> 00007 00008 This program is free software; you can redistribute it and/or modify 00009 it under the terms of the GNU General Public License as published by 00010 the Free Software Foundation; either version 2 of the License, or 00011 (at your option) any later version. 00012 00013 This program is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 GNU General Public License for more details. 00017 00018 You should have received a copy of the GNU General Public License 00019 along with this program. If not, see <http://www.gnu.org/licenses/>. 00020 *********************************************************************/ 00021 00022 #include "plugins.h" 00023 00024 #include <kglobal.h> 00025 #include <klocale.h> 00026 #include <stdlib.h> 00027 #include <QPixmap> 00028 00029 namespace KWin 00030 { 00031 00032 PluginMgr::PluginMgr() 00033 : KDecorationPlugins( KGlobal::config()) 00034 { 00035 defaultPlugin = (QPixmap::defaultDepth() > 8) ? 00036 "kwin3_ozone" : "kwin3_plastik"; 00037 loadPlugin( "" ); // load the plugin specified in cfg file 00038 } 00039 00040 void PluginMgr::error( const QString &error_msg ) 00041 { 00042 qWarning( "%s", (i18n("KWin: ") + error_msg + 00043 i18n("\nKWin will now exit...")).toLocal8Bit().data() ); 00044 exit(1); 00045 } 00046 00047 bool PluginMgr::provides( Requirement ) 00048 { 00049 return false; 00050 } 00051 00052 } // namespace