summaryrefslogtreecommitdiffstats
path: root/kstars/kstars/indi/v4lphilips.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitce599e4f9f94b4eb00c1b5edb85bce5431ab3df2 (patch)
treed3bb9f5d25a2dc09ca81adecf39621d871534297 /kstars/kstars/indi/v4lphilips.h
downloadtdeedu-ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2.tar.gz
tdeedu-ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kstars/kstars/indi/v4lphilips.h')
-rw-r--r--kstars/kstars/indi/v4lphilips.h77
1 files changed, 77 insertions, 0 deletions
diff --git a/kstars/kstars/indi/v4lphilips.h b/kstars/kstars/indi/v4lphilips.h
new file mode 100644
index 00000000..59c33f0a
--- /dev/null
+++ b/kstars/kstars/indi/v4lphilips.h
@@ -0,0 +1,77 @@
+/*
+ Phlips webcam INDI driver
+ Copyright (C) 2003-2005 by Jasem Mutlaq
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ This library 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
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+ 2005.04.29 JM: There is no need for this file for Video 4 Linux 2. It is kept for V4L 1 compatiblity.
+
+*/
+
+#ifndef HAVE_LINUX_VIDEODEV2_H
+#include "webcam/v4l1_pwc.h"
+#endif
+
+#include "v4ldriver.h"
+
+class V4L_Philips : public V4L_Driver
+{
+ public:
+ V4L_Philips();
+ ~V4L_Philips();
+
+ /* INDI Functions that must be called from indidrivermain */
+ void ISGetProperties (const char *dev);
+ void ISNewSwitch (const char *dev, const char *name, ISState *states, char *names[], int n);
+ void ISNewText (const char *dev, const char *name, char *texts[], char *names[], int n);
+ void ISNewNumber (const char *dev, const char *name, double values[], char *names[], int n);
+
+ void initCamBase();
+ void initProperties(const char *dev);
+
+ private:
+
+ /* Switches */
+ ISwitch BackLightS[2];
+ ISwitch AntiFlickerS[2];
+ ISwitch NoiseReductionS[4];
+ ISwitch CamSettingS[3];
+ ISwitch WhiteBalanceModeS[5];
+
+
+ /* Nmubers */
+ INumber WhiteBalanceN[2];
+ INumber ShutterSpeedN[1];
+
+ /* Switch Vectors */
+ ISwitchVectorProperty BackLightSP;
+ ISwitchVectorProperty AntiFlickerSP;
+ ISwitchVectorProperty NoiseReductionSP;
+ ISwitchVectorProperty CamSettingSP;
+ ISwitchVectorProperty WhiteBalanceModeSP;
+
+ /* Number Vectors */
+ INumberVectorProperty WhiteBalanceNP;
+ INumberVectorProperty ShutterSpeedNP;
+
+ #ifndef HAVE_LINUX_VIDEODEV2_H
+ V4L1_PWC * v4l_pwc;
+ void updateV4L1Controls();
+ void getBasicData(void);
+ #endif
+
+};
+
+