~ubuntu-branches/ubuntu/wily/knutclient/wily

« back to all changes in this revision

Viewing changes to src/knutconst.h

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2013-12-15 01:56:29 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20131215015629-kbtxdi17e1gmxb5e
Tags: 1.0.5-1
Re-packaged and re-introduced to Debian (Closes: #695840).

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#ifndef KNUTCONST_H
19
19
#define KNUTCONST_H
20
20
 
 
21
#include <QtGui/QColor>
21
22
 
22
23
namespace knc {
23
24
 
36
37
  const int DefaultInputVoltage = 230;
37
38
  const int DefaultInputFrequency = 50;
38
39
 
39
 
  const int NumberOfTypes = 14; // count types of variables //  pocet typu promenych (none,utility ....)
 
40
  const int NumberOfTypes = 16; // count types of variables //  pocet typu promenych (none,utility ....)
40
41
  const int NumberOfVars = NumberOfTypes -1; // how many variables we can measure //  kolik promenych muzeme merit 
41
42
 
42
 
  enum {VarNone,VarUtility,VarBattPct,VarUpsTemp,VarAcfreq,VarLoadPct,VarAmbTemp,VarAmbHumid,VarBattVolt,VarOutVolt,VarCurrent,VarOutFreq,VarBattTemp,VarBattCurrent};
43
 
 
44
 
  const unsigned int maxCountKNutEvent = 100;
 
43
 
 
44
  enum {VarNone, // none
 
45
       VarInVolt,  //input.voltage
 
46
       VarBattPct,  //battery.charge
 
47
       VarUpsTemp,  //ups.temperature
 
48
       VarInFreq,   //input.frequency
 
49
       VarUpsLoad,  //ups.load
 
50
       VarAmbTemp,  //ambient.temperature
 
51
       VarAmbHumid, //ambient.humidity 
 
52
       VarBattVolt, //battery.voltage
 
53
       VarOutVolt,  //output.voltage
 
54
       VarOutCurrent,  //output.current
 
55
       VarOutFreq,  //output.frequency
 
56
       VarBattTemp, //battery.temperature
 
57
       VarBattCurrent, //battery.current
 
58
       VarInCurrent, //input.current
 
59
       VarUpsPower }; //ups.power
 
60
 
 
61
  const int maxCountKNutEvent = 100;
45
62
 
46
63
  const int numberVarError = -1000;
47
64
 
 
65
  const QColor defaultBGColor = Qt::lightGray;
 
66
  const QColor defaultOkColor = Qt::green;
 
67
  const QColor defaultFingerColor = Qt::black;
 
68
  const QColor defaultWarnningColor = Qt::yellow;
 
69
  const QColor defaultErrorColor = Qt::red;
 
70
  const QColor defaultScaleColor = Qt::black;
 
71
  const QColor defaultFontColor =  Qt::black;
 
72
  const QColor defaultKIconColor =  Qt::white;
 
73
 
 
74
 
48
75
  enum upsDriverConnection {  // state of connection to usbd, this isn't state of knutnet 
49
76
    connecting,
50
77
    connected,
52
79
    notConnected,
53
80
    error
54
81
    };
 
82
 
 
83
  enum mainWindowStartVariant{
 
84
      mw_yes=0,
 
85
      mw_no,
 
86
      mw_auto
 
87
      };
 
88
 
 
89
 
 
90
 
55
91
  }
56
92
 
57
93