Exemplo n.º 1
0
std::string
ArchFileUnix::getProfileDirectory()
{
#if WINAPI_XWINDOWS
	return getUserDirectory().append("/.synergy");
#else
	return getUserDirectory().append("/Library/Synergy");
#endif
}
Exemplo n.º 2
0
string_512 KOutgoingMessage::buildMessageFullPath() const
{
	char buf[512];
	int n = sprintf_k(buf, sizeof(buf), "%s/%s",
		getUserDirectory(),
		this->buildMessageFilePath().c_str());
	return string_512(buf, n);
}
Exemplo n.º 3
0
string_512 KOutgoingMessage::buildTmpFileName() const
{
	char buf[512];
	KDatetime nowDate;
	KLocalDatetime ldt = nowDate.GetLocalTime();
	int n = sprintf_k(buf, sizeof(buf), "%s/tmp/%04d%02d%02d/%d",
		getUserDirectory(),
		ldt.year, ldt.month, ldt.day, m_sequence);
	return string_512(buf, n);
}