]> git.sesse.net Git - vlc/commitdiff
Qt4 - Fix Compilation on CYGWin. This is a quick fix but not a solution. Again, MOC...
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 24 Jan 2008 06:53:27 +0000 (06:53 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 24 Jan 2008 06:53:27 +0000 (06:53 +0000)
modules/gui/qt4/Modules.am
modules/gui/qt4/dialogs/help.hpp
modules/gui/qt4/dialogs/vlm.hpp
modules/gui/qt4/util/registry.cpp
modules/gui/qt4/util/registry.hpp

index 9b2970ecd137aa27997d2db05eef4c4cd0e7b82f..48d3cfb74d640c6062f5e901573263c4e341c6c9 100644 (file)
@@ -112,7 +112,8 @@ SOURCES_qt4 =       qt4.cpp \
                components/playlist/playlist.cpp \
                components/playlist/selector.cpp \
                util/input_slider.cpp \
-               util/customwidgets.cpp
+               util/customwidgets.cpp \
+               util/registry.cpp
 
 noinst_HEADERS = \
        qt4.hpp \
@@ -147,7 +148,8 @@ noinst_HEADERS = \
        components/playlist/selector.hpp \
        util/input_slider.hpp \
        util/customwidgets.hpp \
-       util/qvlcframe.hpp
+       util/qvlcframe.hpp \
+       util/registry.cpp
 
 EXTRA_DIST += \
        res.qrc \
index e0fc292e20d6250070e4c88a48f07e004b13a3be..f5fae30e5f43d9b8ba06f75d50cf975e4850342d 100644 (file)
 #ifndef _HELP_DIALOG_H_
 #define _HELP_DIALOG_H_
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include <vlc/vlc.h>
+#include "config.h"
 
 #include "util/qvlcframe.hpp"
 
index 356d72fb1e67c1b83255975947b7a8fd02b9b769..92f02bd21209e9ee7d88d0c32f010cb51e049938 100644 (file)
 #ifndef _VLM_DIALOG_H_
 #define _VLM_DIALOG_H_
 
-#ifdef HAVE_CONFIG_H
 # include "config.h"
-#endif
 
 #include <vlc/vlc.h>
 
-#ifdef ENABLE_VLM
 #include <vlc_vlm.h>
 
+#ifdef ENABLE_VLM
+
 #include "ui/vlm.h"
 #include "util/qvlcframe.hpp"
 
index bafcf9c27854dd19235ca54abba74754c440515d..91b8de330380837d4dd0ae4635c793eb114cb2fb 100644 (file)
@@ -1,7 +1,26 @@
-// License GPLv2 or later
-// COde by atmo
-//
-#error your license text is wrong and copyright is missing
+/*****************************************************************************
+ * registry.cpp: Windows Registry Manipulation
+ ****************************************************************************
+ * Copyright (C) 2008 the VideoLAN team
+ * $Id: input_slider.cpp 24525 2008-01-23 21:50:58Z courmisch $
+ *
+ * Authors: Andre Weber <WeberAndre # gmx - de>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
+ *****************************************************************************/
+
 #ifdef HAVE_CONFIG_H
 # include "config.h"
 #endif
index c3032bd7869afa73654a0f1b4d9d9f7e2eac1433..6bc82bd0e05b5435346ffb3499377d77a06ec68d 100644 (file)
@@ -1,6 +1,25 @@
-// License GPLv2 or later
-// Code from ATMO
-
+/*****************************************************************************
+ * registry.hpp: Windows Registry Manipulation
+ ****************************************************************************
+ * Copyright (C) 2008 the VideoLAN team
+ * $Id: input_slider.cpp 24525 2008-01-23 21:50:58Z courmisch $
+ *
+ * Authors: Andre Weber <WeberAndre # gmx - de>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
+ *****************************************************************************/
 #ifndef QVLC_REGISTRY_H
 #define QVLC_REGISTRY_H
 
@@ -23,8 +42,8 @@ public:
     char * ReadRegistryString(char *path, char *valueName, char *default_value);
     double ReadRegistryDouble(char *path, char *valueName, double default_value);
 
-    int RegistryKeyExists(char *path);
-    int RegistryValueExists(char *path, char *valueName);
+    bool RegistryKeyExists(char *path);
+    bool RegistryValueExists(char *path, char *valueName);
 };
 
 #endif