diff --git a/src/configurationDialog.cpp b/src/configurationDialog.cpp index ce449de..badf654 100644 --- a/src/configurationDialog.cpp +++ b/src/configurationDialog.cpp @@ -1,203 +1,203 @@ /*************************************************************************** * KSystemLog, a system log viewer tool * * Copyright (C) 2007 by Nicolas Ternisien * * nicolas.ternisien@gmail.com * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #include "configurationDialog.h" #include #include #include #include #include "generalConfigurationWidget.h" #include "logModeConfigurationWidget.h" #include "mainWindow.h" #include "globals.h" #include "ksystemlogConfig.h" #include "logging.h" #include "defaults.h" class ConfigurationDialogPrivate { public: GeneralConfigurationWidget *generalConfiguration; QList logModeConfigurations; bool changed; }; ConfigurationDialog::ConfigurationDialog(QWidget *parent) : KConfigDialog(parent, i18n("Settings"), KSystemLogConfig::self()) , d(new ConfigurationDialogPrivate()) { d->changed = false; setupGeneralConfiguration(); setupLogModeConfigurations(); } ConfigurationDialog::~ConfigurationDialog() { // All configuration pages are managed by KConfigDialog delete d; } void ConfigurationDialog::setupLogModeConfigurations() { logDebug() << "Setup Log Mode Configurations..."; foreach (LogMode *logMode, Globals::instance().logModes()) { // Some Log mode does not need a configuration widget if (logMode->logModeConfigurationWidget() == nullptr) { continue; } // The configuration widget could be shared between Log Modes if (d->logModeConfigurations.contains(logMode->logModeConfigurationWidget()) == true) { continue; } d->logModeConfigurations.append(logMode->logModeConfigurationWidget()); } foreach (LogModeConfigurationWidget *logModeConfigurationWidget, d->logModeConfigurations) { logDebug() << "Adding " << logModeConfigurationWidget->itemName() << " configuration..."; addPage(logModeConfigurationWidget, logModeConfigurationWidget->itemName(), logModeConfigurationWidget->iconName(), logModeConfigurationWidget->header(), false); connect(logModeConfigurationWidget, &LogModeConfigurationWidget::configurationChanged, this, &ConfigurationDialog::updateConfiguration); } } void ConfigurationDialog::showConfiguration() { logDebug() << "Showing Configuration dialog..."; show(); } void ConfigurationDialog::setupGeneralConfiguration() { d->generalConfiguration = new GeneralConfigurationWidget(); - addPage(d->generalConfiguration, i18n("General"), QStringLiteral("applications-system"), i18n("General"), + addPage(d->generalConfiguration, i18n("General"), QStringLiteral("utilities-log-viewer"), i18n("General"), false); connect(d->generalConfiguration, &GeneralConfigurationWidget::configurationChanged, this, &ConfigurationDialog::updateConfiguration); } void ConfigurationDialog::updateSettings() { logDebug() << "Saving configuration..."; d->changed = false; d->generalConfiguration->saveConfig(); foreach (LogModeConfigurationWidget *logModeConfigurationWidget, d->logModeConfigurations) { logModeConfigurationWidget->saveConfig(); } KSystemLogConfig::self()->save(); emit configurationSaved(); logDebug() << "Configuration saved"; } bool ConfigurationDialog::hasChanged() { logDebug() << "Current change status : " << d->changed; return d->changed; } void ConfigurationDialog::updateConfiguration() { logDebug() << "Updating configuration..."; bool valid = d->generalConfiguration->isValid(); if (valid) { foreach (LogModeConfigurationWidget *logModeConfigurationWidget, d->logModeConfigurations) { if (logModeConfigurationWidget->isValid() == false) { valid = false; break; } } } if (valid == true) { buttonBox()->button(QDialogButtonBox::Ok)->setEnabled(true); updateButtons(); } else { buttonBox()->button(QDialogButtonBox::Ok)->setEnabled(false); buttonBox()->button(QDialogButtonBox::Apply)->setEnabled(false); } } void ConfigurationDialog::updateButtons() { logDebug() << "Updating configuration buttons..."; d->changed = true; } void ConfigurationDialog::updateWidgets() { logDebug() << "Reading configuration..."; d->generalConfiguration->readConfig(); foreach (LogModeConfigurationWidget *logModeConfigurationWidget, d->logModeConfigurations) { logModeConfigurationWidget->readConfig(); } d->changed = false; } void ConfigurationDialog::updateWidgetsDefault() { logDebug() << "Loading default configuration..."; d->generalConfiguration->defaultConfig(); foreach (LogModeConfigurationWidget *logModeConfigurationWidget, d->logModeConfigurations) { logModeConfigurationWidget->defaultConfig(); } d->changed = false; } bool ConfigurationDialog::isDefault() { /** * TODO Set this to true and find a way to retrieve defaults value * of the configuration (see defaultConfig() methods of LogModeConfigurations) */ return true; } diff --git a/src/modes/apache/apacheAccessLogMode.h b/src/modes/apache/apacheAccessLogMode.h index 7120d99..587477e 100644 --- a/src/modes/apache/apacheAccessLogMode.h +++ b/src/modes/apache/apacheAccessLogMode.h @@ -1,59 +1,59 @@ /*************************************************************************** * KSystemLog, a system log viewer tool * * Copyright (C) 2007 by Nicolas Ternisien * * nicolas.ternisien@gmail.com * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #ifndef APACHE_ACCESS_LOG_MODE_H #define APACHE_ACCESS_LOG_MODE_H /** * Apache Access Log Mode Identifier */ #define APACHE_ACCESS_LOG_MODE_ID "apacheAccessLogMode" /** * Apache Access Log Icon */ -#define APACHE_ACCESS_MODE_ICON "network-server" +#define APACHE_ACCESS_MODE_ICON "preferences-system-network-server-web" #include #include "logFile.h" #include "logMode.h" class ApacheConfiguration; class ApacheConfigurationWidget; class ApacheAccessLogMode : public LogMode { Q_OBJECT public: explicit ApacheAccessLogMode(QSharedPointer &apacheConfiguration, ApacheConfigurationWidget *apacheConfigurationWidget); ~ApacheAccessLogMode(); Analyzer *createAnalyzer(const QVariant &options = QVariant()) override; QList createLogFiles() override; }; #endif // _APACHE_ACCESS_LOG_MODE_H diff --git a/src/modes/apache/apacheLogMode.h b/src/modes/apache/apacheLogMode.h index 847511d..476998b 100644 --- a/src/modes/apache/apacheLogMode.h +++ b/src/modes/apache/apacheLogMode.h @@ -1,59 +1,59 @@ /*************************************************************************** * KSystemLog, a system log viewer tool * * Copyright (C) 2007 by Nicolas Ternisien * * nicolas.ternisien@gmail.com * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #ifndef APACHE_LOG_MODE_H #define APACHE_LOG_MODE_H /** * Apache Log Mode Identifier */ #define APACHE_LOG_MODE_ID "apacheLogMode" /** * Apache Log Icon */ -#define APACHE_MODE_ICON "network-server" +#define APACHE_MODE_ICON "preferences-system-network" #include #include "logFile.h" #include "logMode.h" class ApacheConfiguration; class ApacheConfigurationWidget; class ApacheLogMode : public LogMode { Q_OBJECT public: explicit ApacheLogMode(QSharedPointer &apacheConfiguration, ApacheConfigurationWidget *apacheConfigurationWidget); ~ApacheLogMode() override; Analyzer *createAnalyzer(const QVariant &options = QVariant()) override; QList createLogFiles() override; }; #endif // _APACHE_LOG_MODE_H diff --git a/src/modes/authentication/authenticationLogMode.h b/src/modes/authentication/authenticationLogMode.h index 8c92458..c544697 100644 --- a/src/modes/authentication/authenticationLogMode.h +++ b/src/modes/authentication/authenticationLogMode.h @@ -1,55 +1,55 @@ /*************************************************************************** * KSystemLog, a system log viewer tool * * Copyright (C) 2007 by Nicolas Ternisien * * nicolas.ternisien@gmail.com * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #ifndef AUTHENTICATION_LOG_MODE_H #define AUTHENTICATION_LOG_MODE_H /** * Acpid Log Mode Identifier */ #define AUTHENTICATION_LOG_MODE_ID "authenticationLogMode" /** * Authentication Log Icon */ -#define AUTHENTICATION_MODE_ICON "document-encrypt" +#define AUTHENTICATION_MODE_ICON "dialog-password" #include #include "logFile.h" #include "logMode.h" class AuthenticationLogMode : public LogMode { Q_OBJECT public: explicit AuthenticationLogMode(); ~AuthenticationLogMode() override; Analyzer *createAnalyzer(const QVariant &options = QVariant()) override; QList createLogFiles() override; }; #endif // _AUTHENTICATION_LOG_MODE_H diff --git a/src/modes/cron/cronLogMode.h b/src/modes/cron/cronLogMode.h index 40c452c..ac27a61 100644 --- a/src/modes/cron/cronLogMode.h +++ b/src/modes/cron/cronLogMode.h @@ -1,54 +1,54 @@ /*************************************************************************** * KSystemLog, a system log viewer tool * * Copyright (C) 2007 by Nicolas Ternisien * * nicolas.ternisien@gmail.com * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #ifndef CRON_LOG_MODE_H #define CRON_LOG_MODE_H /** * Cron Log Mode Identifier */ #define CRON_LOG_MODE_ID "cronLogMode" /** * Cron Log Icon */ -#define CRON_MODE_ICON "chronometer" +#define CRON_MODE_ICON "preferences-system-time" #include #include "logFile.h" #include "logMode.h" class CronLogMode : public LogMode { Q_OBJECT public: explicit CronLogMode(); ~CronLogMode(); Analyzer *createAnalyzer(const QVariant &options = QVariant()) override; QList createLogFiles() override; }; #endif // _CRON_LOG_MODE_H diff --git a/src/modes/cups/cupsAccessLogMode.h b/src/modes/cups/cupsAccessLogMode.h index 3fe1dce..f017cbe 100644 --- a/src/modes/cups/cupsAccessLogMode.h +++ b/src/modes/cups/cupsAccessLogMode.h @@ -1,59 +1,59 @@ /*************************************************************************** * KSystemLog, a system log viewer tool * * Copyright (C) 2007 by Nicolas Ternisien * * nicolas.ternisien@gmail.com * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #ifndef CUPS_ACCESS_LOG_MODE_H #define CUPS_ACCESS_LOG_MODE_H /** * Cups Access Log Mode Identifier */ #define CUPS_ACCESS_LOG_MODE_ID "cupsAccessLogMode" /** * Cups Access Log Icon */ -#define CUPS_ACCESS_MODE_ICON "printer" +#define CUPS_ACCESS_MODE_ICON "preferences-devices-printer" #include #include "logFile.h" #include "logMode.h" class CupsConfiguration; class CupsConfigurationWidget; class CupsAccessLogMode : public LogMode { Q_OBJECT public: explicit CupsAccessLogMode(QSharedPointer &cupsConfiguration, CupsConfigurationWidget *cupsConfigurationWidget); ~CupsAccessLogMode(); Analyzer *createAnalyzer(const QVariant &options = QVariant()) override; QList createLogFiles() override; }; #endif // _CUPS_ACCESS_LOG_MODE_H diff --git a/src/modes/cups/cupsLogMode.h b/src/modes/cups/cupsLogMode.h index f11a9b6..8223fcb 100644 --- a/src/modes/cups/cupsLogMode.h +++ b/src/modes/cups/cupsLogMode.h @@ -1,59 +1,59 @@ /*************************************************************************** * KSystemLog, a system log viewer tool * * Copyright (C) 2007 by Nicolas Ternisien * * nicolas.ternisien@gmail.com * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #ifndef CUPS_LOG_MODE_H #define CUPS_LOG_MODE_H /** * Cups Log Mode Identifier */ #define CUPS_LOG_MODE_ID "cupsLogMode" /** * Cups Log Icon */ -#define CUPS_MODE_ICON "document-print" +#define CUPS_MODE_ICON "preferences-devices-printer" #include #include "logFile.h" #include "logMode.h" class CupsConfiguration; class CupsConfigurationWidget; class CupsLogMode : public LogMode { Q_OBJECT public: explicit CupsLogMode(QSharedPointer &cupsConfiguration, CupsConfigurationWidget *cupsConfigurationWidget); ~CupsLogMode(); Analyzer *createAnalyzer(const QVariant &options = QVariant()) override; QList createLogFiles() override; }; #endif // _CUPS_LOG_MODE_H diff --git a/src/modes/journald/journaldLogMode.h b/src/modes/journald/journaldLogMode.h index 095ffdd..a1a7611 100644 --- a/src/modes/journald/journaldLogMode.h +++ b/src/modes/journald/journaldLogMode.h @@ -1,67 +1,67 @@ /*************************************************************************** * KSystemLog, a system log viewer tool * * Copyright (C) 2007 by Nicolas Ternisien * * nicolas.ternisien@gmail.com * * Copyright (C) 2015 by Vyacheslav Matyushin * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #ifndef JOURNALD_LOG_MODE_H #define JOURNALD_LOG_MODE_H /** * Journald Log Mode Identifier */ #define JOURNALD_LOG_MODE_ID "journaldLogMode" /** * Journald Log Icon */ -#define JOURNALD_MODE_ICON "computer" +#define JOURNALD_MODE_ICON "preferences-system-startup" #include #include "logFile.h" #include "logMode.h" #include "journaldTypes.h" using namespace JournaldTypes; Q_DECLARE_METATYPE(JournaldAnalyzerOptions) class JournaldLogMode : public LogMode { Q_OBJECT public: explicit JournaldLogMode(); ~JournaldLogMode(); Analyzer *createAnalyzer(const QVariant &analyzerOptions = QVariant()); QList createLogFiles(); void updateJournalFilters(const JournalAddress &address, const JournalFilters &filters); JournalFilters filters(const JournalAddress &address) const; private: QMap m_remoteJournalFilters; }; #endif // _JOURNALD_LOG_MODE_H diff --git a/src/modes/kernel/kernelLogMode.h b/src/modes/kernel/kernelLogMode.h index b8f3bfc..544d911 100644 --- a/src/modes/kernel/kernelLogMode.h +++ b/src/modes/kernel/kernelLogMode.h @@ -1,56 +1,56 @@ /*************************************************************************** * KSystemLog, a system log viewer tool * * Copyright (C) 2007 by Nicolas Ternisien * * nicolas.ternisien@gmail.com * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #ifndef KERNEL_LOG_MODE_H #define KERNEL_LOG_MODE_H /** * Kernel Log Mode Identifier */ #define KERNEL_LOG_MODE_ID "kernelLogMode" /** * Kernel Log Icon */ -#define KERNEL_MODE_ICON "utilities-system-monitor" +#define KERNEL_MODE_ICON "preferences-system-linux" #define UPTIME_FILE "/proc/uptime" #include #include "logFile.h" #include "logMode.h" class KernelLogMode : public LogMode { Q_OBJECT public: explicit KernelLogMode(); ~KernelLogMode(); Analyzer *createAnalyzer(const QVariant &options = QVariant()) override; QList createLogFiles() override; }; #endif // _KERNEL_LOG_MODE_H diff --git a/src/modes/postfix/postfixLogMode.h b/src/modes/postfix/postfixLogMode.h index 132c756..50f5841 100644 --- a/src/modes/postfix/postfixLogMode.h +++ b/src/modes/postfix/postfixLogMode.h @@ -1,54 +1,54 @@ /*************************************************************************** * KSystemLog, a system log viewer tool * * Copyright (C) 2007 by Nicolas Ternisien * * nicolas.ternisien@gmail.com * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #ifndef POSTFIX_LOG_MODE_H #define POSTFIX_LOG_MODE_H /** * Postfix Log Mode Identifier */ #define POSTFIX_LOG_MODE_ID "postfixLogMode" /** * Postfix Log Icon */ -#define POSTFIX_MODE_ICON "mail-message" +#define POSTFIX_MODE_ICON "internet-mail" #include #include "logFile.h" #include "logMode.h" class PostfixLogMode : public LogMode { Q_OBJECT public: explicit PostfixLogMode(); ~PostfixLogMode(); Analyzer *createAnalyzer(const QVariant &options = QVariant()) override; QList createLogFiles() override; }; #endif // _POSTFIX_LOG_MODE_H diff --git a/src/modes/samba/sambaAccessLogMode.h b/src/modes/samba/sambaAccessLogMode.h index cdbe311..108f096 100644 --- a/src/modes/samba/sambaAccessLogMode.h +++ b/src/modes/samba/sambaAccessLogMode.h @@ -1,61 +1,61 @@ /*************************************************************************** * KSystemLog, a system log viewer tool * * Copyright (C) 2007 by Nicolas Ternisien * * nicolas.ternisien@gmail.com * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #ifndef SAMBA_ACCESS_LOG_MODE_H #define SAMBA_ACCESS_LOG_MODE_H /** * Samba Access Log Mode Identifier */ #define SAMBA_ACCESS_LOG_MODE_ID "sambaAccessLogMode" /** * Samba Access Log Icon */ -#define SAMBA_ACCESS_MODE_ICON "network-workgroup" +#define SAMBA_ACCESS_MODE_ICON "preferences-system-network-server-share-windows" #include #include "logFile.h" #include "logMode.h" class SambaConfiguration; class SambaConfigurationWidget; class SambaItemBuilder; class SambaAccessLogMode : public LogMode { Q_OBJECT public: explicit SambaAccessLogMode(QSharedPointer &sambaConfiguration, SambaConfigurationWidget *sambaConfigurationWidget, SambaItemBuilder *itemBuilder); ~SambaAccessLogMode(); Analyzer *createAnalyzer(const QVariant &options = QVariant()) override; QList createLogFiles() override; }; #endif // _SAMBA_ACCESS_LOG_MODE_H diff --git a/src/modes/samba/sambaLogMode.h b/src/modes/samba/sambaLogMode.h index 0d7137d..f67a19c 100644 --- a/src/modes/samba/sambaLogMode.h +++ b/src/modes/samba/sambaLogMode.h @@ -1,60 +1,60 @@ /*************************************************************************** * KSystemLog, a system log viewer tool * * Copyright (C) 2007 by Nicolas Ternisien * * nicolas.ternisien@gmail.com * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #ifndef SAMBA_LOG_MODE_H #define SAMBA_LOG_MODE_H /** * Samba Log Mode Identifier */ #define SAMBA_LOG_MODE_ID "sambaLogMode" /** * Samba Log Icon */ -#define SAMBA_MODE_ICON "folder-remote" +#define SAMBA_MODE_ICON "preferences-system-network-share-windows" #include #include "logFile.h" #include "logMode.h" class SambaConfiguration; class SambaConfigurationWidget; class SambaItemBuilder; class SambaLogMode : public LogMode { Q_OBJECT public: explicit SambaLogMode(QSharedPointer &sambaConfiguration, SambaConfigurationWidget *sambaConfigurationWidget, SambaItemBuilder *itemBuilder); ~SambaLogMode(); Analyzer *createAnalyzer(const QVariant &options = QVariant()) override; QList createLogFiles() override; }; #endif // _SAMBA_LOG_MODE_H diff --git a/src/modes/system/systemLogMode.h b/src/modes/system/systemLogMode.h index f9ebb65..67c9ca1 100644 --- a/src/modes/system/systemLogMode.h +++ b/src/modes/system/systemLogMode.h @@ -1,54 +1,54 @@ /*************************************************************************** * KSystemLog, a system log viewer tool * * Copyright (C) 2007 by Nicolas Ternisien * * nicolas.ternisien@gmail.com * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #ifndef SYSTEM_LOG_MODE_H #define SYSTEM_LOG_MODE_H /** * System Log Mode Identifier */ #define SYSTEM_LOG_MODE_ID "systemLogMode" /** * System Log Icon */ -#define SYSTEM_MODE_ICON "computer" +#define SYSTEM_MODE_ICON "preferences-desktop-wallpaper" #include #include "logFile.h" #include "logMode.h" class SystemLogMode : public LogMode { Q_OBJECT public: explicit SystemLogMode(); ~SystemLogMode(); Analyzer *createAnalyzer(const QVariant &options = QVariant()) override; QList createLogFiles() override; }; #endif // _SYSTEM_LOG_MODE_H diff --git a/src/modes/xsession/xsessionLogMode.h b/src/modes/xsession/xsessionLogMode.h index eb3a133..ce4584a 100644 --- a/src/modes/xsession/xsessionLogMode.h +++ b/src/modes/xsession/xsessionLogMode.h @@ -1,55 +1,55 @@ /*************************************************************************** * KSystemLog, a system log viewer tool * * Copyright (C) 2007 by Nicolas Ternisien * * nicolas.ternisien@gmail.com * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #ifndef X_SESSION_LOG_MODE_H #define X_SESSION_LOG_MODE_H /** * Xorg Log Mode Identifier */ #define X_SESSION_LOG_MODE_ID "xsessionLogMode" /** * Xorg Log Icon */ -#define X_SESSION_MODE_ICON "utilities-log-viewer" +#define X_SESSION_MODE_ICON "preferences-system-windows-effect-coverswitch" #include #include "logFile.h" #include "logMode.h" class XSessionLogMode : public LogMode { Q_OBJECT public: explicit XSessionLogMode(); ~XSessionLogMode(); Analyzer *createAnalyzer(const QVariant &options = QVariant()) override; QList createLogFiles() override; }; #endif // _X_SESSION_LOG_MODE_H