|
|
@ -510,7 +510,7 @@ void kpowersave::updateTooltip(){
|
|
|
|
/*!
|
|
|
|
/*!
|
|
|
|
* \b TQT_SLOT to starts the Yast2-power-management module. This called by the menuentry
|
|
|
|
* \b TQT_SLOT to starts the Yast2-power-management module. This called by the menuentry
|
|
|
|
* with ID \ref YAST_MODULE_MENU_ID, named "Start YaST2 Power Management Module".
|
|
|
|
* with ID \ref YAST_MODULE_MENU_ID, named "Start YaST2 Power Management Module".
|
|
|
|
* It create a new KProcess and execute "/sbin/yast2 power-management" with kdesu.
|
|
|
|
* It create a new KProcess and execute "/sbin/yast2 power-management" with tdesu.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void kpowersave::do_config(){
|
|
|
|
void kpowersave::do_config(){
|
|
|
|
kdDebugFuncIn(trace);
|
|
|
|
kdDebugFuncIn(trace);
|
|
|
@ -519,7 +519,7 @@ void kpowersave::do_config(){
|
|
|
|
delete yast2;
|
|
|
|
delete yast2;
|
|
|
|
|
|
|
|
|
|
|
|
yast2 = new KProcess;
|
|
|
|
yast2 = new KProcess;
|
|
|
|
*yast2 << "kdesu" << "--nonewdcop" << "/sbin/yast2" << "power-management";
|
|
|
|
*yast2 << "tdesu" << "--nonewdcop" << "/sbin/yast2" << "power-management";
|
|
|
|
|
|
|
|
|
|
|
|
connect(yast2, TQT_SIGNAL(processExited(KProcess *)),
|
|
|
|
connect(yast2, TQT_SIGNAL(processExited(KProcess *)),
|
|
|
|
TQT_SLOT(slotConfigProcessExited(KProcess *)));
|
|
|
|
TQT_SLOT(slotConfigProcessExited(KProcess *)));
|
|
|
@ -648,7 +648,7 @@ void kpowersave::observeConfigDlg(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
/*!
|
|
|
|
* \b TQT_SLOT which called from \ref do_config() if the 'kdesu yast2' KProcess exited.
|
|
|
|
* \b TQT_SLOT which called from \ref do_config() if the 'tdesu yast2' KProcess exited.
|
|
|
|
* This function control the return value and display if needed a errormessage on failure.
|
|
|
|
* This function control the return value and display if needed a errormessage on failure.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void kpowersave::slotConfigProcessExited(KProcess *proc){
|
|
|
|
void kpowersave::slotConfigProcessExited(KProcess *proc){
|
|
|
|