First commit for 0.2.3, some old functions still need to be ported to the new back-end api, i.e. import and export.

git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@104 b624d157-de02-0410-bad0-e51aec6abb33
This commit is contained in:
tarek_saidi
2006-10-14 22:33:41 +00:00
parent 0286b87a41
commit 21f0fea56a
67 changed files with 8909 additions and 6954 deletions

View File

@@ -23,6 +23,7 @@
#include "main.h"
#include "../lib/SecString.h"
#include "Export_Txt.h"
/*
QString EntryTemplate=QString("\n\
Title: %1\n\
@@ -36,7 +37,7 @@ QString GroupTemplate=QString("\n\
*** Group: %1 ***\n\
");
bool Export_Txt::exportFile(const QString& filename,Database* db,QString& err){
bool Export_Txt::exportFile(const QString& filename,StandardDatabase* db,QString& err){
QFile file(filename);
if(!file.open(QIODevice::Truncate | QIODevice::WriteOnly)){
err+=tr("Could not open file (FileError=%1)").arg(file.error());
@@ -59,4 +60,4 @@ for(int g=0;g<db->numGroups();g++){
}
}
file.close();
}
}*/

View File

@@ -20,11 +20,11 @@
#ifndef _EXPORT_TXT_H_
#define _EXPORT_TXT_H_
#include <QObject>
#include "PwManager.h"
#include "StandardDatabase.h"
class Export_Txt:public QObject{
public:
bool exportFile(const QString& filename,Database* db,QString& err);
bool exportFile(const QString& filename,StandardDatabase* db,QString& err);
};