DataEngine::isEmpty() for shawn
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=738136
This commit is contained in:
parent
3af857e265
commit
bf7580d942
@ -425,6 +425,11 @@ bool DataEngine::isValid() const
|
|||||||
return d->valid;
|
return d->valid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool DataEngine::isEmpty() const
|
||||||
|
{
|
||||||
|
return d->sources.count() > 0;
|
||||||
|
}
|
||||||
|
|
||||||
void DataEngine::setValid(bool valid)
|
void DataEngine::setValid(bool valid)
|
||||||
{
|
{
|
||||||
d->valid = valid;
|
d->valid = valid;
|
||||||
|
@ -181,6 +181,12 @@ class PLASMA_EXPORT DataEngine : public QObject
|
|||||||
**/
|
**/
|
||||||
bool isValid() const;
|
bool isValid() const;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns true if the data engine is empty, which is to say that it has no
|
||||||
|
* data sources currently.
|
||||||
|
*/
|
||||||
|
bool isEmpty() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the icon for this data engine
|
* Sets the icon for this data engine
|
||||||
**/
|
**/
|
||||||
|
Loading…
Reference in New Issue
Block a user