imports.h
author insilmaril
Fri, 24 Jul 2009 08:55:40 +0000
branchrelease-1-12-maintained
changeset 72 b4f008d1ea01
parent 62 85683324f94a
permissions -rw-r--r--
Version bump to 1.12.3
insilmaril@62
     1
#ifndef IMPORTS_H
insilmaril@62
     2
#define IMPORTS_H
insilmaril@62
     3
insilmaril@62
     4
#include <qdir.h>
insilmaril@62
     5
#include <qstring.h>
insilmaril@62
     6
#include <iostream>
insilmaril@62
     7
insilmaril@62
     8
#include "mapcenterobj.h"
insilmaril@62
     9
#include "settings.h"
insilmaril@62
    10
insilmaril@62
    11
insilmaril@62
    12
///////////////////////////////////////////////////////////////////////
insilmaril@62
    13
insilmaril@62
    14
class ImportBase
insilmaril@62
    15
{
insilmaril@62
    16
public:
insilmaril@62
    17
	ImportBase();
insilmaril@62
    18
	virtual ~ImportBase();
insilmaril@62
    19
	virtual void setDir(const QString &);
insilmaril@62
    20
	virtual void setFile(const QString &);
insilmaril@62
    21
	virtual void setMapCenter (MapCenterObj*);
insilmaril@62
    22
	virtual bool transform();
insilmaril@62
    23
	virtual QString getTransformedFile();
insilmaril@62
    24
protected:
insilmaril@62
    25
	QDir tmpDir;
insilmaril@62
    26
	QString inputDir;
insilmaril@62
    27
	QString inputFile;
insilmaril@62
    28
	MapCenterObj *mapCenter;
insilmaril@62
    29
	QString transformedFile;
insilmaril@62
    30
	
insilmaril@62
    31
};
insilmaril@62
    32
insilmaril@62
    33
///////////////////////////////////////////////////////////////////////
insilmaril@62
    34
class ImportKDE3Bookmarks:public ImportBase
insilmaril@62
    35
{
insilmaril@62
    36
public:
insilmaril@62
    37
	bool transform();
insilmaril@62
    38
};	
insilmaril@62
    39
insilmaril@62
    40
class ImportKDE4Bookmarks:public ImportBase
insilmaril@62
    41
{
insilmaril@62
    42
public:
insilmaril@62
    43
	bool transform();
insilmaril@62
    44
};	
insilmaril@62
    45
insilmaril@62
    46
insilmaril@62
    47
///////////////////////////////////////////////////////////////////////
insilmaril@62
    48
class ImportFirefoxBookmarks:public ImportBase
insilmaril@62
    49
{
insilmaril@62
    50
public:
insilmaril@62
    51
	bool transform();
insilmaril@62
    52
};	
insilmaril@62
    53
insilmaril@62
    54
insilmaril@62
    55
///////////////////////////////////////////////////////////////////////
insilmaril@62
    56
class ImportMM:public ImportBase
insilmaril@62
    57
{
insilmaril@62
    58
public:
insilmaril@62
    59
	bool transform();
insilmaril@62
    60
};	
insilmaril@62
    61
insilmaril@62
    62
insilmaril@62
    63
insilmaril@62
    64
#endif