Plasma
runnersyntax.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef PLASMA_RUNNERSYNTAX_H
00021 #define PLASMA_RUNNERSYNTAX_H
00022
00023 #include <QtCore/QStringList>
00024
00025 #include <plasma/plasma.h>
00026
00027 namespace Plasma
00028 {
00029
00030 class RunnerSyntaxPrivate;
00040 class PLASMA_EXPORT RunnerSyntax
00041 {
00042 public:
00053 RunnerSyntax(const QString &exampleQuery, const QString &description);
00054
00058 RunnerSyntax(const RunnerSyntax &other);
00059
00060 ~RunnerSyntax();
00061
00065 RunnerSyntax &operator=(const RunnerSyntax &rhs);
00066
00078 void addExampleQuery(const QString &exampleQuery);
00079
00083 QStringList exampleQueries() const;
00084
00090 QStringList exampleQueriesWithTermDescription() const;
00091
00096 void setDescription(const QString &description);
00097
00102 QString description() const;
00103
00111 void setSearchTermDescription(const QString &description);
00112
00116 QString searchTermDescription() const;
00117
00118 private:
00119 RunnerSyntaxPrivate *const d;
00120 };
00121
00122 }
00123
00124 #endif // multiple inclusion guard
00125