kwin Library API Documentation

plugins.cpp

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 You can Freely distribute this program under the GNU General Public
00009 License. See the file "COPYING" for the exact licensing terms.
00010 ******************************************************************/
00011 
00012 #include "plugins.h"
00013 
00014 #include <kglobal.h>
00015 #include <klocale.h>
00016 #include <stdlib.h>
00017 #include <qpixmap.h>
00018 
00019 namespace KWinInternal
00020 {
00021 
00022 PluginMgr::PluginMgr()
00023     : KDecorationPlugins( KGlobal::config())
00024     {
00025     defaultPlugin = (QPixmap::defaultDepth() > 8) ?
00026             "kwin3_plastik" : "kwin3_quartz";
00027     loadPlugin( "" ); // load the plugin specified in cfg file
00028     }
00029 
00030 void PluginMgr::error( const QString &error_msg )
00031     {
00032     qWarning( "%s", (i18n("KWin: ") + error_msg +
00033                     i18n("\nKWin will now exit...")).local8Bit().data() );
00034     exit(1);
00035     }
00036 
00037 bool PluginMgr::provides( Requirement )
00038     {
00039     return false;
00040     }
00041 
00042 } // namespace
KDE Logo
This file is part of the documentation for kwin Library Version 3.4.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jun 14 01:19:58 2006 by doxygen 1.4.0 written by Dimitri van Heesch, © 1997-2003