MCPcopy Create free account
hub / github.com/clechasseur/pathcopycopy / GetUseFQDN

Method GetUseFQDN

PathCopyCopy/src/PathCopyCopySettings.cpp:269–281  ·  view source on GitHub ↗

Checks whether user wants to use fully-qualified domain names (FQDN) when returning paths for the UNC plugins. @return true if FQDNs should be used, false otherwise.

Source from the content-addressed store, hash-verified

267 // @return true if FQDNs should be used, false otherwise.
268 //
269 bool Settings::GetUseFQDN() const
270 {
271 // Perform late-revising.
272 Revise();
273
274 // Check if value exists. If so, read it, otherwise use default value.
275 bool useFQDN = SETTING_USE_FQDN_DEFAULT;
276 DWORD regUseFQDN = 0;
277 if (m_UserKey.QueryDWORDValue(SETTING_USE_FQDN, regUseFQDN) == ERROR_SUCCESS) {
278 useFQDN = regUseFQDN != 0;
279 }
280 return useFQDN;
281 }
282
283 //
284 // Checks whether user wants us to add quotes around the paths

Callers 2

InternalGetPathMethod · 0.80
InternalGetPathMethod · 0.80

Calls 1

QueryDWORDValueMethod · 0.45

Tested by

no test coverage detected