blob: e4b6aa48212deb14b569aad3a510e8a292de9e9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#include <kaboutdata.h>
#include <kapplication.h>
#include <kdebug.h>
#include <klocale.h>
#include <kcmdlineargs.h>
#include "addressbook.h"
#include "vcardformat.h"
#include "resourcesql.h"
using namespace KABC;
int main(int argc,char **argv)
{
KAboutData aboutData("testdb","TestKabcDB","0.1");
KCmdLineArgs::init(argc,argv,&aboutData);
// KApplication app( false, false );
KApplication app;
AddressBook ab;
ResourceSql r( &ab, "root", "kde4ever", "kabc", "localhost" );
if ( ! r.open() ) {
kdDebug() << "Failed to open resource." << endl;
}
r.load();
r.close();
ab.dump();
}
|