Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/shared/Utils.h

Issue 11254007: Installation with registry keys
Patch Set: Created July 25, 2013, 9:57 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/shared/Dictionary.cpp ('k') | src/shared/Utils.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/shared/Utils.h
===================================================================
--- a/src/shared/Utils.h
+++ b/src/shared/Utils.h
@@ -5,7 +5,7 @@
#include <locale>
#include <functional>
#include <string>
-
+#include <memory>
bool IsWindowsVistaOrLater();
@@ -25,4 +25,31 @@
return trimmed;
}
+class Location {
+public:
+ /**
+ * Fully-qualified path to the file name of the engine executable.
+ */
+ static std::wstring engine();
+
+ /**
+ * Fully-qualified path to the locales/ directory. Ends in a backslash.
+ */
+ static std::wstring locales_dir();
+
+ /**
+ * Fully-qualified path to the html/ directory. Ends in a backslash.
+ */
+ static std::wstring html_dir();
+
+ /**
+ * Check that all the locations are known in the registry.
+ *
+ * While not a complete check of installation validity, this is a quick check to ensure that at least
+ * all the relevant registry keys are present. Strictly speaking, this is a development-cycle function,
+ * ensuring that the development environment is properly set up for testing.
+ */
+ static bool all_known();
+};
+
#endif // UTILS_H
« no previous file with comments | « src/shared/Dictionary.cpp ('k') | src/shared/Utils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld