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

void KNateon::readProperties ( KConfig *  config  )  [private]

사운드

환경 설정을 읽어서 Away Timer를 설정.

자리비움 사용 유무

자리비움 시간

Definition at line 2425 of file knateon.cpp.

References nmconfig::awaytime, nmconfig::buddyconnectsoundpath, nmconfig::checkawaytime, nmconfig::filedownloadpath, nmconfig::filesenddonesoundpath, nmconfig::memorecievesoundpath, nmconfig::minihompynewsoundpath, nmconfig::myloginsoundpath, slotUpdateAwayInfo(), nmconfig::startchatsoundpath, nmconfig::usebuddyconnectsound, nmconfig::usefilesenddonesound, nmconfig::usememorecievesound, nmconfig::useminihompynewsound, nmconfig::usemyloginsound, nmconfig::usesound, and nmconfig::usestartchatsound.

{
      KNateonInterface::readProperties(config);

      /*! 사운드 */
      KStandardDirs   *dirs   = KGlobal::dirs();
      QString sSoundPath( dirs->findResource( "data", "knateon/sound/" ) );
  
      config->setGroup("Sound");
      stConfig.usesound = config->readBoolEntry( "UseSound", false );
  
      stConfig.usebuddyconnectsound = config->readBoolEntry("IsOnFriendConnect", false );
      stConfig.buddyconnectsoundpath = config->readEntry("FriendConnect", sSoundPath + "buddy_login.wav");

      stConfig.usememorecievesound = config->readBoolEntry("IsOnReceiveMemo", false );
      stConfig.memorecievesoundpath = config->readEntry("ReceiveMemo", sSoundPath + "recv_memo.wav");

      stConfig.usefilesenddonesound = config->readBoolEntry("IsOnFileTransferDone", false );
      stConfig.filesenddonesoundpath = config->readEntry("FileTransferDone", sSoundPath + "trans_comp.wav");

      stConfig.usemyloginsound = config->readBoolEntry("IsOnLogin", false );
      stConfig.myloginsoundpath = config->readEntry("Login", sSoundPath + "login.wav");
  
      stConfig.usestartchatsound = config->readBoolEntry("IsOnChat", false );
      stConfig.startchatsoundpath = config->readEntry( "ChatRequest", sSoundPath + "recv_chat.wav" );
  
      stConfig.useminihompynewsound = config->readBoolEntry( "IsOnMiniHompyNew", false );
      stConfig.minihompynewsoundpath = config->readEntry( "MiniHompyNew", sSoundPath + "minihompy.wav" );

    /*!
     * 환경 설정을 읽어서 Away Timer를 설정.
     */
      config->setGroup( "Config_Personal" );
    /*! 자리비움 사용 유무 */
      stConfig.checkawaytime = config->readBoolEntry( "Use_Away_Time", false );
    /*! 자리비움 시간 */
      stConfig.awaytime = config->readNumEntry( "Away_Time", 10 );
  
      slotUpdateAwayInfo();

      config->setGroup( "Config_General" );
      stConfig.filedownloadpath = config->readEntry( "Down_Path", QDir::homeDirPath() );
      if ( !QDir( stConfig.filedownloadpath ).exists() )
      {
            stConfig.filedownloadpath = QDir::homeDirPath();
            config->writeEntry( "Down_Path", stConfig.filedownloadpath );
            config->sync();
      }
}


Generated by  Doxygen 1.6.0   Back to index