mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
kwin: remove redundant KDecorationProvides class
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
b358e20491
commit
5c94746f4b
2 changed files with 4 additions and 8 deletions
|
@ -247,13 +247,6 @@ public:
|
|||
|
||||
};
|
||||
|
||||
class KDecorationProvides
|
||||
: public KDecorationDefines
|
||||
{
|
||||
public:
|
||||
virtual ~KDecorationProvides() {}
|
||||
};
|
||||
|
||||
/**
|
||||
* This class holds various configuration settings for the decoration.
|
||||
* It is accessible from the decorations either as KDecoration::options()
|
||||
|
|
|
@ -43,11 +43,12 @@ class KDecorationBridge;
|
|||
class KDecorationFactory;
|
||||
|
||||
class KWIN_EXPORT KDecorationPlugins
|
||||
: public KDecorationProvides
|
||||
: public KDecorationDefines
|
||||
{
|
||||
public:
|
||||
explicit KDecorationPlugins(const KSharedConfigPtr &cfg);
|
||||
virtual ~KDecorationPlugins();
|
||||
|
||||
/** Whether the plugin with @p name can be loaded
|
||||
* if @p loadedLib is passed, the library is NOT unloaded and freed
|
||||
* what is now your resposibility (intended for and used by below loadPlugin mainly) */
|
||||
|
@ -59,9 +60,11 @@ public:
|
|||
KDecoration* createDecoration(KDecorationBridge*);
|
||||
QString currentPlugin();
|
||||
bool reset(unsigned long changed); // returns true if decorations need to be recreated
|
||||
|
||||
protected:
|
||||
virtual void error(const QString& error_msg);
|
||||
QString defaultPlugin; // FRAME normalne protected?
|
||||
|
||||
private:
|
||||
KDecorationFactory*(*create_ptr)();
|
||||
QLibrary *library;
|
||||
|
|
Loading…
Add table
Reference in a new issue