settings.java
来自「一个类似QQ的在线通讯聊天软件原码,适合初学者参考学习。」· Java 代码 · 共 80 行
JAVA
80 行
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 + =
减小字号Ctrl + -
显示快捷键?