Plasma
runnersyntax.h
Go to the documentation of this file.
00001 /* 00002 * Copyright 2009 Aaron Seigo <aseigo@kde.org> 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU Library General Public License as 00006 * published by the Free Software Foundation; either version 2, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details 00013 * 00014 * You should have received a copy of the GNU Library General Public 00015 * License along with this program; if not, write to the 00016 * Free Software Foundation, Inc., 00017 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 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 } // namespace Plasma 00123 00124 #endif // multiple inclusion guard 00125
KDE 4.6 API Reference