~ubuntu-branches/ubuntu/intrepid/knutclient/intrepid

« back to all changes in this revision

Viewing changes to knutclient/knutconst.h

  • Committer: Bazaar Package Importer
  • Author(s): Stephan Hermann
  • Date: 2007-03-08 16:08:31 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070308160831-0kes374x4jhkcea5
Tags: 0.9.3-1ubuntu1
* UVE Exception: New Upstream release
* Fixes BTS #410405 (FTBFS on x86_64)
* debian/rules:
  - commented out dh_iconcache call
* debian/control:
  - Added Ubuntu MOTU Maintainer Field
  - Moved old Maintainer field to Original-Maintainer
* debian/changelog:
  - Merged Ubuntu Changelog entries

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
                          knutconst.h  -  description
3
 
                             -------------------
4
 
    begin                : Tue Sep 24 2001
5
 
    copyright            : (C) 2003 by Daniel Prynych
6
 
    email                : Daniel.Prynych@alo.cz
7
 
 ***************************************************************************/
8
 
 
9
 
/***************************************************************************
10
 
 *                                                                         *
11
 
 *   This program is free software; you can redistribute it and/or modify  *
12
 
 *   it under the terms of the GNU General Public License as published by  *
13
 
 *   the Free Software Foundation; either version 2 of the License, or     *
14
 
 *   (at your option) any later version.                                   *
15
 
 *                                                                         *
16
 
 ***************************************************************************/
17
 
 
18
 
#ifndef KNUTCONST_H
19
 
#define KNUTCONST_H
20
 
 
21
 
 
22
 
namespace knc {
23
 
 
24
 
  const int StartPort =1024;
25
 
  const int StopPort= 65535;
26
 
  const int MinDelay = 2000;
27
 
 
28
 
  const int MinCols = 1;
29
 
  const int MaxCols = 5;
30
 
 
31
 
  const int DefaultCountCols = 3; // prednastaveny pocet sloupcu analogovych meraku
32
 
  const int DefaultPort = 3493;  //prednastaveny port
33
 
 
34
 
  const int DefaultDelay = 2000; //2000 milisekund
35
 
 
36
 
  const int DefaultInputVoltage = 230;
37
 
  const int DefaultInputFrequency = 50;
38
 
 
39
 
  const int NumberOfVars = 10; // kolik promenych muzeme merit
40
 
  const int NumberOfTypes = 13; // pocet typu promenych (none,utility ....)
41
 
 
42
 
  enum {VarNone,VarUtility,VarBattPct,VarUpsTemp,VarAcfreq,VarLoadPct,VarAmbTemp,VarAmbHumid,VarBattVolt,VarOutVolt,VarCurrent,VarBattTemp,VarBattCurrent};
43
 
 
44
 
  const unsigned int maxCountKNutEvent = 100;
45
 
 
46
 
  const int numberVarError = -1000;
47
 
 
48
 
  enum upsDriverConnection {
49
 
    connected,
50
 
    stale,
51
 
    notConnected,
52
 
    error
53
 
    };
54
 
 
55
 
 
56
 
}
57
 
 
58
 
 
59
 
#endif