2000-03-25 01:23:02 +03:00
|
|
|
/*****************************************************************
|
|
|
|
kwin - the KDE window manager
|
2000-09-25 19:30:51 +04:00
|
|
|
|
2000-03-25 01:23:02 +03:00
|
|
|
Copyright (C) 1999, 2000 Daniel M. Duley <mosfet@kde.org>
|
|
|
|
******************************************************************/
|
1999-12-24 04:36:47 +03:00
|
|
|
#ifndef __PLUGINS_H
|
|
|
|
#define __PLUGINS_H
|
|
|
|
|
|
|
|
#include <qpopupmenu.h>
|
|
|
|
#include <qstringlist.h>
|
|
|
|
|
2001-02-20 04:20:38 +03:00
|
|
|
class QFileInfo;
|
2002-02-24 13:41:20 +03:00
|
|
|
class KLibrary;
|
2001-02-20 04:20:38 +03:00
|
|
|
|
|
|
|
namespace KWinInternal {
|
1999-12-24 04:36:47 +03:00
|
|
|
|
|
|
|
class Client;
|
|
|
|
class Workspace;
|
|
|
|
|
|
|
|
class PluginMgr : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
PluginMgr();
|
|
|
|
~PluginMgr();
|
2000-09-25 19:30:51 +04:00
|
|
|
Client *allocateClient(Workspace *ws, WId w, bool tool);
|
2002-03-01 04:34:54 +03:00
|
|
|
bool loadPlugin(QString name);
|
2000-09-11 09:30:24 +04:00
|
|
|
QString currentPlugin() { return pluginStr; }
|
2001-02-16 02:19:07 +03:00
|
|
|
public slots:
|
2001-06-07 15:35:06 +04:00
|
|
|
void updatePlugin();
|
1999-12-24 04:36:47 +03:00
|
|
|
signals:
|
|
|
|
void resetAllClients();
|
|
|
|
protected:
|
2001-06-07 15:35:06 +04:00
|
|
|
void shutdownKWin(const QString& error_msg);
|
2000-09-25 19:30:51 +04:00
|
|
|
Client* (*alloc_ptr)(Workspace *ws, WId w, int tool);
|
2002-02-24 13:41:20 +03:00
|
|
|
KLibrary *library;
|
2000-09-11 09:30:24 +04:00
|
|
|
QString pluginStr;
|
1999-12-24 04:36:47 +03:00
|
|
|
};
|
|
|
|
|
2001-02-20 04:20:38 +03:00
|
|
|
};
|
1999-12-24 04:36:47 +03:00
|
|
|
|
|
|
|
#endif
|