📄 preferences.h
字号:
static const char * getScoreAdjustor(void) { return m_sScoreAdjustor; }
//EastShare - added by AndCycle, IP to Country
static IP2CountryNameSelection m_iIP2CountryNameMode;
static bool m_bIP2CountryShowFlag;
//EastShare - added by AndCycle, IP to Country
// -khaos--+++> Changed data type to avoid overflows
static uint16 statsMax;
// <-----khaos-
static uint8 statsAverageMinutes;
static uint8 useDownloadNotifier;
static uint8 useNewDownloadNotifier;
static uint8 useChatNotifier;
static uint8 useLogNotifier;
static uint8 useSoundInNotifier;
static uint8 notifierPopsEveryChatMsg;
static uint8 notifierImportantError;
static uint8 notifierNewVersion;
static TCHAR notifierSoundFilePath[510];
static uint8 useServerNotifier; //VeryCD
static TCHAR m_sircserver[50];
static TCHAR m_sircnick[30];
static TCHAR m_sircchannamefilter[50];
static bool m_bircaddtimestamp;
static bool m_bircusechanfilter;
static uint16 m_iircchanneluserfilter;
static TCHAR m_sircperformstring[255];
static bool m_bircuseperform;
static bool m_birclistonconnect;
static bool m_bircacceptlinks;
static bool m_bircacceptlinksfriends;
static bool m_bircsoundevents;
static bool m_bircignoremiscmessage;
static bool m_bircignorejoinmessage;
static bool m_bircignorepartmessage;
static bool m_bircignorequitmessage;
static bool m_bircignoreemuleprotoaddfriend;
static bool m_bircallowemuleprotoaddfriend;
static bool m_bircignoreemuleprotosendlink;
static bool m_birchelpchannel;
static bool m_bRemove2bin;
static bool m_bpreviewprio;
static bool smartidcheck;
static uint8 smartidstate;
static bool safeServerConnect;
static bool startMinimized;
static bool m_bAutoStart;
static bool m_bRestoreLastMainWndDlg;
static int m_iLastMainWndDlgID;
static bool m_bRestoreLastLogPane;
static int m_iLastLogPaneID;
static uint16 MaxConperFive;
static int checkDiskspace; // SLUGFILLER: checkDiskspace
static UINT m_uMinFreeDiskSpace;
static TCHAR yourHostname[127]; // itsonlyme: hostnameSource
static bool m_bEnableVerboseOptions;
static bool m_bVerbose;
static bool m_bFullVerbose;
static bool m_bDebugSourceExchange; // Sony April 23. 2003, button to keep source exchange msg out of verbose log
static bool m_bLogBannedClients;
static bool m_bLogRatingDescReceived;
static bool m_bLogSecureIdent;
static bool m_bLogFilteredIPs;
static bool m_bLogFileSaving;
static bool m_bLogA4AF; // ZZ:DownloadManager
static bool m_bLogUlDlEvents;
static bool m_bUseDebugDevice;
static int m_iDebugServerTCPLevel;
static int m_iDebugServerUDPLevel;
static int m_iDebugServerSourcesLevel;
static int m_iDebugServerSearchesLevel;
static int m_iDebugClientTCPLevel;
static int m_iDebugClientUDPLevel;
static int m_iDebugClientKadUDPLevel;
static bool m_bupdatequeuelist;
static bool m_bmanualhighprio;
static bool m_btransferfullchunks;
static int m_istartnextfile;
static bool m_bshowoverhead;
static bool m_bDAP;
static bool m_bUAP;
static bool m_bDisableKnownClientList;
static bool m_bDisableQueueList;
static bool m_bExtControls;
static bool m_bTransflstRemain;
static uint8 versioncheckdays;
// Barry - Provide a mechanism for all tables to store/retrieve sort order
static int tableSortItemDownload;
static int tableSortItemUpload;
static int tableSortItemQueue;
static int tableSortItemSearch;
static int tableSortItemShared;
static int tableSortItemServer;
static int tableSortItemClientList;
static int tableSortItemFilenames;
static bool tableSortAscendingDownload;
static bool tableSortAscendingUpload;
static bool tableSortAscendingQueue;
static bool tableSortAscendingSearch;
static bool tableSortAscendingShared;
static bool tableSortAscendingServer;
static bool tableSortAscendingClientList;
static bool tableSortAscendingFilenames;
static bool showRatesInTitle;
static TCHAR TxtEditor[256];
static TCHAR VideoPlayer[256];
static bool moviePreviewBackup;
static int m_iPreviewSmallBlocks;
static int m_iPreviewCopiedArchives;
static int m_iInspectAllFileTypes;
static bool indicateratings;
static bool watchclipboard;
static bool filterserverbyip;
static bool m_bFirstStart;
static bool m_bCreditSystem;
static bool log2disk;
static bool debug2disk;
static int iMaxLogBuff;
static UINT uMaxLogFileSize;
static bool scheduler;
static bool dontcompressavi;
static bool msgonlyfriends;
static bool msgsecure;
static uint8 filterlevel;
static UINT m_iFileBufferSize;
static UINT m_iQueueSize;
static int m_iCommitFiles;
static uint16 maxmsgsessions;
static uint32 versioncheckLastAutomatic;
static TCHAR messageFilter[512];
static CString commentFilter;
static TCHAR filenameCleanups[512];
static TCHAR notifierConfiguration[510];
static TCHAR datetimeformat[64];
static TCHAR datetimeformat4log[64];
static LOGFONT m_lfHyperText;
static LOGFONT m_lfLogText;
static int m_iExtractMetaData;
static bool m_bAdjustNTFSDaylightFileTime;
// Web Server [kuchin]
static TCHAR m_sWebPassword[256];
static TCHAR m_sWebLowPassword[256];
static uint16 m_nWebPort;
static bool m_bWebEnabled;
static bool m_bWebUseGzip;
static int m_nWebPageRefresh;
static bool m_bWebLowEnabled;
static TCHAR m_sWebResDir[MAX_PATH];
static TCHAR m_sTemplateFile[MAX_PATH];
static ProxySettings proxy; // deadlake PROXYSUPPORT
static bool m_bIsASCWOP;
static bool m_bShowProxyErrors;
static bool showCatTabInfos;
static bool resumeSameCat;
static bool dontRecreateGraphs;
static bool autofilenamecleanup;
static int allcatType;
static bool m_bUseAutocompl;
static bool m_bShowDwlPercentage;
static bool m_bRemoveFinishedDownloads;
static uint16 m_iMaxChatHistory;
static bool m_bShowActiveDownloadsBold;
static int m_iSearchMethod;
static bool m_bAdvancedSpamfilter;
static bool m_bUseSecureIdent;
// mobilemule
static TCHAR m_sMMPassword[256];
static bool m_bMMEnabled;
static uint16 m_nMMPort;
static bool networkkademlia;
static bool networked2k;
// toolbar
static uint8 m_nToolbarLabels;
static TCHAR m_sToolbarBitmap[256];
static TCHAR m_sToolbarBitmapFolder[256];
static TCHAR m_sToolbarSettings[256];
//preview
static bool m_bPreviewEnabled;
// ZZ:UploadSpeedSense -->
static bool m_bDynUpEnabled;
static int m_iDynUpPingTolerance;
static int m_iDynUpGoingUpDivider;
static int m_iDynUpGoingDownDivider;
static int m_iDynUpNumberOfPings;
static int m_iDynUpPingToleranceMilliseconds;
static bool m_bDynUpUseMillisecondPingTolerance;
// ZZ:UploadSpeedSense <--
static bool m_bA4AFSaveCpu; // ZZ:DownloadManager
static CStringList shareddir_list;
static CStringList adresses_list;
static int m_iDbgHeap;
static uint8 m_nWebMirrorAlertLevel;
static bool m_bRunAsUser;
static bool m_bUseOldTimeRemaining;
// PeerCache
static uint32 m_uPeerCacheLastSearch;
static bool m_bPeerCacheWasFound;
static bool m_bPeerCacheEnabled;
static uint16 m_nPeerCachePort;
// Firewall settings
static bool m_bOpenPortsOnStartUp;
//AICH Options
static bool m_bTrustEveryHash;
static uint8 m_byLogLevel;
enum Table
{
tableDownload,
tableUpload,
tableQueue,
tableSearch,
tableShared,
tableServer,
tableClientList,
tableFilenames
};
friend class CPreferencesWnd;
friend class CPPgGeneral;
friend class CPPgConnection;
friend class CPPgServer;
friend class CPPgDirectories;
friend class CPPgFiles;
friend class CPPgNotify;
friend class CPPgIRC;
friend class Wizard;
friend class CPPgTweaks;
friend class CPPgDisplay;
friend class CPPgSecurity;
friend class CPPgScheduler;
friend class CPPgDebug;
CPreferences();
~CPreferences();
static void Init();
static void Uninit();
static const CString& GetAppDir() {return appdir;}
static LPCTSTR GetIncomingDir() {return incomingdir;}
static LPCTSTR GetTempDir() {return tempdir;}
static const CString& GetConfigDir() {return configdir;}
static const CString& GetWebServerDir() {return m_strWebServerDir;}
static const CString& GetFileCommentsFilePath(){return m_strFileCommentsFilePath;}
static bool IsTempFile(const CString& rstrDirectory, const CString& rstrName);
static bool IsConfigFile(const CString& rstrDirectory, const CString& rstrName);
static bool IsShareableDirectory(const CString& rstrDirectory);
static bool IsInstallationDirectory(const CString& rstrDir);
static bool Save();
static void SaveCats();
static uint8 Score() {return scorsystem;}
static bool Reconnect() {return reconnect;}
static const CString& GetUserNick() {return strNick;}
static void SetUserNick(LPCTSTR pszNick);
static int GetMaxUserNickLength() {return 50;}
static uint16 GetPort(); //{return port;} //VeryCD
static uint16 GetUDPPort(); //{return udpport;}
static uint16 GetServerUDPPort(){return nServerUDPPort;}
static uchar* GetUserHash() {return userhash;}
// ZZ:UploadSpeedSense -->
static uint16 GetMinUpload() {return minupload;}
// ZZ:UploadSpeedSense <--
static uint16 GetMaxUpload() {return maxupload;}
static bool IsICHEnabled() {return ICH;}
static bool AutoServerlist(){return autoserverlist;}
static bool UpdateNotify() {return updatenotify;}
static bool DoMinToTray() {return mintotray;}
static bool DoAutoConnect() {return autoconnect;}
static void SetAutoConnect( bool inautoconnect) {autoconnect = inautoconnect;}
static bool AddServersFromServer() {return addserversfromserver;}
static bool AddServersFromClient() {return addserversfromclient;}
static uint8* GetMinTrayPTR() {return &mintotray;}
static uint16 GetTrafficOMeterInterval() { return trafficOMeterInterval;}
static void SetTrafficOMeterInterval(uint16 in) { trafficOMeterInterval=in;}
static uint16 GetStatsInterval() { return statsInterval;}
static void SetStatsInterval(uint16 in) { statsInterval=in;}
static void Add2TotalDownloaded(uint64 in) {totalDownloadedBytes+=in;}
static void Add2TotalUploaded(uint64 in) {totalUploadedBytes+=in;}
// -khaos--+++> Many, many, many, many methods.
static void SaveStats(int bBackUp = 0);
static void SetRecordStructMembers();
static void SaveCompletedDownloadsStat();
static bool LoadStats(int loadBackUp = 0);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -