Logo Search packages:      
Sourcecode: kmess version File versions  Download package

void Account::setStatusOptions ( bool  useIdleTimer,
int  idleTime,
bool  hideNotificationsWhenBusy 
) [inherited]

Set the options on the status.

Parameters:
useIdleTimer whether to set the status as Idle after a while
idleTime the time without activity before being marked as idle
hideNotificationsWhenBusy whether to hide all the notifications when the status is set to Busy

Definition at line 1613 of file account.cpp.

Referenced by AccountPage::saveSettings().

{
  if( useIdleTimer_              == useIdleTimer
  &&  idleTime_                  == idleTime
  &&  hideNotificationsWhenBusy_ == hideNotificationsWhenBusy )
  {
    return;
  }

  useIdleTimer_              = useIdleTimer;
  idleTime_                  = idleTime;
  hideNotificationsWhenBusy_ = hideNotificationsWhenBusy;

  emit changedTimerSettings();

  dirty_ = true;
#ifdef KMESSDEBUG_ACCOUNT_DIRTY
  kDebug() << "Setting 'dirty' to true.";
#endif
}


Generated by  Doxygen 1.6.0   Back to index