4 |
|
// |
5 |
|
// $Id$ |
6 |
|
|
7 |
+ |
#include <iostream> |
8 |
+ |
|
9 |
+ |
#include <foreach.hpp> |
10 |
+ |
#include <hash.hpp> |
11 |
+ |
|
12 |
|
#include <Audacious.hpp> |
13 |
|
#include <GPS.hpp> |
14 |
|
|
15 |
+ |
#include <sqlite3.h> |
16 |
+ |
|
17 |
|
int main(int argc, char *argv[]) |
18 |
|
{ |
19 |
+ |
try |
20 |
+ |
{ |
21 |
+ |
enum { Uname, Music, English, Metric, Nautical, Last } mode; |
22 |
+ |
Audacious audacious; |
23 |
+ |
GPS::GPS gps; |
24 |
+ |
|
25 |
+ |
{ |
26 |
+ |
gps.Query(_B("o")); |
27 |
+ |
|
28 |
+ |
std::cout << gps.GetLatitude() << std::endl; |
29 |
+ |
} |
30 |
+ |
} |
31 |
+ |
catch (const std::exception &exception) |
32 |
+ |
{ |
33 |
+ |
std::cerr << argv[0] << _B(": ") << exception.what() << std::endl; |
34 |
+ |
|
35 |
+ |
return 1; |
36 |
+ |
} |
37 |
+ |
|
38 |
|
return 0; |
39 |
|
} |