API review: clearSyntaxes gone; setSyntaxes in; small apidox fix
svn path=/trunk/KDE/kdelibs/; revision=944548
This commit is contained in:
parent
0bfbed06ae
commit
b2bb1b569c
@ -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
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user