Browse Source

ditto copy buffers

git-svn-id: svn://svn.code.sf.net/p/ditto-cp/code/trunk@365 595ec19a-5cb4-439b-94a8-42fb3063c22c
sabrogden 19 years ago
parent
commit
8c5a8c328b
2 changed files with 14 additions and 0 deletions
  1. 11 0
      Options.cpp
  2. 3 0
      Options.h

+ 11 - 0
Options.cpp

@@ -149,6 +149,7 @@ void CGetSetOptions::LoadSettings()
 
 	GetClientSendCount();
 
+
 	//If running from a U3 device and no language file as been asigned
 	//then use the language defined by the U3 launcher
 	if(m_bU3)
@@ -1624,4 +1625,14 @@ void CGetSetOptions::WriteU3Hwnd(HWND hWnd)
 	CString csIniFile = GetPath(PATH_U3_HWND_INI);
 	csIniFile += _T("DittohWnd.ini");
 	WritePrivateProfileInt(_T("Ditto"), _T("MainhWnd"), (int)hWnd, csIniFile);
+}
+
+long CGetSetOptions::GetDittoRestoreClipboardDelay()
+{
+	return GetProfileLong("RestoreClipboardDelay", 750);
+
+}
+void CGetSetOptions::SetDittoRestoreClipboardDelay(long lDelay)
+{
+	SetProfileLong("RestoreClipboardDelay", lDelay);
 }

+ 3 - 0
Options.h

@@ -323,6 +323,9 @@ public:
 
 	static void		WriteU3Hwnd(HWND hWnd);
 	static __int64	nLastDbWriteTime;
+
+	static long		GetDittoRestoreClipboardDelay();
+	static void		SetDittoRestoreClipboardDelay(long lDelay);
 };
 
 // global for easy access and for initialization of fast access variables