API review: clearSyntaxes gone; setSyntaxes in; small apidox fix

svn path=/trunk/KDE/kdelibs/; revision=944548
This commit is contained in:
Aaron J. Seigo 2009-03-25 17:41:15 +00:00
parent 0bfbed06ae
commit b2bb1b569c
2 changed files with 8 additions and 5 deletions

View File

@ -139,9 +139,9 @@ void AbstractRunner::addSyntax(const RunnerSyntax &syntax)
d->syntaxes.append(syntax);
}
void AbstractRunner::clearSyntaxes()
void AbstractRunner::setSyntaxes(QList<RunnerSyntax> &syntaxes)
{
d->syntaxes.clear();
d->syntaxes = syntaxes;
}
QList<RunnerSyntax> AbstractRunner::syntaxes() const

View File

@ -357,16 +357,19 @@ class PLASMA_EXPORT AbstractRunner : public QObject
* display to the user what this runner can understand and how it can be
* used.
*
* @arg syntax the syntax to register
* @param syntax the syntax to register
* @since 4.3
*/
void addSyntax(const RunnerSyntax &syntax);
/**
* Clears all registered syntaxes.
* Sets the list of syntaxes; passing in an empty list effectively clears
* the syntaxes.
*
* @param the syntaxes to register for this runner
* @since 4.3
*/
void clearSyntaxes();
void setSyntaxes(QList<RunnerSyntax> &syns);
protected Q_SLOTS:
void init();