1 /*
2  * This file is part of NumptyPhysics
3  * Copyright (C) 2008 Tim Edmonds
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License as
7  * published by the Free Software Foundation; either version 3 of the
8  * License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * General Public License for more details.
14  *
15  */
16 #ifndef OS_H
17 #define OS_H
18 
19 #include <stdlib.h>
20 
21 class Os
22 {
23  public:
poll()24   virtual void  poll() {};
getLaunchFile()25   virtual char* getLaunchFile() { return NULL; }
26   virtual bool  openBrowser( const char* url ) = 0;
saveDialog(const char * path)27   virtual char* saveDialog( const char* path ) { return NULL; }
28 
29   static Os* get();
30   static const char pathSep;
31 };
32 
33 
34 extern int npmain(int argc, char** argv);
35 
36 #endif //OS_H
37