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

EmoticonManager * EmoticonManager::instance (  )  [static]

Return a singleton instance of the emoticon manager

Definition at line 311 of file emoticonmanager.cpp.

References EmoticonManager(), and slotChangedEmoticonSettings().

Referenced by PictureTransferP2P::contactStarted1_gotEmoticonRequest(), EmoticonWidget::saveSettings(), MsnSwitchboardConnection::sendChatMessage(), and ChatView::slotAddNewEmoticon().

{
  // If the instance is null, create a new emoticon manager and return that.
  if ( instance_ == 0 )
  {
    instance_ = new EmoticonManager();
    connect( CurrentAccount::instance(), SIGNAL(changedEmoticonSettings()     ),
             instance_,                    SLOT(slotChangedEmoticonSettings() ) );
  }
  return instance_;
}


Generated by  Doxygen 1.6.0   Back to index