Warning, file /office/calligra/libs/main/KoFindOption.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* This file is part of the KDE project 0002 * 0003 * Copyright (c) 2010 Arjen Hiemstra <ahiemstra@heimr.nl> 0004 * 0005 * This library is free software; you can redistribute it and/or 0006 * modify it under the terms of the GNU Library General Public 0007 * License as published by the Free Software Foundation; either 0008 * version 2 of the License, or (at your option) any later version. 0009 * 0010 * This library is distributed in the hope that it will be useful, 0011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0013 * Library General Public License for more details. 0014 * 0015 * You should have received a copy of the GNU Library General Public License 0016 * along with this library; see the file COPYING.LIB. If not, write to 0017 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0018 * Boston, MA 02110-1301, USA. 0019 */ 0020 0021 #include "KoFindOption.h" 0022 0023 class Q_DECL_HIDDEN KoFindOption::Private 0024 { 0025 public: 0026 Private() { } 0027 ~Private() { } 0028 0029 QString name; 0030 QString title; 0031 QString description; 0032 QVariant value; 0033 }; 0034 0035 KoFindOption::KoFindOption(const QString &name, QObject *parent) 0036 : QObject(parent), d(new Private) 0037 { 0038 d->name = name; 0039 } 0040 0041 KoFindOption::~KoFindOption() 0042 { 0043 delete d; 0044 } 0045 0046 QString KoFindOption::name() const 0047 { 0048 return d->name; 0049 } 0050 0051 QString KoFindOption::title() const 0052 { 0053 return d->title; 0054 } 0055 0056 QString KoFindOption::description() const 0057 { 0058 return d->description; 0059 } 0060 0061 QVariant KoFindOption::value() const 0062 { 0063 return d->value; 0064 } 0065 0066 void KoFindOption::setTitle(const QString &newTitle) 0067 { 0068 d->title = newTitle; 0069 } 0070 0071 void KoFindOption::setDescription(const QString &newDescription) 0072 { 0073 d->description = newDescription; 0074 } 0075 0076 void KoFindOption::setValue(const QVariant &newValue) 0077 { 0078 d->value = newValue; 0079 }