~ubuntu-branches/debian/sid/flightgear/sid

« back to all changes in this revision

Viewing changes to src/Network/igc.hxx

  • Committer: Package Import Robot
  • Author(s): Markus Wanner, Markus Wanner, Rebecca Palmer
  • Date: 2014-01-21 22:31:02 UTC
  • mfrom: (1.3.1) (15.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20140121223102-cjw7g9le25acd119
Tags: 3.0.0~git20140204+c99ea4-1
[ Markus Wanner ]
* Upload to unstable.
* Adjust B-D to allow building on kfreebsd-*. Closes: #724686.
* Add a lintian-overrides on autotools; we use cmake.
* Upstream corrected the fgfs manpage. Closes: #556362.
* Drop unnecessary man page for gl-info. Closes: #698308.
* Drop README.Linux: it's outdated to the point of uselessness.
  Closes: #574173.
* Add an upper limit of libsimgear-dev versions that flightgear can be
  built with. Closes: #738436.
* Drop the libsvn-dev dependency, neither flightgear nor simgear depend
  on libsvn, anymore. Closes: #682947.
* List icons in debian/install rather than copying around from rules.
* Update menu entry for flightgear, add one for fgcom; add .xpm icons.
  Closes: #713924.
* flightgear.desktop: add German translation
* Bump Standards-Version to 3.9.5; no changes needed.

[ Rebecca Palmer ]
* New upstream release.
* Install the icons (based on code by Saikrishna Arcot).  (Not a
  complete fix for LP908153 as it only sets the menu/Dash icon, not the
  running window's icon, but better than nothing).
* Disable screensaver while running. Closes: LP#793599. Add required
  libdbus-1-dev dependency.
* Remove outdated README.Debian.
* Terrasync now works after just ticking the box. Closes: #252899.
* Always set Terrasync directory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// igc.hxx -- International Glider Commission (IGC) protocol class
 
2
//
 
3
// Written by Thorsten Brehm, started October 2013.
 
4
//
 
5
// Copyright (C) 2013 Thorsten Brehm - brehmt (at) gmail com
 
6
//
 
7
// This program is free software; you can redistribute it and/or
 
8
// modify it under the terms of the GNU General Public License as
 
9
// published by the Free Software Foundation; either version 2 of the
 
10
// License, or (at your option) any later version.
 
11
//
 
12
// This program is distributed in the hope that it will be useful, but
 
13
// WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
15
// General Public License for more details.
 
16
//
 
17
// You should have received a copy of the GNU General Public License
 
18
// along with this program; if not, write to the Free Software
 
19
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301, USA.
 
20
//
 
21
///////////////////////////////////////////////////////////////////////////////
 
22
 
 
23
#ifndef _FG_IGC_HXX
 
24
#define _FG_IGC_HXX
 
25
 
 
26
#include <simgear/compiler.h>
 
27
#include <FDM/flightProperties.hxx>
 
28
#include "protocol.hxx"
 
29
 
 
30
class IGCProtocol : public FGProtocol
 
31
{
 
32
    char buf[FG_MAX_MSG_SIZE];
 
33
    int length;
 
34
 
 
35
    bool gen_Hrecords();
 
36
 
 
37
public:
 
38
    IGCProtocol();
 
39
    ~IGCProtocol();
 
40
 
 
41
    bool gen_message();
 
42
    bool parse_message();
 
43
 
 
44
    // open hailing frequencies
 
45
    bool open();
 
46
 
 
47
    // process work for this port
 
48
    bool process();
 
49
 
 
50
    // close the channel
 
51
    bool close();
 
52
 
 
53
    FlightProperties fdm;
 
54
};
 
55
 
 
56
#endif // _FG_IGC_HXX