| 
					
				 | 
			
			
				@@ -1,7 +1,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /* 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * <one line to give the library's name and an idea of what it does.> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * Copyright 2015  Malte Veerman maldela@halloarsch.de 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- *  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * 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 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -9,15 +9,15 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * accepted by the membership of KDE e.V. (or its successor approved 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * by the membership of KDE e.V.), which shall act as a proxy 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * defined in Section 14 of version 3 of the license. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- *  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * 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, see <http://www.gnu.org/licenses/>. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- *  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 #include "fancontrolkcm.h" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -39,7 +39,7 @@ FancontrolKCM::FancontrolKCM(QObject *parent, const QVariantList& args) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if (!m_base->hasSystemdCommunicator()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         qFatal("Fancontrol-gui-lib was compiled without systemd support!"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     KAboutData *about = new KAboutData("kcm_fancontrol", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                        i18n("Fancontrol-KCM"), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                        "0.1", 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -49,27 +49,27 @@ FancontrolKCM::FancontrolKCM(QObject *parent, const QVariantList& args) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                        QString(), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                        "http://github.com/maldela/fancontrol-gui", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                        "http://github.com/maldela/fancontrol-gui/issues"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    about->addAuthor(i18n("Malte Veerman"), i18n("Main Developer"), "maldela@halloarsch.de");  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    about->addAuthor(i18n("Malte Veerman"), i18n("Main Developer"), "maldela@halloarsch.de"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     setAboutData(about); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     setButtons(Apply | Default); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     setAuthActionName("fancontrol.gui.helper.action"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-       
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     connect(m_base->loader(), &Loader::configFileChanged, [this] () { setNeedsSave(true); }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     connect(m_base, &GUIBase::minTempChanged, [this] () { setNeedsSave(true); }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     connect(m_base, &GUIBase::maxTempChanged, [this] () { setNeedsSave(true); }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     connect(m_base, &GUIBase::serviceNameChanged, [this] () { setNeedsSave(true); }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     qmlRegisterType<GUIBase>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 void FancontrolKCM::save() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     m_base->save(true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if (m_base->systemdCommunicator()->serviceActive() && m_manualControl) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         m_base->systemdCommunicator()->restartService(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    else  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         m_base->systemdCommunicator()->setServiceActive(m_manualControl); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     m_base->systemdCommunicator()->setServiceEnabled(m_manualControl); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -83,7 +83,7 @@ void FancontrolKCM::load() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     setNeedsSave(false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-void FancontrolKCM::defaults()  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+void FancontrolKCM::defaults() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     setManualControl(false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     setNeedsSave(true); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -100,4 +100,4 @@ void FancontrolKCM::setManualControl(bool manualControl) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-#include "fancontrolkcm.moc" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include "fancontrolkcm.moc" 
			 |