mirror of
https://github.com/znc/znc.git
synced 2026-08-07 01:13:25 +02:00
Don't include FileUtils.h in znc.h or Modules.h
Both these headers only really need CFile* which can be handled with a forward declaration. To make this possible, some methods are moved from the header file into the corresponding implementation file, because they used CFile or CDir static members. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
@@ -384,6 +384,27 @@ CString CZNC::GetModPath() const {
|
||||
return sModPath;
|
||||
}
|
||||
|
||||
const CString& CZNC::GetCurPath() const {
|
||||
if (!CFile::Exists(m_sCurPath)) {
|
||||
CDir::MakeDir(m_sCurPath);
|
||||
}
|
||||
return m_sCurPath;
|
||||
}
|
||||
|
||||
const CString& CZNC::GetHomePath() const {
|
||||
return CFile::GetHomePath();
|
||||
}
|
||||
|
||||
const CString& CZNC::GetZNCPath() const {
|
||||
if (!CFile::Exists(m_sZNCPath)) {
|
||||
CDir::MakeDir(m_sZNCPath);
|
||||
}
|
||||
return m_sZNCPath;
|
||||
}
|
||||
|
||||
CString CZNC::GetPemLocation() const {
|
||||
return CDir::ChangeDir("", m_sSSLCertFile);
|
||||
}
|
||||
|
||||
CString CZNC::ExpandConfigPath(const CString& sConfigFile, bool bAllowMkDir) {
|
||||
CString sRetPath;
|
||||
|
||||
Reference in New Issue
Block a user