Changeset ba63b95 in nscp for helpers


Ignore:
Timestamp:
01/13/12 06:52:23 (17 months ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2
Children:
35254d1
Parents:
7354aa1
Message:
  • Fixed issue with --submit command line option erroneusly reported missing optien (when it is not supported)
  • Added settings store "dummy" for people who dont want to store settings (long term use is for unit tests)
  • Added new option to NSCClient --source-host for settings the host name of the caller (your machine).
  • Change so enryption algorithms are case insensitevie (ie. 3DES and 3des both work)
Location:
helpers/settings_manager
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • helpers/settings_manager/CMakeLists.txt

    r04ef932 rba63b95  
    2525    ${NSCP_INCLUDEDIR}/settings/macros.h 
    2626    ${NSCP_INCLUDEDIR}/settings/settings_ini.hpp 
     27    ${NSCP_INCLUDEDIR}/settings/settings_dummy.hpp 
    2728    ${NSCP_INCLUDEDIR}/settings/settings_old.hpp 
    2829    ${NSCP_INCLUDEDIR}/settings/settings_registry.hpp 
  • helpers/settings_manager/settings_manager_impl.cpp

    rf085f9b rba63b95  
    44 
    55#include <settings/settings_ini.hpp> 
     6#include <settings/settings_dummy.hpp> 
    67#include <settings/settings_http.hpp> 
    78#ifdef WIN32 
     
    9192      return settings::instance_raw_ptr(new settings::INISettings(this, key)); 
    9293    } 
     94    if (url.protocol == _T("dummy")) { 
     95      return settings::instance_raw_ptr(new settings::settings_dummy(this, key)); 
     96    } 
    9397    if (url.protocol == _T("http")) { 
    9498      return settings::instance_raw_ptr(new settings::settings_http(this, key)); 
     
    128132    if (url.protocol == _T("ini")) 
    129133      return settings::INISettings::context_exists(this, key); 
     134    if (url.protocol == _T("dummy")) 
     135      return true; 
    130136    if (url.protocol == _T("http")) 
    131137      return true; 
Note: See TracChangeset for help on using the changeset viewer.