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

void Account::setChatInformation ( bool  useContactFont,
bool  useEmoticons,
bool  showWinks,
bool  useFontEffects,
bool  useChatFormatting,
bool  shakeNudge,
bool  showMessageTime,
bool  timestampShowDate,
bool  timestampShowSeconds,
bool  groupFollowupMessages,
int  tabbedChatMode,
const QString &  chatStyle 
) [inherited]

Set chat information.

Set options related to chatting

Parameters:
useContactFont whether or not the contact's font should be forced to some value.
useEmoticons whether or not emoticons should be used.
showWinks whether to show winks
useFontEffects whether or not to use bold/italic/underline effects in chats.
useChatFormatting whether to show MSN Plus formatting in chat.
shakeNudge whether the chat window should shake when a nudge is received or sent.
showMessageTime whether or not time information is shown for chat messages.
timestampShowDate whether to show date in message timestamps.
timestampShowSeconds whether to show seconds in message timestamps.
groupFollowupMessages whether follow-up messages from the contact should be grouped.
tabbedChatMode whether or not chats should be tabbed in one window.
chatStyle the chat style to use.

Definition at line 1029 of file account.cpp.

Referenced by ChatStylePage::saveSettings().

{
  bool changedSettings = ( useContactFont_        != useContactFont )
                      || ( useEmoticons_          != useEmoticons )
                      || ( showWinks_             != showWinks )
                      || ( useFontEffects_        != useFontEffects )
                      || ( useChatFormatting_     != useChatFormatting )
                      || ( shakeNudge_            != shakeNudge )
                      || ( showMessageTime_       != showMessageTime )
                      || ( timestampShowDate_     != timestampShowDate )
                      || ( timestampShowSeconds_  != timestampShowSeconds )
                      || ( groupFollowupMessages_ != groupFollowupMessages )
                      || ( tabbedChatMode_        != tabbedChatMode )
                      || ( chatStyle_             != chatStyle );

  // Avoid signals because the chat windows will regenerate all messages.
  if( ! changedSettings )
  {
    return;
  }

  useContactFont_        = useContactFont;
  useEmoticons_          = useEmoticons;
  useFontEffects_        = useFontEffects;
  useChatFormatting_     = useChatFormatting;
  shakeNudge_            = shakeNudge;
  showMessageTime_       = showMessageTime;
  showWinks_             = showWinks;
  timestampShowDate_     = timestampShowDate;
  timestampShowSeconds_  = timestampShowSeconds;
  groupFollowupMessages_ = groupFollowupMessages;
  tabbedChatMode_        = tabbedChatMode;
  chatStyle_             = chatStyle;

  emit changedChatStyleSettings();
  dirty_ = true;

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


Generated by  Doxygen 1.6.0   Back to index