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

void KNateon::slotGetProfile ( QStringList &  slResult  )  [private, slot]

웹에서 받은 프라이버시 설정관련 내용처리

친구에게만 쪽지 받기.

허용된 버디와 대화

Definition at line 5679 of file knateon.cpp.

References nmconfig::allowonlyfriendmemo, nmconfig::allowonlypermitchat, nmconfig::allowother, and config.

Referenced by connected().

{
      for ( QStringList::Iterator it = slResult.begin(); it != slResult.end(); ++it )
      {
            if ( (*it).find("=") == -1)
                  continue;
    
            QStringList slCnt = QStringList::split( '=', *it );
            QString sKey = slCnt[0].stripWhiteSpace();
            QString sValue = slCnt[1].stripWhiteSpace();

            config->setGroup( "Config_Privacy" );
    
            if ( sKey == "allow_buddy_only" )
            {
                  /*!
                   * 친구에게만 쪽지 받기.
                   */
                  if ( sValue == "Y" || sValue == "y" )
                  {
                        stConfig.allowonlyfriendmemo = TRUE;
                  }
                  else
                  {
                        stConfig.allowonlyfriendmemo = FALSE;
                  }
                  config->writeEntry( "Allow_Only_Friend_Memo", stConfig.allowonlyfriendmemo );
            }
            else if ( sKey == "allow_nonbuddy_chat" )
            {
                  /*!
                   * 허용된 버디와 대화
                   */
                  if ( sValue == "N" || sValue == "n" )
                  {
                        stConfig.allowother = FALSE;
                        stConfig.allowonlypermitchat = TRUE;
                  }
                  else
                  {
                        stConfig.allowother = TRUE;
                        stConfig.allowonlypermitchat = FALSE;
                  }
                  config->writeEntry( "Allow_Other", stConfig.allowother );
                  config->writeEntry( "Allow_Only_Permit_Chat", stConfig.allowonlypermitchat );
            }
      }
}


Generated by  Doxygen 1.6.0   Back to index