Warning, file /libraries/snorenotify/src/plugins/backends/growl/growlsettings.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 SnoreNotify is a Notification Framework based on Qt 0003 Copyright (C) 2015 Hannah von Reth <vonreth@kde.org> 0004 0005 SnoreNotify is free software: you can redistribute it and/or modify 0006 it under the terms of the GNU Lesser General Public License as published by 0007 the Free Software Foundation, either version 3 of the License, or 0008 (at your option) any later version. 0009 0010 SnoreNotify 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 0013 GNU Lesser General Public License for more details. 0014 0015 You should have received a copy of the GNU Lesser General Public License 0016 along with SnoreNotify. If not, see <http://www.gnu.org/licenses/>. 0017 */ 0018 #include "growlsettings.h" 0019 #include "growlconstants.h" 0020 0021 #include <QLineEdit> 0022 0023 GrowlSettings::GrowlSettings(Snore::SnorePlugin *plugin, QWidget *parent): 0024 PluginSettingsWidget(plugin, parent), 0025 m_host(new QLineEdit), 0026 m_password(new QLineEdit) 0027 { 0028 m_password->setEchoMode(QLineEdit::Password); 0029 addRow(tr("Host:"), m_host); 0030 addRow(tr("Password:"), m_password); 0031 } 0032 0033 GrowlSettings::~GrowlSettings() 0034 { 0035 0036 } 0037 0038 void GrowlSettings::load() 0039 { 0040 m_host->setText(settingsValue(GrowlConstants::Host).toString()); 0041 m_password->setText(settingsValue(GrowlConstants::Password).toString()); 0042 } 0043 0044 void GrowlSettings::save() 0045 { 0046 setSettingsValue(GrowlConstants::Host, m_host->text()); 0047 setSettingsValue(GrowlConstants::Password, m_password->text()); 0048 } 0049