dataengine api review: ref() & deref() & isUsed() -> private
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800316
This commit is contained in:
parent
8c99adfc51
commit
0f876831b1
40
dataengine.h
40
dataengine.h
@ -54,6 +54,8 @@ class Package;
|
||||
class PLASMA_EXPORT DataEngine : public QObject
|
||||
{
|
||||
friend class DataEngineScript;
|
||||
friend class DataEngineManager;
|
||||
friend class NullEngine;
|
||||
Q_OBJECT
|
||||
Q_PROPERTY( QStringList sources READ sources )
|
||||
Q_PROPERTY( bool valid READ isValid )
|
||||
@ -183,25 +185,6 @@ class PLASMA_EXPORT DataEngine : public QObject
|
||||
**/
|
||||
Q_INVOKABLE DataEngine::Data query(const QString& source) const;
|
||||
|
||||
/**
|
||||
* Reference counting method. Calling this method increases the count
|
||||
* by one.
|
||||
**/
|
||||
void ref();
|
||||
|
||||
/**
|
||||
* Reference counting method. Calling this method decreases the count
|
||||
* by one.
|
||||
**/
|
||||
void deref();
|
||||
|
||||
/**
|
||||
* Reference counting method. Used to determine if this DataEngine is
|
||||
* used.
|
||||
* @return true if the reference count is non-zero
|
||||
**/
|
||||
bool isUsed() const;
|
||||
|
||||
/**
|
||||
* Returns true if this engine is valid, otherwise returns false
|
||||
**/
|
||||
@ -419,6 +402,25 @@ class PLASMA_EXPORT DataEngine : public QObject
|
||||
void internalUpdateSource(DataContainer* source);
|
||||
|
||||
private:
|
||||
/**
|
||||
* Reference counting method. Calling this method increases the count
|
||||
* by one.
|
||||
**/
|
||||
void ref();
|
||||
|
||||
/**
|
||||
* Reference counting method. Calling this method decreases the count
|
||||
* by one.
|
||||
**/
|
||||
void deref();
|
||||
|
||||
/**
|
||||
* Reference counting method. Used to determine if this DataEngine is
|
||||
* used.
|
||||
* @return true if the reference count is non-zero
|
||||
**/
|
||||
bool isUsed() const;
|
||||
|
||||
class Private;
|
||||
Private* const d;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user