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

MsnNotificationConnection::MsnNotificationConnection (  ) 

The constructor.

Initializes the default groups of the ContactList class.

Definition at line 71 of file msnnotificationconnection.cpp.

References slotAuthenticationFailed().

 : MsnConnection( MsnSocketBase::SERVER_NOTIFICATION ),
   addressBookService_(0),
   connected_(false),
   currentAccount_(0),
   enableNotifications_(false),
   initialized_(false),
   isInitiatingConnection_(false),
   lastStatus_(-1),
   offlineImService_(0),
   passportLoginService_(0)
{
  setObjectName( "MsnNotificationConnection" );

  // We manage the contact list
  contactList_ = new ContactList();
  // TODO post 2.0: replace with proper impl
  connect( contactList_, SIGNAL( dndMoveContactToGroup(QString,QString,QString) ),
           this,         SLOT  (           moveContact(QString,QString,QString) ) );

#ifdef KMESSDEBUG_CONTACTLISTMODELTEST
  // Start the Contact List model tests
  new ModelTest( contactList_ );
#endif

  // Periodically close expired switchboard requests
  connect( this,         SIGNAL( pingSent() ),
           this,         SLOT  ( checkSwitchboardsTimeout() ) );

  // Attach a timer to watch over the login process
  loginTimer_.stop();
  loginTimer_.setSingleShot( true );
  connect( &loginTimer_, SIGNAL( timeout() ),
           this,         SLOT  ( slotAuthenticationFailed() ) );
}


Generated by  Doxygen 1.6.0   Back to index