~ubuntu-branches/ubuntu/precise/stellarium/precise

« back to all changes in this revision

Viewing changes to plugins/TelescopeControl/src/servers/LogFile.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Scott Howard
  • Date: 2010-02-15 20:48:39 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20100215204839-u3qgbv60rho997yk
Tags: 0.10.3-0ubuntu1
* New upstream release.
  - fixes intel rendering bug (LP: #480553)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
The stellarium telescope library helps building
 
3
telescope server programs, that can communicate with stellarium
 
4
by means of the stellarium TCP telescope protocol.
 
5
It also contains smaple server classes (dummy, Meade LX200).
 
6
 
 
7
Author and Copyright of this file and of the stellarium telescope library:
 
8
Johannes Gajdosik, 2006
 
9
 
 
10
This library is free software; you can redistribute it and/or
 
11
modify it under the terms of the GNU Lesser General Public
 
12
License as published by the Free Software Foundation; either
 
13
version 2.1 of the License, or (at your option) any later version.
 
14
 
 
15
This library is distributed in the hope that it will be useful,
 
16
but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
18
Lesser General Public License for more details.
 
19
 
 
20
You should have received a copy of the GNU Lesser General Public
 
21
License along with this library; if not, write to the Free Software
 
22
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
23
*/
 
24
 
 
25
#ifndef _LOG_FILE_H_
 
26
#define _LOG_FILE_H_
 
27
 
 
28
#include <QTextStream>
 
29
 
 
30
long long int GetNow(void);
 
31
 
 
32
class Now
 
33
{
 
34
public:
 
35
        Now(void) : time(GetNow()) {}
 
36
        const long long int time;
 
37
};
 
38
 
 
39
QTextStream &operator<<(QTextStream &o, const Now &now);
 
40
 
 
41
extern QTextStream *log_file;
 
42
 
 
43
#endif