~ubuntu-branches/ubuntu/utopic/knutclient/utopic

« back to all changes in this revision

Viewing changes to knutclient/knutconst.h

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Quette
  • Date: 2008-06-19 11:09:50 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080619110950-izi2q2vd0dhwlpym
Tags: 0.9.4-1
* New upstream release
* Merge back Ubuntu changes
* debian/knutclient.menu: update section to fix lintian warnings
* debian/watch: update the pattern for matching new releases (Closes: #471247)
* debian/control:
  - move Homepage to the field and update the URL
  - update Standards-Version to 3.8.0
  - update debhelper Build-Depends to 5.0.51
  - add automake and autoconf to Build-Depends
  - update NUT URL
* debian/rules:
  - fix lintian warning debian-rules-ignores-make-clean-error
  - add a commented call to dh_icons

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