OmniEvents
|
Opens a windows registry key, and closed it upon destruction. More...
Public Member Functions | |
RegistryKey (RegistryKey &right) | |
Copy constructor, adopts ownership. | |
RegistryKey (HKEY hkey, const char *subkey, REGSAM samDesired=KEY_QUERY_VALUE) | |
Constructor, opens the key. | |
~RegistryKey () | |
Destructor, closes the key. | |
operator bool () const | |
int | setValueStr (const char *name, const char *data) |
char * | queryValueStr (const char *name, const int maxlen=2048) const |
Private Member Functions | |
RegistryKey () | |
No implementation. | |
RegistryKey (HKEY hkey, bool open=true) | |
Private Attributes | |
HKEY | _hkey |
bool | _open |
Opens a windows registry key, and closed it upon destruction.
Upon failure, it emits an error message and then quits. Why do I have to write this class myself??
Definition at line 86 of file daemon_windows.cc.
|
private |
No implementation.
Definition at line 92 of file daemon_windows.cc.
OmniEvents::RegistryKey::RegistryKey | ( | RegistryKey & | right | ) |
Copy constructor, adopts ownership.
Definition at line 103 of file daemon_windows.cc.
References _open.
OmniEvents::RegistryKey::RegistryKey | ( | HKEY | hkey, |
const char * | subkey, | ||
REGSAM | samDesired = KEY_QUERY_VALUE |
||
) |
Constructor, opens the key.
Definition at line 110 of file daemon_windows.cc.
OmniEvents::RegistryKey::~RegistryKey | ( | ) |
Destructor, closes the key.
Definition at line 123 of file daemon_windows.cc.
References _hkey, _open, HERE, and OmniEvents::Win::perror().
|
inline |
Definition at line 97 of file daemon_windows.cc.
References _open.
Definition at line 150 of file daemon_windows.cc.
References _hkey.
Referenced by OmniEvents::Service::readParameters().
Definition at line 136 of file daemon_windows.cc.
References _hkey.
Referenced by OmniEvents::Service::install(), and OmniEvents::Service::writeParameters().
|
private |
Definition at line 88 of file daemon_windows.cc.
Referenced by queryValueStr(), RegistryKey(), setValueStr(), and ~RegistryKey().
|
private |
Definition at line 89 of file daemon_windows.cc.
Referenced by operator bool(), RegistryKey(), RegistryKey(), and ~RegistryKey().