Subversion Repositories public

Rev

Rev 88 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
88 andreas 1
/***************************************************************************
232 andreas 2
 *   Copyright (C) 2007 - 2009 by Andreas Theofilu                         *
3
 *   andreas@theosys.at                                                    *
88 andreas 4
 *                                                                         *
5
 *   This program is free software; you can redistribute it and/or modify  *
6
 *   it under the terms of the GNU General Public License as published by  *
7
 *   the Free Software Foundation version 3 of the License.                *
8
 *                                                                         *
9
 *   This program is distributed in the hope that it will be useful,       *
10
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
11
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
12
 *   GNU General Public License for more details.                          *
13
 *                                                                         *
14
 *   You should have received a copy of the GNU General Public License     *
15
 *   along with this program; if not, write to the                         *
16
 *   Free Software Foundation, Inc.,                                       *
17
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
18
 ***************************************************************************/
19
 
20
#ifndef _MANAGEFILE_H
21
#define _MANAGEFILE_H
22
 
23
#include "garmin.h"
24
 
25
#include <qfile.h>
26
#include <qdir.h>
27
 
28
#include <stdlib.h>
29
 
30
class manageFile
31
{
32
	public:
33
	   manageFile();
232 andreas 34
	   manageFile(const QString &name) { manageFile (name.toAscii().constData()); };
88 andreas 35
	   manageFile(const char *name);
36
	   ~manageFile();
37
	   void destroy();
38
 
39
	   int setFileName(const char *name);
40
	   garmin_data *readFile();
41
 
42
	private:
43
	   QFile spw;
44
	   const char *fname;
45
};
46
 
47
#endif