registry.hpp

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * registry.hpp: Windows Registry Manipulation
00003  ****************************************************************************
00004  * Copyright (C) 2008 the VideoLAN team
00005  * $Id$
00006  *
00007  * Authors: Andre Weber <WeberAndre # gmx - de>
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
00022  *****************************************************************************/
00023 #ifndef QVLC_REGISTRY_H
00024 #define QVLC_REGISTRY_H
00025 
00026 #include <windows.h>
00027 
00028 class QVLCRegistry
00029 {
00030 private:
00031     HKEY m_RootKey;
00032     char m_pathBuffer[256];
00033 public:
00034     QVLCRegistry(HKEY rootKey);
00035     ~QVLCRegistry(void);
00036 
00037     void WriteRegistryInt( const char *path, const char *valueName, int value);
00038     void WriteRegistryString( const char *path, const char *valueName, const char *value);
00039     void WriteRegistryDouble( const char *path, const char *valueName, double value);
00040 
00041     int ReadRegistryInt( const char *path, const char *valueName, int default_value);
00042     char * ReadRegistryString( const char *path, const char *valueName, char *default_value);
00043     double ReadRegistryDouble( const char *path, const char *valueName, double default_value);
00044 
00045     bool RegistryKeyExists( const char *path);
00046     bool RegistryValueExists( const char *path, const char *valueName);
00047     int DeleteValue( char *path, char *valueName );
00048     long DeleteKey( char *path, char *keyName );
00049 };
00050 
00051 #endif

Generated on Wed Aug 13 08:02:38 2008 for VLC by  doxygen 1.5.1