]> git.sesse.net Git - vlc/blob - modules/gui/qt4/util/registry.hpp
Qt4 - Prepare the work for file association from the interface.
[vlc] / modules / gui / qt4 / util / registry.hpp
1 // License GPLv2 or later
2 // Code from ATMO
3
4 #ifndef QVLC_REGISTRY_H
5 #define QVLC_REGISTRY_H
6
7 #include <windows.h>
8
9 class QVLCRegistry
10 {
11 private:
12     HKEY m_RootKey;
13     char m_pathBuffer[256];
14 public:
15     QVLCRegistry(HKEY rootKey);
16     ~QVLCRegistry(void);
17
18     void WriteRegistryInt(char *path, char *valueName, int value);
19     void WriteRegistryString(char *path, char *valueName, char *value);
20     void WriteRegistryDouble(char *path, char *valueName, double value);
21
22     int ReadRegistryInt(char *path, char *valueName, int default_value);
23     char * ReadRegistryString(char *path, char *valueName, char *default_value);
24     double ReadRegistryDouble(char *path, char *valueName, double default_value);
25
26     int RegistryKeyExists(char *path);
27     int RegistryValueExists(char *path, char *valueName);
28 };
29
30 #endif