Logo Search packages:      
Sourcecode: kmess version File versions

P2PApplicationBase::~P2PApplicationBase (  )  [virtual]

Class destructor.

Cleans up buffers and timers.

Definition at line 107 of file p2papplicationbase.cpp.

References Application::isClosing().

{
#ifdef KMESSDEBUG_APPLICATION
  // Can't include getSessionID() here, is virtual method of destructed derived class.
  kDebug() << " closing=" << isClosing() <<
              " timer=" << waitingTimer_->isActive() << 
              " state=" << waitingState_ <<
              " unackedCount=" << outgoingMessages_.count() << ".";
#endif
#ifdef KMESSTEST
  KMESS_ASSERT( outgoingMessages_.isEmpty() );
#endif

  // Stop the timer
  waitingTimer_->stop();
  applicationList_ = 0;
  dataSource_ = 0;

  // Delete pointers
  qDeleteAll( outgoingMessages_ );
  delete waitingTimer_;
  delete buffer_;
}


Generated by  Doxygen 1.6.0   Back to index