⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 settings.java

📁 一个类似QQ的在线通讯聊天软件原码,适合初学者参考学习。
💻 JAVA
字号:
package openicq.management;

/**
 * The <code>Settings</code> interface is the basic access to the settings of
 * this application.
 * @author Hansgeorg Schwibbe
 * @copyright 2004
 */
public interface Settings
{
  /**
   * security level 'High'.
   */
  public static final int HIGH_SECURITY = 303;

  /**
   * Security level 'Low'.
   */
  public static final int LOW_SECURITY = 301;

  /**
   * Security level 'Medium'.
   */
  public static final int MEDIUM_SECURITY = 302;

  /**
   * Returns the deny unknown messages flag.
   * @return the deny unknown messages flag
   */
  boolean getDenyUnknown();

  /**
   * Returns the current security level.
   * @return the current security level
   */
  int getSecurityLevel();

  /**
   * Returns an array with the current sound file names.
   * @return an array with the current sound file names
   */
  String[] getSoundFileNames();

  /**
   * Returns an array with the sound enabled flags.
   * @return an array with the sound enabled flags
   */
  boolean[] getSoundFlags();

  /**
   * Returns true if the sound is activated globally.
   * @return true if the sound is activated globally
   */
  boolean isSoundEnabled();

  /**
   * Sets the deny unknown messages flag.
   * @param deny the deny unknown messages flag
   */
  void setDenyUnknown(boolean deny);

  /**
   * Sets the current security level.
   * @param level the current security level
   */
  void setSecurityLevel(int level);

  /**
   * Sets the globally sounds enabled flag.
   * @param enabled if the sounds should be enabled globally
   */
  void setSoundEnabled(boolean enabled);

  /**
   * Sets the sound file names and the sound enabled flags.
   * @param fileNames the sound file names
   * @param enabled the sound enabled flags
   */
  void setSoundFiles(String[] fileNames, boolean[] enabled);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -