kdecoration_plugins_p.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef KDECORATION_PLUGINS_H
00027 #define KDECORATION_PLUGINS_H
00028
00029
00030
00031
00032
00033 #include <qcstring.h>
00034 #include <qstring.h>
00035 #include <qwidget.h>
00036
00037 #include "kdecoration.h"
00038
00039 class KLibrary;
00040 class KConfig;
00041 class KDecoration;
00042 class KDecorationBridge;
00043 class KDecorationFactory;
00044
00045 class KWIN_EXPORT KDecorationPlugins
00046 : public KDecorationProvides
00047 {
00048 public:
00049 KDecorationPlugins( KConfig* cfg );
00050 virtual ~KDecorationPlugins();
00051 bool loadPlugin( QString name );
00052 void destroyPreviousPlugin();
00053 KDecorationFactory* factory();
00054 KDecoration* createDecoration( KDecorationBridge* );
00055 QString currentPlugin() { return pluginStr; }
00056 bool reset( unsigned long changed );
00057 protected:
00058 virtual void error( const QString& error_msg );
00059 QCString defaultPlugin;
00060 private:
00061 KDecorationFactory* (*create_ptr)();
00062 KLibrary *library;
00063 KDecorationFactory* fact;
00064 KLibrary *old_library;
00065 KDecorationFactory* old_fact;
00066 QString pluginStr;
00067 KConfig* config;
00068 };
00069
00070
00071
00072
00073
00074
00075
00076
00077 #endif
This file is part of the documentation for kwin Library Version 3.3.90.