mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 02:42: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.
|
* This class holds various configuration settings for the decoration.
|
||||||
* It is accessible from the decorations either as KDecoration::options()
|
* It is accessible from the decorations either as KDecoration::options()
|
||||||
|
|
|
@ -43,11 +43,12 @@ class KDecorationBridge;
|
||||||
class KDecorationFactory;
|
class KDecorationFactory;
|
||||||
|
|
||||||
class KWIN_EXPORT KDecorationPlugins
|
class KWIN_EXPORT KDecorationPlugins
|
||||||
: public KDecorationProvides
|
: public KDecorationDefines
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit KDecorationPlugins(const KSharedConfigPtr &cfg);
|
explicit KDecorationPlugins(const KSharedConfigPtr &cfg);
|
||||||
virtual ~KDecorationPlugins();
|
virtual ~KDecorationPlugins();
|
||||||
|
|
||||||
/** Whether the plugin with @p name can be loaded
|
/** Whether the plugin with @p name can be loaded
|
||||||
* if @p loadedLib is passed, the library is NOT unloaded and freed
|
* 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) */
|
* what is now your resposibility (intended for and used by below loadPlugin mainly) */
|
||||||
|
@ -59,9 +60,11 @@ public:
|
||||||
KDecoration* createDecoration(KDecorationBridge*);
|
KDecoration* createDecoration(KDecorationBridge*);
|
||||||
QString currentPlugin();
|
QString currentPlugin();
|
||||||
bool reset(unsigned long changed); // returns true if decorations need to be recreated
|
bool reset(unsigned long changed); // returns true if decorations need to be recreated
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void error(const QString& error_msg);
|
virtual void error(const QString& error_msg);
|
||||||
QString defaultPlugin; // FRAME normalne protected?
|
QString defaultPlugin; // FRAME normalne protected?
|
||||||
|
|
||||||
private:
|
private:
|
||||||
KDecorationFactory*(*create_ptr)();
|
KDecorationFactory*(*create_ptr)();
|
||||||
QLibrary *library;
|
QLibrary *library;
|
||||||
|
|
Loading…
Add table
Reference in a new issue