Logo Search packages:      
Sourcecode: pan version File versions

gboolean Decoder::progress_update_timer_func ( gpointer  decoder  )  [static, private]

tell our task about the decode's progress

Definition at line 293 of file decoder.cc.

References pan::Progress::set_status_va(), and pan::Progress::set_step().

{
  Decoder *self = static_cast<Decoder *>(decoder);
  Task *task = self->task;
  if (!task || self->was_cancelled()) return false;

  self->mut.lock();
  const double percent (self->percent);
  const std::string f (content_to_utf8 (self->current_file));
  self->mut.unlock();

  task->set_step(int(percent));
  task->set_status_va (_("Decoding %s"), f.c_str());

  return true; // keep timer func running
}


Generated by  Doxygen 1.6.0   Back to index