summaryrefslogtreecommitdiffstats
path: root/src/knutconst.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-19 18:17:02 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-19 18:17:02 +0000
commitf867212c1762e156553d039319b904a17f7b563d (patch)
tree461c1a743b3ff8291e03360742dbbfb4cc0087e4 /src/knutconst.h
downloadknutclient-f867212c1762e156553d039319b904a17f7b563d.tar.gz
knutclient-f867212c1762e156553d039319b904a17f7b563d.zip
Added KDE3 version of knutclient
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/knutclient@1092914 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/knutconst.h')
-rwxr-xr-xsrc/knutconst.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/src/knutconst.h b/src/knutconst.h
new file mode 100755
index 0000000..866fe5d
--- /dev/null
+++ b/src/knutconst.h
@@ -0,0 +1,58 @@
+/***************************************************************************
+ knutconst.h - description
+ -------------------
+ begin : Tue Sep 24 2001
+ copyright : (C) 2003 by Daniel Prynych
+ email : Daniel@prynych.cz
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * 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. *
+ * *
+ ***************************************************************************/
+
+#ifndef KNUTCONST_H
+#define KNUTCONST_H
+
+
+namespace knc {
+
+ const int StartPort =1024;
+ const int StopPort= 65535;
+ const int MinDelay = 2000;
+
+ const int MinCols = 1;
+ const int MaxCols = 5;
+
+ const int DefaultCountCols = 3; // prednastaveny pocet sloupcu analogovych meraku
+ const int DefaultPort = 3493; // default ports - prednastaveny port
+
+ const int DefaultDelay = 2000; //2000 msec
+
+ const int DefaultInputVoltage = 230;
+ const int DefaultInputFrequency = 50;
+
+ const int NumberOfTypes = 14; // count types of variables // pocet typu promenych (none,utility ....)
+ const int NumberOfVars = NumberOfTypes -1; // how many variables we can measure // kolik promenych muzeme merit
+
+ enum {VarNone,VarUtility,VarBattPct,VarUpsTemp,VarAcfreq,VarLoadPct,VarAmbTemp,VarAmbHumid,VarBattVolt,VarOutVolt,VarCurrent,VarOutFreq,VarBattTemp,VarBattCurrent};
+
+ const unsigned int maxCountKNutEvent = 100;
+
+ const int numberVarError = -1000;
+
+ enum upsDriverConnection { // state of connection to usbd, this isn't state of knutnet
+ connecting,
+ connected,
+ stale,
+ notConnected,
+ error
+ };
+ }
+
+
+#endif