You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
636 B
34 lines
636 B
#include <tdeaboutdata.h>
|
|
#include <tdeapplication.h>
|
|
#include <kdebug.h>
|
|
#include <tdelocale.h>
|
|
#include <tdecmdlineargs.h>
|
|
|
|
#include "addressbook.h"
|
|
#include "vcardformat.h"
|
|
#include "resourcesql.h"
|
|
|
|
using namespace TDEABC;
|
|
|
|
int main(int argc,char **argv)
|
|
{
|
|
TDEAboutData aboutData("testdb","TestKabcDB","0.1");
|
|
TDECmdLineArgs::init(argc,argv,&aboutData);
|
|
|
|
// TDEApplication app( false, false );
|
|
TDEApplication app;
|
|
|
|
AddressBook ab;
|
|
|
|
ResourceSql r( &ab, "root", "kde4ever", "localhost" );
|
|
if ( ! r.open() ) {
|
|
kdDebug() << "Failed to open resource." << endl;
|
|
}
|
|
|
|
r.load( &ab );
|
|
|
|
r.close();
|
|
|
|
ab.dump();
|
|
}
|