1 #include <QtCore/QTextStream>
2 #include <QtCore/QTimer>
4 #include <kaboutdata.h>
5 #include <kapplication.h>
6 #include <kcmdlineargs.h>
9 #include <kstandarddirs.h>
11 #include <QtDBus/QDBusConnectionInterface>
12 #include <QtDBus/QDBusConnection>
13 #include <QtDBus/QDBusReply>
15 static QTextStream
_out(stdout
, QIODevice::WriteOnly
);
19 _out
<< "About to ask for wallet /tmp/test.kwl sync" << endl
;
21 KWallet::Wallet
*wallet
= KWallet::Wallet::openWallet("/tmp/test.kwl", 0, KWallet::Wallet::Path
);
23 _out
<< "Got path wallet: " << (wallet
!= 0) << endl
;
26 _out
<< "Closing wallet" << endl
;
33 int main(int argc
, char *argv
[])
35 KAboutData
aboutData("kwalletpath", 0, ki18n("kwalletpath"), "version");
36 KCmdLineArgs::init(argc
, argv
, &aboutData
);