diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:57:03 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:57:03 -0600 |
commit | 80f772ad054f92e81e0eb3bc7319a32e8a4e8a05 (patch) | |
tree | af9a620cca9e626f475b3dac43160735288f43a4 /src/screen.cpp | |
parent | f3cf754cc9c54fc1de34ef06110a6810d655390a (diff) | |
download | tdepowersave-80f772ad054f92e81e0eb3bc7319a32e8a4e8a05.tar.gz tdepowersave-80f772ad054f92e81e0eb3bc7319a32e8a4e8a05.zip |
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit f3cf754cc9c54fc1de34ef06110a6810d655390a.
Diffstat (limited to 'src/screen.cpp')
-rw-r--r-- | src/screen.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/screen.cpp b/src/screen.cpp index 8caf48b..877583a 100644 --- a/src/screen.cpp +++ b/src/screen.cpp @@ -52,7 +52,7 @@ screen::screen() { xlock = NULL; got_XScreensaver = false; - checkDPMSStatus(); + checkDPMStqStatus(); check_xscreensaver_timer_runs = false; SCREENSAVER_STATUS = -1; @@ -61,7 +61,7 @@ screen::screen() { check_xscreensaver_timer = new TQTimer( this ); connect( check_xscreensaver_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(xscreensaver_ping() )); - SCREENSAVER_STATUS = checkScreenSaverStatus(); + SCREENSAVER_STATUS = checkScreenSavertqStatus(); kdDebugFuncOut(trace); } @@ -80,7 +80,7 @@ screen::~screen() { bool screen::setScreenSaver(bool enable){ kdDebugFuncIn(trace); - if(SCREENSAVER_STATUS == -1) SCREENSAVER_STATUS = checkScreenSaverStatus(); + if(SCREENSAVER_STATUS == -1) SCREENSAVER_STATUS = checkScreenSavertqStatus(); if((SCREENSAVER_STATUS == 1) || (SCREENSAVER_STATUS == 0)){ screen_save_dcop_ref.send( "enable", enable); kdDebugFuncOut(trace); @@ -243,7 +243,7 @@ void screen::xscreensaver_ping(){ * \retval 99 gnome-screensaver check is running * \retval -1 else */ -int screen::checkScreenSaverStatus() { +int screen::checkScreenSavertqStatus() { kdDebugFuncIn(trace); bool get_reply = false; @@ -326,7 +326,7 @@ void screen::getGSExited (KProcess *gnomecheckcommand) { * \retval 0 if DMPS is disabled * \retval -1 if there is a error */ -int screen::checkDPMSStatus(){ +int screen::checkDPMStqStatus(){ kdDebugFuncIn(trace); CARD16 state; @@ -432,7 +432,7 @@ bool screen::lockScreen(){ kdDebugFuncIn(trace); // screensaver status known? - if(SCREENSAVER_STATUS == -1) SCREENSAVER_STATUS = checkScreenSaverStatus(); + if(SCREENSAVER_STATUS == -1) SCREENSAVER_STATUS = checkScreenSavertqStatus(); // set lock for KScreensaver if((SCREENSAVER_STATUS == 1) || (SCREENSAVER_STATUS == 0)){ @@ -549,7 +549,7 @@ bool screen::lockScreen( TQString lock_withMethod ) { } else { // screensaver status known? - SCREENSAVER_STATUS = checkScreenSaverStatus(); + SCREENSAVER_STATUS = checkScreenSavertqStatus(); if (lock_withMethod == "kscreensaver") { if((SCREENSAVER_STATUS == 1) || (SCREENSAVER_STATUS == 0)){ @@ -597,7 +597,7 @@ xscreensaver: void screen::blankOnlyScreen( bool blankonly ){ kdDebugFuncIn(trace); - if(SCREENSAVER_STATUS == -1) SCREENSAVER_STATUS = checkScreenSaverStatus(); + if(SCREENSAVER_STATUS == -1) SCREENSAVER_STATUS = checkScreenSavertqStatus(); // set KScreensaver if((SCREENSAVER_STATUS == 1) || (SCREENSAVER_STATUS == 0)){ screen_save_dcop_ref.send("setBlankOnly", blankonly); @@ -620,7 +620,7 @@ bool screen::resetKDEScreensaver(){ kdDebugFuncIn(trace); if(SCREENSAVER_STATUS == -1) - SCREENSAVER_STATUS = checkScreenSaverStatus(); + SCREENSAVER_STATUS = checkScreenSavertqStatus(); // do this only if the screensaver is not running if(SCREENSAVER_STATUS == 0){ @@ -648,7 +648,7 @@ bool screen::resetKDEScreensaver(){ bool screen::resetXScreensaver(){ kdDebugFuncIn(trace); - if(checkScreenSaverStatus() == 11) { + if(checkScreenSavertqStatus() == 11) { delete xscreensaver_reset; |